summaryrefslogtreecommitdiffstats
path: root/drivers/iio/industrialio-core.c
diff options
context:
space:
mode:
authorHarald Geyer <harald@ccbib.org>2013-12-01 16:08:00 +0100
committerJonathan Cameron <jic23@kernel.org>2013-12-03 21:22:29 +0100
commitac216aa290c48a5e9d7b9f2473abb977a175683a (patch)
tree9292b2f5794f8620eb19cc6c0f6f34be04b77fd5 /drivers/iio/industrialio-core.c
parentstaging:iio:ad9834: Mark transfer buffers as __b16 (diff)
downloadlinux-ac216aa290c48a5e9d7b9f2473abb977a175683a.tar.xz
linux-ac216aa290c48a5e9d7b9f2473abb977a175683a.zip
iio: Add support for humidity sensors
There are already humidity sensors in the hwmon subsystem, so we use their unit (milli percent) here as well. Signed-off-by: Harald Geyer <harald@ccbib.org> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/industrialio-core.c')
-rw-r--r--drivers/iio/industrialio-core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/industrialio-core.c b/drivers/iio/industrialio-core.c
index 2fe88c189f74..acc911a836ca 100644
--- a/drivers/iio/industrialio-core.c
+++ b/drivers/iio/industrialio-core.c
@@ -69,6 +69,7 @@ static const char * const iio_chan_type_name_spec[] = {
[IIO_ALTVOLTAGE] = "altvoltage",
[IIO_CCT] = "cct",
[IIO_PRESSURE] = "pressure",
+ [IIO_HUMIDITYRELATIVE] = "humidityrelative",
};
static const char * const iio_modifier_names[] = {