diff options
| author | Dumitru Ceclan <mitrutzceclan@gmail.com> | 2024-07-31 15:37:24 +0300 |
|---|---|---|
| committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2024-08-03 16:05:15 +0100 |
| commit | b7eef979b7ac267187218a515ce4afb502fe18c7 (patch) | |
| tree | 3a94d5d81c908299d68fd0680ae762948e1845bf /tools/perf/scripts/python/bin/task-analyzer-record | |
| parent | iio: light: ltr390: Add configurable gain and resolution (diff) | |
| download | linux-b7eef979b7ac267187218a515ce4afb502fe18c7.tar.gz linux-b7eef979b7ac267187218a515ce4afb502fe18c7.zip | |
iio: adc: ad7124: reduce the number of SPI transfers
The ad7124_init_config_vref() function writes the AD7124_ADC_CONTROL
register for each channel that is configured to use the internal
reference.
The ad7124_write_config()function performs 7 SPI transfers for
configuring 2 registers: config_x and filter_x.
Reduce the number of SPI transfers:
-during the probe by only setting the st->adc_control value in
ad7124_init_config_vref() and writing to the device only at the end of
ad7124_setup().
-in ad7124_write_config() by grouping writes to the same register.
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-3-46a76aa4b9be@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/bin/task-analyzer-record')
0 files changed, 0 insertions, 0 deletions
