summaryrefslogtreecommitdiff
path: root/tools/iio/iio_event_monitor.c
diff options
context:
space:
mode:
authorAndrea Merello <andrea.merello@iit.it>2022-09-07 15:21:57 +0200
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2022-09-21 18:42:55 +0100
commitab9d343da3a43c8e28c6341cbf7fd30b6bc42664 (patch)
treebde58b6752e288015cdaa0a0b3022c1f23d8ca14 /tools/iio/iio_event_monitor.c
parent246d178c78685fc6ffcd8339ef0e64771024d82f (diff)
iio: event_monitor: add pitch, yaw and roll modifiers
Following the introduction of pitch, yaw and roll IIO modifiers, update the event_monitor tool accordingly. Signed-off-by: Andrea Merello <andrea.merello@iit.it> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Link: https://lore.kernel.org/r/20220907132205.28021-7-andrea.merello@iit.it Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/iio/iio_event_monitor.c')
-rw-r--r--tools/iio/iio_event_monitor.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/iio/iio_event_monitor.c b/tools/iio/iio_event_monitor.c
index f88ffdc3eb40..0a5c2bb60030 100644
--- a/tools/iio/iio_event_monitor.c
+++ b/tools/iio/iio_event_monitor.c
@@ -128,6 +128,9 @@ static const char * const iio_modifier_names[] = {
[IIO_MOD_LINEAR_X] = "linear_x",
[IIO_MOD_LINEAR_Y] = "linear_y",
[IIO_MOD_LINEAR_Z] = "linear_z",
+ [IIO_MOD_PITCH] = "pitch",
+ [IIO_MOD_YAW] = "yaw",
+ [IIO_MOD_ROLL] = "roll",
};
static bool event_is_known(struct iio_event_data *event)