diff options
| author | 2026-05-16 07:48:37 +0200 | |
|---|---|---|
| committer | 2026-05-31 10:59:41 +0100 | |
| commit | 44f38b46298dc2b0e007e88381d46fb92172a81d (patch) | |
| tree | 3c46140a4dda935550b871b2fd7eaa618277f4c8 /scripts/Makefile.thinlto | |
| parent | iio: adc: sun20i-gpadc: add A523 gpadc support (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 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
