projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8613e92
)
staging:iio:lis2l02dq: Share threshold value between axis
author
Lars-Peter Clausen
<lars@metafoo.de>
Mon, 7 Oct 2013 14:11:00 +0000
(15:11 +0100)
committer
Jonathan Cameron
<jic23@kernel.org>
Sat, 12 Oct 2013 11:45:44 +0000
(12:45 +0100)
The threshold event can be enabled/disabled separately, but the threshold value
is shared between all three axis.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/accel/lis3l02dq_core.c
patch
|
blob
|
history
diff --git
a/drivers/staging/iio/accel/lis3l02dq_core.c
b/drivers/staging/iio/accel/lis3l02dq_core.c
index 78187f136a7d4189e6fdf72bc47a7b283a022a27..2789be381f1b166072d0cef2f6fd0ca3f95f60c0 100644
(file)
--- a/
drivers/staging/iio/accel/lis3l02dq_core.c
+++ b/
drivers/staging/iio/accel/lis3l02dq_core.c
@@
-518,13
+518,13
@@
static const struct iio_event_spec lis3l02dq_event[] = {
{
.type = IIO_EV_TYPE_THRESH,
.dir = IIO_EV_DIR_RISING,
- .mask_separate = BIT(IIO_EV_INFO_
VALUE) |
-
BIT(IIO_EV_INFO_ENABL
E),
+ .mask_separate = BIT(IIO_EV_INFO_
ENABLE),
+
.mask_shared_by_type = BIT(IIO_EV_INFO_VALU
E),
}, {
.type = IIO_EV_TYPE_THRESH,
.dir = IIO_EV_DIR_FALLING,
- .mask_separate = BIT(IIO_EV_INFO_
VALUE) |
-
BIT(IIO_EV_INFO_ENABL
E),
+ .mask_separate = BIT(IIO_EV_INFO_
ENABLE),
+
.mask_shared_by_type = BIT(IIO_EV_INFO_VALU
E),
}
};