diff options
author | Cosmin Tanislav <demonsingur@gmail.com> | 2022-01-12 22:00:36 +0200 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2022-01-23 18:23:48 +0000 |
commit | 0e33d15f1dce9e3a80a970ea7f0b27837168aeca (patch) | |
tree | c74ea696bd2ad15adbea05ef70fdbd6cef5f9c71 /drivers/iio/imu | |
parent | b7a78a8adaa8849c02f174d707aead0f85dca0da (diff) |
iio: adc: ad7124: fix mask used for setting AIN_BUFP & AIN_BUFM bits
According to page 90 of the datasheet [1], AIN_BUFP is bit 6 and
AIN_BUFM is bit 5 of the CONFIG_0 -> CONFIG_7 registers.
Fix the mask used for setting these bits.
[1]: https://www.analog.com/media/en/technical-documentation/data-sheets/ad7124-8.pdf
Fixes: 0eaecea6e487 ("iio: adc: ad7124: Add buffered input support")
Signed-off-by: Cosmin Tanislav <cosmin.tanislav@analog.com>
Link: https://lore.kernel.org/r/20220112200036.694490-1-cosmin.tanislav@analog.com
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/imu')
0 files changed, 0 insertions, 0 deletions