Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 693101dd authored by Lars-Peter Clausen's avatar Lars-Peter Clausen Committed by Jonathan Cameron
Browse files

staging:iio:lis2l02dq: Share threshold value between axis



The threshold event can be enabled/disabled separately, but the threshold value
is shared between all three axis.

Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 8613e92c
Loading
Loading
Loading
Loading
+4 −4
Original line number Original line Diff line number Diff line
@@ -518,13 +518,13 @@ static const struct iio_event_spec lis3l02dq_event[] = {
	{
	{
		.type = IIO_EV_TYPE_THRESH,
		.type = IIO_EV_TYPE_THRESH,
		.dir = IIO_EV_DIR_RISING,
		.dir = IIO_EV_DIR_RISING,
		.mask_separate = BIT(IIO_EV_INFO_VALUE) |
		.mask_separate = BIT(IIO_EV_INFO_ENABLE),
			BIT(IIO_EV_INFO_ENABLE),
		.mask_shared_by_type = BIT(IIO_EV_INFO_VALUE),
	}, {
	}, {
		.type = IIO_EV_TYPE_THRESH,
		.type = IIO_EV_TYPE_THRESH,
		.dir = IIO_EV_DIR_FALLING,
		.dir = IIO_EV_DIR_FALLING,
		.mask_separate = BIT(IIO_EV_INFO_VALUE) |
		.mask_separate = BIT(IIO_EV_INFO_ENABLE),
			BIT(IIO_EV_INFO_ENABLE),
		.mask_shared_by_type = BIT(IIO_EV_INFO_VALUE),
	}
	}
};
};