Skip to content

Commit 1174124

Browse files
spandruvadajic23
authored andcommitted
iio: accel: bmc150: 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>
1 parent 8d5a978 commit 1174124

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/iio/accel/bmc150-accel.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,7 @@ static const struct attribute_group bmc150_accel_attrs_group = {
853853

854854
static const struct iio_event_spec bmc150_accel_event = {
855855
.type = IIO_EV_TYPE_ROC,
856-
.dir = IIO_EV_DIR_RISING | IIO_EV_DIR_FALLING,
856+
.dir = IIO_EV_DIR_EITHER,
857857
.mask_separate = BIT(IIO_EV_INFO_VALUE) |
858858
BIT(IIO_EV_INFO_ENABLE) |
859859
BIT(IIO_EV_INFO_PERIOD)

0 commit comments

Comments
 (0)