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>
This commit is contained in:
Jonathan Cameron
2012-05-05 10:39:22 +01:00
parent 07c7f79ee1
commit 8f5879b20b
2 changed files with 2 additions and 0 deletions

View File

@@ -44,6 +44,7 @@ enum iio_modifier {
IIO_MOD_X_OR_Y_OR_Z,
IIO_MOD_LIGHT_BOTH,
IIO_MOD_LIGHT_IR,
IIO_MOD_ROOT_SUM_SQUARED_X_Y,
};
#define IIO_VAL_INT 1