提交 0378250b 编写于 作者: P Peter Meerwald 提交者: Jonathan Cameron

staging:iio: Update iio_event_monitor program

add types recently added
Signed-off-by: NPeter Meerwald <pmeerw@pmeerw.net>
Signed-off-by: NJonathan Cameron <jic23@kernel.org>
上级 2192c6f9
...@@ -46,6 +46,9 @@ static const char * const iio_chan_type_name_spec[] = { ...@@ -46,6 +46,9 @@ static const char * const iio_chan_type_name_spec[] = {
[IIO_TIMESTAMP] = "timestamp", [IIO_TIMESTAMP] = "timestamp",
[IIO_CAPACITANCE] = "capacitance", [IIO_CAPACITANCE] = "capacitance",
[IIO_ALTVOLTAGE] = "altvoltage", [IIO_ALTVOLTAGE] = "altvoltage",
[IIO_CCT] = "cct",
[IIO_PRESSURE] = "pressure",
[IIO_HUMIDITYRELATIVE] = "humidityrelative",
}; };
static const char * const iio_ev_type_text[] = { static const char * const iio_ev_type_text[] = {
...@@ -70,6 +73,8 @@ static const char * const iio_modifier_names[] = { ...@@ -70,6 +73,8 @@ static const char * const iio_modifier_names[] = {
[IIO_MOD_LIGHT_IR] = "ir", [IIO_MOD_LIGHT_IR] = "ir",
[IIO_MOD_ROOT_SUM_SQUARED_X_Y] = "sqrt(x^2+y^2)", [IIO_MOD_ROOT_SUM_SQUARED_X_Y] = "sqrt(x^2+y^2)",
[IIO_MOD_SUM_SQUARED_X_Y_Z] = "x^2+y^2+z^2", [IIO_MOD_SUM_SQUARED_X_Y_Z] = "x^2+y^2+z^2",
[IIO_MOD_LIGHT_BOTH] = "both",
[IIO_MOD_LIGHT_IR] = "ir",
[IIO_MOD_LIGHT_CLEAR] = "clear", [IIO_MOD_LIGHT_CLEAR] = "clear",
[IIO_MOD_LIGHT_RED] = "red", [IIO_MOD_LIGHT_RED] = "red",
[IIO_MOD_LIGHT_GREEN] = "green", [IIO_MOD_LIGHT_GREEN] = "green",
...@@ -100,6 +105,9 @@ static bool event_is_known(struct iio_event_data *event) ...@@ -100,6 +105,9 @@ static bool event_is_known(struct iio_event_data *event)
case IIO_TIMESTAMP: case IIO_TIMESTAMP:
case IIO_CAPACITANCE: case IIO_CAPACITANCE:
case IIO_ALTVOLTAGE: case IIO_ALTVOLTAGE:
case IIO_CCT:
case IIO_PRESSURE:
case IIO_HUMIDITYRELATIVE:
break; break;
default: default:
return false; return false;
...@@ -114,6 +122,8 @@ static bool event_is_known(struct iio_event_data *event) ...@@ -114,6 +122,8 @@ static bool event_is_known(struct iio_event_data *event)
case IIO_MOD_LIGHT_IR: case IIO_MOD_LIGHT_IR:
case IIO_MOD_ROOT_SUM_SQUARED_X_Y: case IIO_MOD_ROOT_SUM_SQUARED_X_Y:
case IIO_MOD_SUM_SQUARED_X_Y_Z: case IIO_MOD_SUM_SQUARED_X_Y_Z:
case IIO_MOD_LIGHT_BOTH:
case IIO_MOD_LIGHT_IR:
case IIO_MOD_LIGHT_CLEAR: case IIO_MOD_LIGHT_CLEAR:
case IIO_MOD_LIGHT_RED: case IIO_MOD_LIGHT_RED:
case IIO_MOD_LIGHT_GREEN: case IIO_MOD_LIGHT_GREEN:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册