Commit 94c93dbd authored by Michael Hennerich's avatar Michael Hennerich Committed by Greg Kroah-Hartman

staging:iio:adc:ad7291: fix mask bit generation

Signed-off-by: default avatarMichael Hennerich <michael.hennerich@analog.com>
Signed-off-by: default avatarJonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 81e2edbe
...@@ -418,7 +418,7 @@ static int ad7291_write_event_config(struct iio_dev *indio_dev, ...@@ -418,7 +418,7 @@ static int ad7291_write_event_config(struct iio_dev *indio_dev,
~(1 << IIO_EVENT_CODE_EXTRACT_NUM(event_code)); ~(1 << IIO_EVENT_CODE_EXTRACT_NUM(event_code));
else if (state && (!(chip->c_mask & else if (state && (!(chip->c_mask &
(1 << IIO_EVENT_CODE_EXTRACT_NUM(event_code))))) (1 << IIO_EVENT_CODE_EXTRACT_NUM(event_code)))))
chip->c_mask &= chip->c_mask |=
(1 << IIO_EVENT_CODE_EXTRACT_NUM(event_code)); (1 << IIO_EVENT_CODE_EXTRACT_NUM(event_code));
else else
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment