iio: core: Export iio_find_channel_from_si() helper
PATCH 1/1 iio: core: Export iio_find_channel_from_si() helper
Export iio_find_channel_from_si() in the Industrial I/O (IIO) core to allow modular drivers to locate channel specifications by scan index.
Signed-off-by Svyatoslav Ryhel <[email protected]>
--- drivers/iio/industrialio-core.c | 1 + 1 file changed, 1 insertion(+)
drivers/iio/industrialio-core.c +1 -0
@@ -325,6 +325,7 @@ const struct iio_chan_specreturn &indio_dev->channels[i];return NULL ; } +EXPORT_SYMBOL_GPL (iio_find_channel_from_si);/* This turns up an awful lot */ ssize_t iio_read_const_attr(struct device *dev,
Signature · 1 line
2.53.0
Quoted 2 lines · Svyatoslav Ryhel
Export
iio_find_channel_from_si()in the Industrial I/O (IIO) core to allow modular drivers to locate channel specifications by scan index.
Reviewed-by Andy Shevchenko <[email protected]>
Signature · 2 lines
With Best Regards, Andy Shevchenko
Jonathan Cameron
maintainerQuoted 6 lines · On Mon, 16 Nov 2026 16:00:37 +0200 Andy Shevchenko…
Quoted 2 lines · Svyatoslav Ryhel
Export
iio_find_channel_from_si()in the Industrial I/O (IIO) core to allow modular drivers to locate channel specifications by scan index.Reviewed-by Andy Shevchenko <[email protected]>
Normally a patch like this is part of a series using it, but given on this rare occasion I can remember the connected series, I'll pick it up ready for that.
Applied to the testing branch of iio.git.
Thanks,
Jonathan