Re: [RFC PATCH 09/14] iio: buffer: split buffer sysfs creation to take buffer as primary arg

2020-05-31 Thread Jonathan Cameron
On Mon, 25 May 2020 07:28:18 + "Ardelean, Alexandru" wrote: > On Sun, 2020-05-24 at 17:49 +0100, Jonathan Cameron wrote: > > [External] > > > > On Fri, 8 May 2020 16:53:43 +0300 > > Alexandru Ardelean wrote: > > > > > Currently the iio_buffer_{alloc,free}_sysfs_and_mask() take 'indio_dev

Re: [RFC PATCH 09/14] iio: buffer: split buffer sysfs creation to take buffer as primary arg

2020-05-25 Thread Ardelean, Alexandru
On Sun, 2020-05-24 at 17:49 +0100, Jonathan Cameron wrote: > [External] > > On Fri, 8 May 2020 16:53:43 +0300 > Alexandru Ardelean wrote: > > > Currently the iio_buffer_{alloc,free}_sysfs_and_mask() take 'indio_dev' as > > primary argument. This change converts to take an IIO buffer as a primary

Re: [RFC PATCH 09/14] iio: buffer: split buffer sysfs creation to take buffer as primary arg

2020-05-24 Thread Jonathan Cameron
On Fri, 8 May 2020 16:53:43 +0300 Alexandru Ardelean wrote: > Currently the iio_buffer_{alloc,free}_sysfs_and_mask() take 'indio_dev' as > primary argument. This change converts to take an IIO buffer as a primary > argument. > > That will allow the functions to get called for multiple buffers. >

[RFC PATCH 09/14] iio: buffer: split buffer sysfs creation to take buffer as primary arg

2020-05-08 Thread Alexandru Ardelean
Currently the iio_buffer_{alloc,free}_sysfs_and_mask() take 'indio_dev' as primary argument. This change converts to take an IIO buffer as a primary argument. That will allow the functions to get called for multiple buffers. Signed-off-by: Alexandru Ardelean --- drivers/iio/industrialio-buffer.