diff options
author | Andrea Merello <andrea.merello@iit.it> | 2022-09-07 15:21:54 +0200 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2022-09-21 18:42:55 +0100 |
commit | 4db63c85462ed81eb3b27f805ed8571f9563dbd7 (patch) | |
tree | b355252e26a45c668298877b9ce63ff5e1f4e3f0 | |
parent | 396882617d1087a0a3fb56d0a59d6dc216640680 (diff) | |
download | linux-stable-4db63c85462ed81eb3b27f805ed8571f9563dbd7.tar.gz linux-stable-4db63c85462ed81eb3b27f805ed8571f9563dbd7.tar.bz2 linux-stable-4db63c85462ed81eb3b27f805ed8571f9563dbd7.zip |
iio: event_monitor: add linear acceleration modifiers
Following the introduction of IIO linear acceleration 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-4-andrea.merello@iit.it
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
-rw-r--r-- | tools/iio/iio_event_monitor.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/iio/iio_event_monitor.c b/tools/iio/iio_event_monitor.c index b3b3ea399f67..f88ffdc3eb40 100644 --- a/tools/iio/iio_event_monitor.c +++ b/tools/iio/iio_event_monitor.c @@ -125,6 +125,9 @@ static const char * const iio_modifier_names[] = { [IIO_MOD_PM4] = "pm4", [IIO_MOD_PM10] = "pm10", [IIO_MOD_O2] = "o2", + [IIO_MOD_LINEAR_X] = "linear_x", + [IIO_MOD_LINEAR_Y] = "linear_y", + [IIO_MOD_LINEAR_Z] = "linear_z", }; static bool event_is_known(struct iio_event_data *event) |