diff options
author | Song Hongyan <hongyan.song@intel.com> | 2017-03-20 22:28:45 +0800 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2017-03-25 16:32:24 +0000 |
commit | d7ed89d5aadf09f1060cd3a9cf07df17447c7392 (patch) | |
tree | 1b253926d498d7746d1a4dc29a3686998507021f /drivers/iio/humidity/Makefile | |
parent | e0ad9b73e81a2dfb8cf8b375fefbb0891a8187a1 (diff) | |
download | linux-d7ed89d5aadf09f1060cd3a9cf07df17447c7392.tar.gz |
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/Makefile')
-rw-r--r-- | drivers/iio/humidity/Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/iio/humidity/Makefile b/drivers/iio/humidity/Makefile index a6850e47c100..be0dedeb8f3c 100644 --- a/drivers/iio/humidity/Makefile +++ b/drivers/iio/humidity/Makefile @@ -5,6 +5,7 @@ obj-$(CONFIG_AM2315) += am2315.o obj-$(CONFIG_DHT11) += dht11.o obj-$(CONFIG_HDC100X) += hdc100x.o +obj-$(CONFIG_HID_SENSOR_HUMIDITY) += hid-sensor-humidity.o hts221-y := hts221_core.o \ hts221_buffer.o @@ -15,3 +16,5 @@ obj-$(CONFIG_HTS221_SPI) += hts221_spi.o obj-$(CONFIG_HTU21) += htu21.o obj-$(CONFIG_SI7005) += si7005.o obj-$(CONFIG_SI7020) += si7020.o + +ccflags-y += -I$(srctree)/drivers/iio/common/hid-sensors |