diff options
author | Jonathan Cameron <jic23@kernel.org> | 2012-05-05 05:39:22 -0400 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2012-06-30 05:15:22 -0400 |
commit | 8f5879b20be7f918cdc4b3d831cfd8f3dc02c74c (patch) | |
tree | 0188cdaaa080a745c29a4fe9b47c02ad636c1537 /drivers/iio | |
parent | 07c7f79ee1c7e6288c614ba88005a8de6dbaadff (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 'drivers/iio')
-rw-r--r-- | drivers/iio/industrialio-core.c | 1 |
1 files changed, 1 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 | }; |