iio: hid-sensor-rotation: Add "scale" and "offset" properties parse support
authorSong Hongyan <hongyan.song@intel.com>
Sun, 7 May 2017 10:24:26 +0000 (18:24 +0800)
committerJonathan Cameron <jic23@kernel.org>
Sun, 7 May 2017 11:22:36 +0000 (12:22 +0100)
commita78587d338d084037b0ea6687508f207d8dec2fb
tree43f2428537d50c344174aba0d3ec9feb87561a77
parent00907c7a3282053dd4782e02c3101809608e7ea7
iio: hid-sensor-rotation: Add "scale" and "offset" properties parse support

Add orientation sensor "scale" and "offset" parse support.
These two properties are needed for exponent data conversion.

Signed-off-by: Song Hongyan <hongyan.song@intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Reviewed-by: Xu Even <even.xu@intel.com>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/common/hid-sensors/hid-sensor-attributes.c
drivers/iio/orientation/hid-sensor-rotation.c