iio: hid-sensors: Inclinometer 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:48 +0000 (10:59 +0100)
commitbe8e48d67ecdb1cc1234ff4f32a6e5d0002e4672
treee030386e412ffae9c74a381623ca5db010f2d107
parent92463fdab5d8e5f97d96478383c3d3e5385e867b
iio: hid-sensors: Inclinometer 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/orientation/hid-sensor-incl-3d.c