diff options
| author | Dumitru Ceclan <mitrutzceclan@gmail.com> | 2024-07-31 15:37:25 +0300 |
|---|---|---|
| committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2024-08-03 16:05:53 +0100 |
| commit | 6f055df6f65944b155c35fa7f790ca749471f0b6 (patch) | |
| tree | 3be623d1a626c9b273a13090f01844ce7ba993f2 /tools/perf/scripts/python/bin | |
| parent | iio: adc: ad7124: reduce the number of SPI transfers (diff) | |
| download | linux-6f055df6f65944b155c35fa7f790ca749471f0b6.tar.gz linux-6f055df6f65944b155c35fa7f790ca749471f0b6.zip | |
iio: adc: ad7124: set initial ADC mode to idle
During setup the st->adc_control is 0, which corresponds to a continuous
conversion mode. The reset value for channel 1 is to enable it. The
combined effect of these two is that the ADC will start conversions for
channel 1 without them being read.
This is not neccessarily a problem, but it is an unexpected behavior.
Set the ADC state to idle during setup to avoid this.
Signed-off-by: Dumitru Ceclan <dumitru.ceclan@analog.com>
Reviewed-by: Nuno Sa <nuno.sa@analog.com>
Link: https://patch.msgid.link/20240731-ad7124-fix-v1-4-46a76aa4b9be@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
