iio: hid: Add humidity sensor support
authorSong Hongyan <hongyan.song@intel.com>
Mon, 20 Mar 2017 14:28:45 +0000 (22:28 +0800)
committerJonathan Cameron <jic23@kernel.org>
Sat, 25 Mar 2017 16:32:24 +0000 (16:32 +0000)
commitd7ed89d5aadf09f1060cd3a9cf07df17447c7392
tree1b253926d498d7746d1a4dc29a3686998507021f
parente0ad9b73e81a2dfb8cf8b375fefbb0891a8187a1
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>
drivers/iio/common/hid-sensors/hid-sensor-attributes.c
drivers/iio/humidity/Kconfig
drivers/iio/humidity/Makefile
drivers/iio/humidity/hid-sensor-humidity.c [new file with mode: 0644]
include/linux/hid-sensor-ids.h