summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHartmut Knaack <knaack.h@gmx.de>2014-08-02 00:07:00 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-02-22 13:34:51 -0800
commit0ced5ac8b802221153c432ba5f342159dae69c42 (patch)
treea3e86d7011f7cdf9a6f31a2276fcaacda1601622
parent66e138af2e0e22dc9062f9b59516b0bea313b16b (diff)
staging:iio:ad799x fix typo in ad799x_events[]
commit d180371d412627a10dc31d675ef8bc777567df09 upstream. This patch fixes a typo in ad799x_events[], which caused the error "Failed to register event set". Signed-off-by: Hartmut Knaack <knaack.h@gmx.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/iio/adc/ad799x_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/iio/adc/ad799x_core.c b/drivers/staging/iio/adc/ad799x_core.c
index 85b3b782d515..19a671b96aea 100644
--- a/drivers/staging/iio/adc/ad799x_core.c
+++ b/drivers/staging/iio/adc/ad799x_core.c
@@ -393,7 +393,7 @@ static const struct iio_event_spec ad799x_events[] = {
}, {
.type = IIO_EV_TYPE_THRESH,
.dir = IIO_EV_DIR_FALLING,
- .mask_separate = BIT(IIO_EV_INFO_VALUE),
+ .mask_separate = BIT(IIO_EV_INFO_VALUE) |
BIT(IIO_EV_INFO_ENABLE),
}, {
.type = IIO_EV_TYPE_THRESH,