提交 94c93dbd 编写于 作者: M Michael Hennerich 提交者: Greg Kroah-Hartman

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

Signed-off-by: NMichael Hennerich <michael.hennerich@analog.com>
Signed-off-by: NJonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 81e2edbe
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册