commit | 5d02edfc3957446fd625c0b018e14c6631a791f4 | [log] [tgz] |
---|---|---|
author | Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> | Sat Apr 19 00:22:00 2014 +0100 |
committer | Jonathan Cameron <jic23@kernel.org> | Mon May 05 10:59:44 2014 +0100 |
tree | 3601d52baa45ff006e6bf7b2d13436c8046fa71e | |
parent | c7eeea93ac60aba3c037af8933a7ffc96ccd495c [diff] |
iio: hid-sensors: Convert units and exponent HID sensor hub specify a default unit and alternative units. This along with unit exponent can be used adjust scale. This change change HID sensor data units to IIO defined units for each sensor type. So in this way user space can use a simply use: "(data + offset) * scale" to get final result. Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>