Re: [PATCH] iio: buffer: split buffer sysfs creation to take buffer as primary arg

2020-09-18 Thread Alexandru Ardelean
On Thu, Sep 17, 2020 at 8:56 PM Jonathan Cameron wrote: > > On Thu, 17 Sep 2020 20:41:08 +0300 > Alexandru Ardelean wrote: > > > On Thu, Sep 17, 2020 at 8:18 PM Jonathan Cameron wrote: > > > > > > On Thu, 17 Sep 2020 15:59:51 +0300 > > > Alexandru Ardelean wrote: > > > > > > > Currently the iio

Re: [PATCH] iio: buffer: split buffer sysfs creation to take buffer as primary arg

2020-09-17 Thread Jonathan Cameron
On Thu, 17 Sep 2020 15:59:51 +0300 Alexandru Ardelean wrote: > Currently the iio_buffer_{alloc,free}_sysfs_and_mask() take 'indio_dev' as > primary argument. This change splits the main logic into a private function > that takes an IIO buffer as primary argument. > > That way, the functions can

Re: [PATCH] iio: buffer: split buffer sysfs creation to take buffer as primary arg

2020-09-17 Thread Jonathan Cameron
On Thu, 17 Sep 2020 20:41:08 +0300 Alexandru Ardelean wrote: > On Thu, Sep 17, 2020 at 8:18 PM Jonathan Cameron wrote: > > > > On Thu, 17 Sep 2020 15:59:51 +0300 > > Alexandru Ardelean wrote: > > > > > Currently the iio_buffer_{alloc,free}_sysfs_and_mask() take 'indio_dev' as > > > primary ar

Re: [PATCH] iio: buffer: split buffer sysfs creation to take buffer as primary arg

2020-09-17 Thread Alexandru Ardelean
On Thu, Sep 17, 2020 at 8:18 PM Jonathan Cameron wrote: > > On Thu, 17 Sep 2020 15:59:51 +0300 > Alexandru Ardelean wrote: > > > Currently the iio_buffer_{alloc,free}_sysfs_and_mask() take 'indio_dev' as > > primary argument. This change splits the main logic into a private function > > that take