summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorPeter Meerwald-Stadler <pmeerw@pmeerw.net>2016-03-20 16:20:23 +0100
committerJonathan Cameron <jic23@kernel.org>2016-04-03 12:14:01 +0200
commitd409404cf6e201c2980c7148484c350f33a7912e (patch)
tree97d2af968afc1cba701df20eade71fc6409f5a6a /tools
parentiio: Add modifier for UV light (diff)
downloadlinux-d409404cf6e201c2980c7148484c350f33a7912e.tar.xz
linux-d409404cf6e201c2980c7148484c350f33a7912e.zip
iio: Add channel for UV index
UV index indicating strength of sunburn-producing ultraviolet (UV) radiation Signed-off-by: Peter Meerwald-Stadler <pmeerw@pmeerw.net> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'tools')
-rw-r--r--tools/iio/iio_event_monitor.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/iio/iio_event_monitor.c b/tools/iio/iio_event_monitor.c
index 8d7d9797480b..d9b7e0f306c6 100644
--- a/tools/iio/iio_event_monitor.c
+++ b/tools/iio/iio_event_monitor.c
@@ -56,6 +56,7 @@ static const char * const iio_chan_type_name_spec[] = {
[IIO_CONCENTRATION] = "concentration",
[IIO_RESISTANCE] = "resistance",
[IIO_PH] = "ph",
+ [IIO_UVINDEX] = "uvindex",
};
static const char * const iio_ev_type_text[] = {
@@ -147,6 +148,7 @@ static bool event_is_known(struct iio_event_data *event)
case IIO_CONCENTRATION:
case IIO_RESISTANCE:
case IIO_PH:
+ case IIO_UVINDEX:
break;
default:
return false;