From: Michael Hennerich Date: Fri, 2 Sep 2011 16:25:41 +0000 (+0100) Subject: staging:iio:adc:ad7291: fix mask bit generation X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=94c93dbde974b074a4301fb7c44f9dbb04da8712;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git staging:iio:adc:ad7291: fix mask bit generation Signed-off-by: Michael Hennerich Signed-off-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman --- 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;