aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/iio/industrialio-core.c1
-rw-r--r--include/linux/iio/types.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/drivers/iio/industrialio-core.c b/drivers/iio/industrialio-core.c
index a5a446beb2fa..e42749ec5c3c 100644
--- a/drivers/iio/industrialio-core.c
+++ b/drivers/iio/industrialio-core.c
@@ -70,6 +70,7 @@ static const char * const iio_modifier_names[] = {
70 [IIO_MOD_X] = "x", 70 [IIO_MOD_X] = "x",
71 [IIO_MOD_Y] = "y", 71 [IIO_MOD_Y] = "y",
72 [IIO_MOD_Z] = "z", 72 [IIO_MOD_Z] = "z",
73 [IIO_MOD_ROOT_SUM_SQUARED_X_Y] = "sqrt(x^2+y^2)",
73 [IIO_MOD_LIGHT_BOTH] = "both", 74 [IIO_MOD_LIGHT_BOTH] = "both",
74 [IIO_MOD_LIGHT_IR] = "ir", 75 [IIO_MOD_LIGHT_IR] = "ir",
75}; 76};
diff --git a/include/linux/iio/types.h b/include/linux/iio/types.h
index d086736a9033..210559ddf8a3 100644
--- a/include/linux/iio/types.h
+++ b/include/linux/iio/types.h
@@ -44,6 +44,7 @@ enum iio_modifier {
44 IIO_MOD_X_OR_Y_OR_Z, 44 IIO_MOD_X_OR_Y_OR_Z,
45 IIO_MOD_LIGHT_BOTH, 45 IIO_MOD_LIGHT_BOTH,
46 IIO_MOD_LIGHT_IR, 46 IIO_MOD_LIGHT_IR,
47 IIO_MOD_ROOT_SUM_SQUARED_X_Y,
47}; 48};
48 49
49#define IIO_VAL_INT 1 50#define IIO_VAL_INT 1