Commit b1f8a16
iio: adc: ad4630: Set proper data width for AD4630/AD4632-20
Using a larger data width made SPI transfers run 4 additional bits which
caused the capture data to be shifted by 4 bits. Use the correct data width
for 20-bit precision ADCs, making SPI transfers run 20 SCLK pulses per
transfer which in turn will make the controller gather only the expected
data bits to the sample buffer.
Fixes: 299dc60 ("iio: adc: ad4630: Add support for AD4630-20 and AD4632-20")
Signed-off-by: Marcelo Schmitt <marcelo.schmitt@analog.com>
(cherry picked from commit dfb6a9f)1 parent 6a60d7c commit b1f8a16
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
856 | 856 | | |
857 | 857 | | |
858 | 858 | | |
859 | | - | |
| 859 | + | |
860 | 860 | | |
861 | 861 | | |
862 | 862 | | |
| |||
0 commit comments