hid-sensors: Add more data fields for sensitivity checking
authorYe Xiang <xiang.ye@intel.com>
Mon, 1 Feb 2021 05:49:21 +0000 (13:49 +0800)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 11 Mar 2021 20:47:09 +0000 (20:47 +0000)
commit4efd13c3c2bc9a5fc37fa34b7d4d2ec1bdf0d127
treee1c2485ebb4c5fe88b6c939a3755faaeab817137
parent0e41fd515f94dcfcc24b6e510d29528431e46f60
hid-sensors: Add more data fields for sensitivity checking

Before, when reading/writing the hysteresis of als, incli-3d, press, and
rotation sensor, we will get invalid argument error.

This patch add more sensitivity data fields for these sensors, so that
these sensors can get sensitivity index and return correct hysteresis
value.

Signed-off-by: Ye Xiang <xiang.ye@intel.com>
Link: https://lore.kernel.org/r/20210201054921.18214-3-xiang.ye@intel.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/light/hid-sensor-als.c
drivers/iio/orientation/hid-sensor-incl-3d.c
drivers/iio/orientation/hid-sensor-rotation.c
drivers/iio/pressure/hid-sensor-press.c