Skip to contentSkip to conversation

iio: core: Export iio_find_channel_from_si() helper

PATCH In review Svyatoslav Ryhel 3 participants 3 messages Nov 15 – Nov 22 IIO

lore
Share & tools
lore
#0 lore raw

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.

---
 drivers/iio/industrialio-core.c | 1 +
 1 file changed, 1 insertion(+)
drivers/iio/industrialio-core.c +1 -0
index 825cf7f32059b..b59983d35239f 100644
@@ -325,6 +325,7 @@ const struct iio_chan_spec
 			return &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
Reviewed-by on v1 1/1
#1 lore raw
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.

Signature · 2 lines
With Best Regards,
Andy Shevchenko
maintainer
#2 lore raw
Quoted 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.

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