diff options
| author | Michal Piekos <michal.piekos@mmpsystems.pl> | 2026-05-16 07:48:37 +0200 |
|---|---|---|
| committer | Jonathan Cameron <jic23@kernel.org> | 2026-05-31 10:59:41 +0100 |
| commit | 44f38b46298dc2b0e007e88381d46fb92172a81d (patch) | |
| tree | 3c46140a4dda935550b871b2fd7eaa618277f4c8 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 8114f4420360260576cbd6d0633b28a607321f0b (diff) | |
iio: adc: sun20i-gpadc: support non-contiguous channel lookups
Using consumer driver like iio-hwmon which resolve channels through
io-channels phandles will fail for sparse channels because IIO core by
default treats phandle argument as index into channel array.
eg. <&gpadc 1> will fail if there is only channel@1 specified
Add .fwnode_xlate() which maps DT phandle to the registered channel
whose chan->channel matches the hardware channel number. It allows
sparse channel maps to be consumed by drivers like iio-hwmon.
Tested on Radxa Cubie A5E.
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Michal Piekos <michal.piekos@mmpsystems.pl>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
