commit | 014fcb1db5d8fd1dde1e3b777389edcd8d85a2e2 | [log] [tgz] |
---|---|---|
author | Bryan Freed <bfreed@chromium.org> | Fri Dec 02 14:19:30 2011 -0800 |
committer | Greg Kroah-Hartman <gregkh@suse.de> | Thu Dec 08 11:30:24 2011 -0800 |
tree | e010e88a74ef182219505a0fedfd38eeb50e2638 | |
parent | d666c0d490d85d35fe6d6d45ba029cf16046dc82 [diff] |
iio: light sensor: Improve granularity of tsl2583 lux values. 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>