iio: hid: Add temperature sensor support
authorSong Hongyan <hongyan.song@intel.com>
Fri, 3 Mar 2017 13:44:32 +0000 (21:44 +0800)
committerJonathan Cameron <jic23@kernel.org>
Sat, 4 Mar 2017 18:45:26 +0000 (18:45 +0000)
commit59d0f2da35693bfbcf6ffb014213cb8e225c8928
treede359752da0bee9076b7e25ca1308f6a2aa67a38
parent0f0c106aa95243c5e59f06fb447ed7ea89818be1
iio: hid: Add temperature sensor support

Environmental temperature sensor is a hid defined sensor,
it measures temperature.

More information can be found in:
http://www.usb.org/developers/hidpage/HUTRR39b.pdf

According to IIO ABI definition, IIO_TEMP data output unit is
milli degrees Celsius. Add the unit convert from degree to milli degree.

Signed-off-by: Song Hongyan <hongyan.song@intel.com>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/common/hid-sensors/hid-sensor-attributes.c
drivers/iio/temperature/Kconfig
drivers/iio/temperature/Makefile
drivers/iio/temperature/hid-sensor-temperature.c [new file with mode: 0644]
include/linux/hid-sensor-ids.h