diff options
author | Ricardo Ribalda <ribalda@chromium.org> | 2024-11-01 08:46:29 +0100 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2024-11-03 21:33:43 +0100 |
commit | 9d2fe9cd02ca5f1e70a7eff0262fb3668a27db0c (patch) | |
tree | 04598293bfb1feaaebe19d5b89ef6f16a8475025 /tools/iio | |
parent | iio: hid-sensors-prox: Factor-in hid_sensor_push_data (diff) | |
download | linux-9d2fe9cd02ca5f1e70a7eff0262fb3668a27db0c.tar.xz linux-9d2fe9cd02ca5f1e70a7eff0262fb3668a27db0c.zip |
iio: Add channel type for attention
Add a new channel type representing if the user's attention state to the
the system. This usually means if the user is looking at the screen or
not.
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Link: https://patch.msgid.link/20241101-hpd-v3-3-e9c80b7c7164@chromium.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/iio')
-rw-r--r-- | tools/iio/iio_event_monitor.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/iio/iio_event_monitor.c b/tools/iio/iio_event_monitor.c index d0b8e484826d..cccf62ea2b8f 100644 --- a/tools/iio/iio_event_monitor.c +++ b/tools/iio/iio_event_monitor.c @@ -63,6 +63,7 @@ static const char * const iio_chan_type_name_spec[] = { [IIO_DELTA_VELOCITY] = "deltavelocity", [IIO_COLORTEMP] = "colortemp", [IIO_CHROMATICITY] = "chromaticity", + [IIO_ATTENTION] = "attention", }; static const char * const iio_ev_type_text[] = { @@ -183,6 +184,7 @@ static bool event_is_known(struct iio_event_data *event) case IIO_DELTA_VELOCITY: case IIO_COLORTEMP: case IIO_CHROMATICITY: + case IIO_ATTENTION: break; default: return false; |