summaryrefslogtreecommitdiff
path: root/drivers/regulator/tps65912-regulator.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2012-03-15 00:47:48 (GMT)
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-04-01 10:59:25 (GMT)
commitc8237f01db63b458c34222d07f66c5417cfd866b (patch)
tree37862f1459b4ed044868b8857ee3c7d502c124aa /drivers/regulator/tps65912-regulator.c
parent1f793ff258c7a48e8cc3729ac13bfd1b3850b9c9 (diff)
downloadlinux-c8237f01db63b458c34222d07f66c5417cfd866b.tar.xz
regulator: max8952: Simplify the logic to get vid[0|1] status
The syntax "(((vid >> 1) % 2) == 1)" is inefficient and also hard to read. Use bitwidse AND operator instead. Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/regulator/tps65912-regulator.c')
0 files changed, 0 insertions, 0 deletions