iio: hid-sensors: Pressure: 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)
commita269b9a0a27675c34c62c4e20c4ffb62054cd51a
treeccf8aa0887b23ffeb002dd6508a6831edf5774b1
parentbe8e48d67ecdb1cc1234ff4f32a6e5d0002e4672
iio: hid-sensors: Pressure: 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/pressure/hid-sensor-press.c