[PATCH v1] iio: core: Export iio_find_channel_from_si() helper

From: Svyatoslav Ryhel

Date: Sun Nov 15 2026 - 03:31:14 EST


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 <clamor95@xxxxxxxxx>
---
drivers/iio/industrialio-core.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/iio/industrialio-core.c b/drivers/iio/industrialio-core.c
index 825cf7f32059b..b59983d35239f 100644
--- a/drivers/iio/industrialio-core.c
+++ b/drivers/iio/industrialio-core.c
@@ -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,
--
2.53.0