summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJonathan Cameron <jic23@kernel.org>2012-05-05 10:56:41 +0100
committerJonathan Cameron <jic23@kernel.org>2012-06-30 10:15:28 +0100
commitcf82cb8128496955a38fa62e1819ceb1d596e2eb (patch)
tree330d177db4e6737e1a2b23a5708259c193c19d8f /include
parentf699d10202d50a764614ff9191b5c4b9dd75e36c (diff)
downloadlinux-3.10-cf82cb8128496955a38fa62e1819ceb1d596e2eb.tar.gz
linux-3.10-cf82cb8128496955a38fa62e1819ceb1d596e2eb.tar.bz2
linux-3.10-cf82cb8128496955a38fa62e1819ceb1d596e2eb.zip
IIO: Add a modifier for x^2+y^2+z^2
There will probably be a number of such modifiers eventually but this one is used in the adis16240 accelerometer driver. Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'include')
-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 210559ddf8a..e2504017334 100644
--- a/include/linux/iio/types.h
+++ b/include/linux/iio/types.h
@@ -45,6 +45,7 @@ enum iio_modifier {
IIO_MOD_LIGHT_BOTH,
IIO_MOD_LIGHT_IR,
IIO_MOD_ROOT_SUM_SQUARED_X_Y,
+ IIO_MOD_SUM_SQUARED_X_Y_Z,
};
#define IIO_VAL_INT 1