aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/iio
diff options
context:
space:
mode:
authorJonathan Cameron <jic23@kernel.org>2012-05-05 05:39:22 -0400
committerJonathan Cameron <jic23@kernel.org>2012-06-30 05:15:22 -0400
commit8f5879b20be7f918cdc4b3d831cfd8f3dc02c74c (patch)
tree0188cdaaa080a745c29a4fe9b47c02ad636c1537 /include/linux/iio
parent07c7f79ee1c7e6288c614ba88005a8de6dbaadff (diff)
IIO: Add a modifier for sqrt(x^2+y^2)
There will probably be a number of such modifiers eventually but this one is used in the adis16204 accelerometer driver. Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'include/linux/iio')
-rw-r--r--include/linux/iio/types.h1
1 files changed, 1 insertions, 0 deletions
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