From: Bryan Freed Date: Fri, 2 Dec 2011 22:19:30 +0000 (-0800) Subject: iio: light sensor: Improve granularity of tsl2583 lux values. X-Git-Tag: v3.3-rc1~152^2~101^2~95 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=014fcb1db5d8fd1dde1e3b777389edcd8d85a2e2;p=pandora-kernel.git 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 Acked-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed