diff --git a/drivers/staging/iio/adc/ad7291.c b/drivers/staging/iio/adc/ad7291.c index 9d1af0e9cc0febf474372b9b857936dc5c03becc..d125af0ccf590d59c1a3046d3298dd7ad1bf1adc 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;