summaryrefslogtreecommitdiffstats
path: root/include/linux/hid-sensor-ids.h
diff options
context:
space:
mode:
authorSong Hongyan2017-03-20 15:28:45 +0100
committerJonathan Cameron2017-03-25 17:32:24 +0100
commitd7ed89d5aadf09f1060cd3a9cf07df17447c7392 (patch)
tree1b253926d498d7746d1a4dc29a3686998507021f /include/linux/hid-sensor-ids.h
parentiio: hid-sensor-attributes: Fix gravity sensor scale value not right issue (diff)
downloadkernel-qcow2-linux-d7ed89d5aadf09f1060cd3a9cf07df17447c7392.tar.gz
kernel-qcow2-linux-d7ed89d5aadf09f1060cd3a9cf07df17447c7392.tar.xz
kernel-qcow2-linux-d7ed89d5aadf09f1060cd3a9cf07df17447c7392.zip
iio: hid: Add humidity sensor support
Environmental humidity sensor is a hid defined sensor, it shows raw humidity measurement of air. More information can be found in: http://www.usb.org/developers/hidpage/HUTRR39b.pdf According to IIO ABI definition, humidityrelative data output unit is milli percent. Add the unit convert from percent to milli percent. Signed-off-by: Song Hongyan <hongyan.song@intel.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'include/linux/hid-sensor-ids.h')
-rw-r--r--include/linux/hid-sensor-ids.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/hid-sensor-ids.h b/include/linux/hid-sensor-ids.h
index 46dd1f27d2f2..761f86242473 100644
--- a/include/linux/hid-sensor-ids.h
+++ b/include/linux/hid-sensor-ids.h
@@ -49,6 +49,10 @@
#define HID_USAGE_SENSOR_TEMPERATURE 0x200033
#define HID_USAGE_SENSOR_DATA_ENVIRONMENTAL_TEMPERATURE 0x200434
+/* humidity */
+#define HID_USAGE_SENSOR_HUMIDITY 0x200032
+#define HID_USAGE_SENSOR_ATMOSPHERIC_HUMIDITY 0x200433
+
/* Gyro 3D: (200076) */
#define HID_USAGE_SENSOR_GYRO_3D 0x200076
#define HID_USAGE_SENSOR_DATA_ANGL_VELOCITY 0x200456