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:
d666c0d
)
iio: light sensor: Improve granularity of tsl2583 lux values.
author
Bryan Freed
<bfreed@chromium.org>
Fri, 2 Dec 2011 22:19:30 +0000
(14:19 -0800)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Thu, 8 Dec 2011 19:30:24 +0000
(11:30 -0800)
When illuminance0_calibbias gets 4000 (for a 4x multiplier), we see lux
granularity of 4. Reversing the order of the right shift and multiplication
retains the precision of the unadjusted lux value.
Signed-off-by: Bryan Freed <bfreed@chromium.org>
Acked-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
No differences found