iio: hid-sensors: Accelerometer 3D: 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:45 +0000 (10:59 +0100)
commit73a24988201f1bc82143ad183c79206052ef2fe8
tree67c5ce92d486668a71f9c3e8a11f1fc4462d744e
parent9030924510a9e7d4b7d218749533840075879f2f
iio: hid-sensors: Accelerometer 3D: 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/accel/hid-sensor-accel-3d.c