From: Hartmut Knaack Date: Fri, 1 Aug 2014 23:07:00 +0000 (+0100) Subject: staging:iio:ad799x fix typo in ad799x_events[] X-Git-Tag: v3.13.5~47 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0ced5ac8b802221153c432ba5f342159dae69c42;p=thirdparty%2Fkernel%2Fstable.git 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 Signed-off-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/iio/adc/ad799x_core.c b/drivers/staging/iio/adc/ad799x_core.c index 85b3b782d5150..19a671b96aea1 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,