summaryrefslogtreecommitdiffstats
path: root/tools/iio
diff options
context:
space:
mode:
authorPeter Meerwald <pmeerw@pmeerw.net>2015-06-20 17:52:31 -0400
committerJonathan Cameron <jic23@kernel.org>2015-06-21 05:46:15 -0400
commit30e8326728fff4c66377bd3ba99266cf8489c915 (patch)
tree7270f4461f1bb02c3f95c36565c7274233f2cb1c /tools/iio
parent4b8d80157e5d9074c5eac12aff8dad1742b52f1c (diff)
tools: iio: Add missing names to iio_event_monitor
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'tools/iio')
-rw-r--r--tools/iio/iio_event_monitor.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/iio/iio_event_monitor.c b/tools/iio/iio_event_monitor.c
index a4ab6bb8f872..1dba09062a64 100644
--- a/tools/iio/iio_event_monitor.c
+++ b/tools/iio/iio_event_monitor.c
@@ -50,6 +50,9 @@ static const char * const iio_chan_type_name_spec[] = {
50 [IIO_HUMIDITYRELATIVE] = "humidityrelative", 50 [IIO_HUMIDITYRELATIVE] = "humidityrelative",
51 [IIO_ACTIVITY] = "activity", 51 [IIO_ACTIVITY] = "activity",
52 [IIO_STEPS] = "steps", 52 [IIO_STEPS] = "steps",
53 [IIO_ENERGY] = "energy",
54 [IIO_DISTANCE] = "distance",
55 [IIO_VELOCITY] = "velocity",
53}; 56};
54 57
55static const char * const iio_ev_type_text[] = { 58static const char * const iio_ev_type_text[] = {
@@ -98,6 +101,7 @@ static const char * const iio_modifier_names[] = {
98 [IIO_MOD_JOGGING] = "jogging", 101 [IIO_MOD_JOGGING] = "jogging",
99 [IIO_MOD_WALKING] = "walking", 102 [IIO_MOD_WALKING] = "walking",
100 [IIO_MOD_STILL] = "still", 103 [IIO_MOD_STILL] = "still",
104 [IIO_MOD_ROOT_SUM_SQUARED_X_Y_Z] = "sqrt(x^2+y^2+z^2)",
101}; 105};
102 106
103static bool event_is_known(struct iio_event_data *event) 107static bool event_is_known(struct iio_event_data *event)
@@ -129,6 +133,9 @@ static bool event_is_known(struct iio_event_data *event)
129 case IIO_HUMIDITYRELATIVE: 133 case IIO_HUMIDITYRELATIVE:
130 case IIO_ACTIVITY: 134 case IIO_ACTIVITY:
131 case IIO_STEPS: 135 case IIO_STEPS:
136 case IIO_ENERGY:
137 case IIO_DISTANCE:
138 case IIO_VELOCITY:
132 break; 139 break;
133 default: 140 default:
134 return false; 141 return false;
@@ -166,6 +173,7 @@ static bool event_is_known(struct iio_event_data *event)
166 case IIO_MOD_JOGGING: 173 case IIO_MOD_JOGGING:
167 case IIO_MOD_WALKING: 174 case IIO_MOD_WALKING:
168 case IIO_MOD_STILL: 175 case IIO_MOD_STILL:
176 case IIO_MOD_ROOT_SUM_SQUARED_X_Y_Z:
169 break; 177 break;
170 default: 178 default:
171 return false; 179 return false;