Re: [PATCH 2/4] iio: add iio_channel_cb_get_iio_buffer helper

From: Jonathan Cameron
Date: Fri Aug 19 2022 - 13:52:12 EST


On Fri, 19 Aug 2022 11:14:04 +0300
Andy Shevchenko <andy.shevchenko@xxxxxxxxx> wrote:

> On Wed, Aug 17, 2022 at 1:58 PM Artur Rojek <contact@xxxxxxxxxxxxxx> wrote:
> >
> > Introduce a helper function to retrieve an iio_buffer from
> > iio_cb_buffer.
> >
> > This is useful for consumers that need to extract metadata about
> > the buffer, e.g. get the channel offsets.
>
> I'm wondering if we should start using the IIO namespace for new
> exported symbols.
>

I'd rather not jump ahead with that because I want to come up
with a coherent set of IIO namespaces to separate core / drivers / consumers
and platform type code (there's a bit of that left) plus maybe even trigger
and buffer implementations. We should probably get on with that though!

Jonathan