iio: hid-sensors: ALS: adjust scale and offset
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Fri, 18 Apr 2014 23:22:00 +0000 (00:22 +0100)
committerJonathan Cameron <jic23@kernel.org>
Mon, 5 May 2014 09:59:46 +0000 (10:59 +0100)
commit36783d09f1a5c0fdfe9c0d177b5491f0ed0509ce
treec595d6747df09d3e0321e5e6512ff7e6fd3c7a32
parent6c7db77e406d61275e41268c1829e847a7237a27
iio: hid-sensors: ALS: adjust scale and offset

Using units and unit exponent to calculate scale which is compliant
to IIO ABI.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/light/hid-sensor-als.c