aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/iio/Documentation/iio_event_monitor.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/staging/iio/Documentation/iio_event_monitor.c')
-rw-r--r--drivers/staging/iio/Documentation/iio_event_monitor.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/staging/iio/Documentation/iio_event_monitor.c b/drivers/staging/iio/Documentation/iio_event_monitor.c
index 4326e9e764c..3a9b0008740 100644
--- a/drivers/staging/iio/Documentation/iio_event_monitor.c
+++ b/drivers/staging/iio/Documentation/iio_event_monitor.c
@@ -68,6 +68,12 @@ static const char * const iio_modifier_names[] = {
68 [IIO_MOD_Z] = "z", 68 [IIO_MOD_Z] = "z",
69 [IIO_MOD_LIGHT_BOTH] = "both", 69 [IIO_MOD_LIGHT_BOTH] = "both",
70 [IIO_MOD_LIGHT_IR] = "ir", 70 [IIO_MOD_LIGHT_IR] = "ir",
71 [IIO_MOD_ROOT_SUM_SQUARED_X_Y] = "sqrt(x^2+y^2)",
72 [IIO_MOD_SUM_SQUARED_X_Y_Z] = "x^2+y^2+z^2",
73 [IIO_MOD_LIGHT_CLEAR] = "clear",
74 [IIO_MOD_LIGHT_RED] = "red",
75 [IIO_MOD_LIGHT_GREEN] = "green",
76 [IIO_MOD_LIGHT_BLUE] = "blue",
71}; 77};
72 78
73static bool event_is_known(struct iio_event_data *event) 79static bool event_is_known(struct iio_event_data *event)
@@ -106,6 +112,12 @@ static bool event_is_known(struct iio_event_data *event)
106 case IIO_MOD_Z: 112 case IIO_MOD_Z:
107 case IIO_MOD_LIGHT_BOTH: 113 case IIO_MOD_LIGHT_BOTH:
108 case IIO_MOD_LIGHT_IR: 114 case IIO_MOD_LIGHT_IR:
115 case IIO_MOD_ROOT_SUM_SQUARED_X_Y:
116 case IIO_MOD_SUM_SQUARED_X_Y_Z:
117 case IIO_MOD_LIGHT_CLEAR:
118 case IIO_MOD_LIGHT_RED:
119 case IIO_MOD_LIGHT_GREEN:
120 case IIO_MOD_LIGHT_BLUE:
109 break; 121 break;
110 default: 122 default:
111 return false; 123 return false;