diff options
| author | David Lechner <dlechner@baylibre.com> | 2024-05-30 18:14:09 +0300 |
|---|---|---|
| committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2024-06-04 21:53:08 +0300 |
| commit | 7758562898033a3bd98a24d2a541c930b0fc98e6 (patch) | |
| tree | 79d60d5b50c5404c8f110c022d198f8ca35b7f27 /tools/perf/scripts/python/mem-phys-addr.py | |
| parent | fd7179ece035417f44f7ecff086d6df674d8a5bd (diff) | |
| download | linux-7758562898033a3bd98a24d2a541c930b0fc98e6.tar.xz | |
iio: buffer: use struct iio_scan_type to simplify code
By using struct iio_scan_type, we can simplify the code by removing
lots of duplicate pointer dereferences. This make the code a bit easier
to read.
This also prepares for a future where channels may have more than one
scan_type.
Signed-off-by: David Lechner <dlechner@baylibre.com>
Reviewed-by: Nuno Sa <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20240530-iio-add-support-for-multiple-scan-types-v3-2-cbc4acea2cfa@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions
