From 94c93dbde974b074a4301fb7c44f9dbb04da8712 Mon Sep 17 00:00:00 2001 From: Michael Hennerich Date: Fri, 2 Sep 2011 17:25:41 +0100 Subject: [PATCH] staging:iio:adc:ad7291: fix mask bit generation Signed-off-by: Michael Hennerich Signed-off-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman --- drivers/staging/iio/adc/ad7291.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/iio/adc/ad7291.c b/drivers/staging/iio/adc/ad7291.c index 9d1af0e9cc0f..d125af0ccf59 100644 --- a/drivers/staging/iio/adc/ad7291.c +++ b/drivers/staging/iio/adc/ad7291.c @@ -418,7 +418,7 @@ static int ad7291_write_event_config(struct iio_dev *indio_dev, ~(1 << IIO_EVENT_CODE_EXTRACT_NUM(event_code)); else if (state && (!(chip->c_mask & (1 << IIO_EVENT_CODE_EXTRACT_NUM(event_code))))) - chip->c_mask &= + chip->c_mask |= (1 << IIO_EVENT_CODE_EXTRACT_NUM(event_code)); else break; -- 2.20.1