]> Git Repo - linux.git/commitdiff
iio: accel: bmc150: Fix iio_event_spec direction
authorSrinivas Pandruvada <[email protected]>
Sat, 11 Oct 2014 03:35:34 +0000 (20:35 -0700)
committerJonathan Cameron <[email protected]>
Sun, 16 Nov 2014 20:23:48 +0000 (20:23 +0000)
Change event spec direction from
IIO_EV_DIR_RISING | IIO_EV_DIR_FALLING
to
IIO_EV_DIR_EITHER

Suggested-by: Daniel Baluta <[email protected]>
Signed-off-by: Srinivas Pandruvada <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
drivers/iio/accel/bmc150-accel.c

index c6df8ee00c9d8993ff6a7c8dba0735e57c7071f2..352d9596366169c3f8767c362065a830edbf4ec5 100644 (file)
@@ -853,7 +853,7 @@ static const struct attribute_group bmc150_accel_attrs_group = {
 
 static const struct iio_event_spec bmc150_accel_event = {
                .type = IIO_EV_TYPE_ROC,
-               .dir = IIO_EV_DIR_RISING | IIO_EV_DIR_FALLING,
+               .dir = IIO_EV_DIR_EITHER,
                .mask_separate = BIT(IIO_EV_INFO_VALUE) |
                                 BIT(IIO_EV_INFO_ENABLE) |
                                 BIT(IIO_EV_INFO_PERIOD)
This page took 0.058801 seconds and 4 git commands to generate.