aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>2014-10-10 23:33:28 -0400
committerJonathan Cameron <jic23@kernel.org>2014-11-16 15:19:25 -0500
commit6896ab3a8cfe383cc0c98790b62245a84c6335f7 (patch)
tree2dff4e12056fdeaacc5dde9eebad6c246c0524b0
parentcb80f6a36be9b3007f23c2d37eddc90a37dac87f (diff)
iio: gyro: bmg160: Fix iio_event_spec direction
Change event spec direction from IIO_EV_DIR_RISING | IIO_EV_DIR_FALLING to IIO_EV_DIR_EITHER Suggested-by: Daniel Baluta <daniel.baluta@intel.com> Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
-rw-r--r--drivers/iio/gyro/bmg160.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/gyro/bmg160.c b/drivers/iio/gyro/bmg160.c
index 9f751d6fac6f..d2fa526740ca 100644
--- a/drivers/iio/gyro/bmg160.c
+++ b/drivers/iio/gyro/bmg160.c
@@ -766,7 +766,7 @@ static const struct attribute_group bmg160_attrs_group = {
766 766
767static const struct iio_event_spec bmg160_event = { 767static const struct iio_event_spec bmg160_event = {
768 .type = IIO_EV_TYPE_ROC, 768 .type = IIO_EV_TYPE_ROC,
769 .dir = IIO_EV_DIR_RISING | IIO_EV_DIR_FALLING, 769 .dir = IIO_EV_DIR_EITHER,
770 .mask_shared_by_type = BIT(IIO_EV_INFO_VALUE) | 770 .mask_shared_by_type = BIT(IIO_EV_INFO_VALUE) |
771 BIT(IIO_EV_INFO_ENABLE) 771 BIT(IIO_EV_INFO_ENABLE)
772}; 772};