diff options
author | Axel Lin <axel.lin@gmail.com> | 2012-03-15 08:47:48 +0800 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-04-01 11:59:25 +0100 |
commit | c8237f01db63b458c34222d07f66c5417cfd866b (patch) | |
tree | 37862f1459b4ed044868b8857ee3c7d502c124aa /drivers/ieee802154 | |
parent | 1f793ff258c7a48e8cc3729ac13bfd1b3850b9c9 (diff) | |
download | blackbird-op-linux-c8237f01db63b458c34222d07f66c5417cfd866b.tar.gz blackbird-op-linux-c8237f01db63b458c34222d07f66c5417cfd866b.zip |
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/ieee802154')
0 files changed, 0 insertions, 0 deletions