git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f793ff
)
regulator: max8952: Simplify the logic to get vid[0|1] status
author
Axel Lin
<axel.lin@gmail.com>
Thu, 15 Mar 2012 00:47:48 +0000
(08:47 +0800)
committer
Mark Brown
<broonie@opensource.wolfsonmicro.com>
Sun, 1 Apr 2012 10:59:25 +0000
(11:59 +0100)
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>
No differences found