Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tools: iio: Update iio_event_monitor names

add recently added channel types and modifiers

Signed-off-by: Peter Meerwald-Stadler <pmeerw@pmeerw.net>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>

authored by

Peter Meerwald-Stadler and committed by
Jonathan Cameron
6ad515c6 bce59b60

+14
+14
tools/iio/iio_event_monitor.c
··· 53 53 [IIO_ENERGY] = "energy", 54 54 [IIO_DISTANCE] = "distance", 55 55 [IIO_VELOCITY] = "velocity", 56 + [IIO_CONCENTRATION] = "concentration", 57 + [IIO_RESISTANCE] = "resistance", 58 + [IIO_PH] = "ph", 56 59 }; 57 60 58 61 static const char * const iio_ev_type_text[] = { ··· 105 102 [IIO_MOD_WALKING] = "walking", 106 103 [IIO_MOD_STILL] = "still", 107 104 [IIO_MOD_ROOT_SUM_SQUARED_X_Y_Z] = "sqrt(x^2+y^2+z^2)", 105 + [IIO_MOD_I] = "i", 106 + [IIO_MOD_Q] = "q", 107 + [IIO_MOD_CO2] = "co2", 108 + [IIO_MOD_VOC] = "voc", 108 109 }; 109 110 110 111 static bool event_is_known(struct iio_event_data *event) ··· 143 136 case IIO_ENERGY: 144 137 case IIO_DISTANCE: 145 138 case IIO_VELOCITY: 139 + case IIO_CONCENTRATION: 140 + case IIO_RESISTANCE: 141 + case IIO_PH: 146 142 break; 147 143 default: 148 144 return false; ··· 184 174 case IIO_MOD_WALKING: 185 175 case IIO_MOD_STILL: 186 176 case IIO_MOD_ROOT_SUM_SQUARED_X_Y_Z: 177 + case IIO_MOD_I: 178 + case IIO_MOD_Q: 179 + case IIO_MOD_CO2: 180 + case IIO_MOD_VOC: 187 181 break; 188 182 default: 189 183 return false;