summaryrefslogtreecommitdiff
path: root/drivers/iio/humidity/Kconfig
diff options
context:
space:
mode:
authorSong Hongyan <hongyan.song@intel.com>2017-03-20 22:28:45 +0800
committerJonathan Cameron <jic23@kernel.org>2017-03-25 16:32:24 +0000
commitd7ed89d5aadf09f1060cd3a9cf07df17447c7392 (patch)
tree1b253926d498d7746d1a4dc29a3686998507021f /drivers/iio/humidity/Kconfig
parente0ad9b73e81a2dfb8cf8b375fefbb0891a8187a1 (diff)
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 'drivers/iio/humidity/Kconfig')
-rw-r--r--drivers/iio/humidity/Kconfig14
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/iio/humidity/Kconfig b/drivers/iio/humidity/Kconfig
index 912477d54be2..14b9ce453d9d 100644
--- a/drivers/iio/humidity/Kconfig
+++ b/drivers/iio/humidity/Kconfig
@@ -36,6 +36,20 @@ config HDC100X
To compile this driver as a module, choose M here: the module
will be called hdc100x.
+config HID_SENSOR_HUMIDITY
+ tristate "HID Environmental humidity sensor"
+ depends on HID_SENSOR_HUB
+ select IIO_BUFFER
+ select IIO_TRIGGERED_BUFFER
+ select HID_SENSOR_IIO_COMMON
+ select HID_SENSOR_IIO_TRIGGER
+ help
+ Say yes here to build support for the HID SENSOR
+ humidity driver
+
+ To compile this driver as a module, choose M here: the module
+ will be called hid-sensor-humidity.
+
config HTS221
tristate "STMicroelectronics HTS221 sensor Driver"
depends on (I2C || SPI)