diff options
| author | Dumitru Ceclan <[email protected]> | 2024-07-31 15:37:24 +0300 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2024-08-03 16:05:15 +0100 |
| commit | b7eef979b7ac267187218a515ce4afb502fe18c7 (patch) | |
| tree | 3a94d5d81c908299d68fd0680ae762948e1845bf /tools/perf/scripts/python/flamegraph.py | |
| parent | 13fad2607dad14afd0633d9c869499f6e7c998bd (diff) | |
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 <[email protected]>
Reviewed-by: Nuno Sa <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions