mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v1] iio: core: Export iio_find_channel_from_si() helper
@ 2026-11-15  8:30 Svyatoslav Ryhel
  2026-11-16 14:00 ` Andy Shevchenko
  0 siblings, 1 reply; 3+ messages in thread
From: Svyatoslav Ryhel @ 2026-11-15  8:30 UTC (permalink / raw)
  To: Jonathan Cameron, David Lechner, Nuno Sá, Andy Shevchenko
  Cc: linux-iio, linux-kernel

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@gmail.com>
---
 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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v1] iio: core: Export iio_find_channel_from_si() helper
  2026-11-15  8:30 [PATCH v1] iio: core: Export iio_find_channel_from_si() helper Svyatoslav Ryhel
@ 2026-11-16 14:00 ` Andy Shevchenko
  2026-11-22 19:56   ` Jonathan Cameron
  0 siblings, 1 reply; 3+ messages in thread
From: Andy Shevchenko @ 2026-11-16 14:00 UTC (permalink / raw)
  To: Svyatoslav Ryhel
  Cc: Jonathan Cameron, David Lechner, Nuno Sá,
	Andy Shevchenko, linux-iio, linux-kernel

On Sun, Nov 15, 2026 at 10:30:49AM +0200, Svyatoslav Ryhel wrote:
> 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 <andriy.shevchenko@intel.com>

-- 
With Best Regards,
Andy Shevchenko



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v1] iio: core: Export iio_find_channel_from_si() helper
  2026-11-16 14:00 ` Andy Shevchenko
@ 2026-11-22 19:56   ` Jonathan Cameron
  0 siblings, 0 replies; 3+ messages in thread
From: Jonathan Cameron @ 2026-11-22 19:56 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Svyatoslav Ryhel, David Lechner, Nuno Sá,
	Andy Shevchenko, linux-iio, linux-kernel

On Mon, 16 Nov 2026 16:00:37 +0200
Andy Shevchenko <andriy.shevchenko@intel.com> wrote:

> On Sun, Nov 15, 2026 at 10:30:49AM +0200, Svyatoslav Ryhel wrote:
> > 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 <andriy.shevchenko@intel.com>
> 
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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-11-22 19:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-15  8:30 [PATCH v1] iio: core: Export iio_find_channel_from_si() helper Svyatoslav Ryhel
2026-11-16 14:00 ` Andy Shevchenko
2026-11-22 19:56   ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®