summaryrefslogtreecommitdiff
path: root/drivers/iio/light/hid-sensor-als.c
diff options
context:
space:
mode:
authorYe Xiang <xiang.ye@intel.com>2021-02-01 08:49:21 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2021-03-11 23:47:09 +0300
commit4efd13c3c2bc9a5fc37fa34b7d4d2ec1bdf0d127 (patch)
treee1c2485ebb4c5fe88b6c939a3755faaeab817137 /drivers/iio/light/hid-sensor-als.c
parent0e41fd515f94dcfcc24b6e510d29528431e46f60 (diff)
downloadlinux-4efd13c3c2bc9a5fc37fa34b7d4d2ec1bdf0d127.tar.xz
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>
Diffstat (limited to 'drivers/iio/light/hid-sensor-als.c')
-rw-r--r--drivers/iio/light/hid-sensor-als.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/light/hid-sensor-als.c b/drivers/iio/light/hid-sensor-als.c
index 8bf6e9e0a0e0..afcdb424bfb8 100644
--- a/drivers/iio/light/hid-sensor-als.c
+++ b/drivers/iio/light/hid-sensor-als.c
@@ -41,6 +41,7 @@ struct als_state {
static const u32 als_sensitivity_addresses[] = {
HID_USAGE_SENSOR_DATA_LIGHT,
+ HID_USAGE_SENSOR_LIGHT_ILLUM,
};
/* Channel definitions */