diff options
author | Ye Xiang <xiang.ye@intel.com> | 2021-02-07 10:00:46 +0300 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2021-03-11 23:47:09 +0300 |
commit | 1c71a2863a0c56123e5a67880cf658083c0a0b1e (patch) | |
tree | e8b9c17153e31843f92ed7db15f83bf82386bdb5 /include/linux/hid-sensor-ids.h | |
parent | 4efd13c3c2bc9a5fc37fa34b7d4d2ec1bdf0d127 (diff) | |
download | linux-1c71a2863a0c56123e5a67880cf658083c0a0b1e.tar.xz |
iio: Add relative sensitivity support
Some hid sensors may use relative sensitivity such as als sensor.
This patch adds relative sensitivity checking for all hid sensors.
Signed-off-by: Ye Xiang <xiang.ye@intel.com>
Acked-by: Jiri Kosina <jkosina@suse.cz>
Link: https://lore.kernel.org/r/20210207070048.23935-2-xiang.ye@intel.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'include/linux/hid-sensor-ids.h')
-rw-r--r-- | include/linux/hid-sensor-ids.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/hid-sensor-ids.h b/include/linux/hid-sensor-ids.h index 3bbdbccc5805..ac631159403a 100644 --- a/include/linux/hid-sensor-ids.h +++ b/include/linux/hid-sensor-ids.h @@ -149,6 +149,7 @@ /* Per data field properties */ #define HID_USAGE_SENSOR_DATA_MOD_NONE 0x00 #define HID_USAGE_SENSOR_DATA_MOD_CHANGE_SENSITIVITY_ABS 0x1000 +#define HID_USAGE_SENSOR_DATA_MOD_CHANGE_SENSITIVITY_REL_PCT 0xE000 /* Power state enumerations */ #define HID_USAGE_SENSOR_PROP_POWER_STATE_UNDEFINED_ENUM 0x200850 |