commit | c8237f01db63b458c34222d07f66c5417cfd866b | [log] [tgz] |
---|---|---|
author | Axel Lin <axel.lin@gmail.com> | Thu Mar 15 08:47:48 2012 +0800 |
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | Sun Apr 01 11:59:25 2012 +0100 |
tree | 37862f1459b4ed044868b8857ee3c7d502c124aa | |
parent | 1f793ff258c7a48e8cc3729ac13bfd1b3850b9c9 [diff] |
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>