Re: [RFC PATCH 07/14] iio: core: add simple centralized mechanism for ioctl() handlers

2020-05-25 Thread Ardelean, Alexandru
On Sun, 2020-05-24 at 17:45 +0100, Jonathan Cameron wrote: > [External] > > On Fri, 8 May 2020 16:53:41 +0300 > Alexandru Ardelean wrote: > > > The aim of this is to reduce the organization violation of ioctl() calls in > > IIO core. Currently, since the chardev is split across files, event ioct

Re: [RFC PATCH 07/14] iio: core: add simple centralized mechanism for ioctl() handlers

2020-05-24 Thread Jonathan Cameron
On Fri, 8 May 2020 16:53:41 +0300 Alexandru Ardelean wrote: > The aim of this is to reduce the organization violation of ioctl() calls in > IIO core. Currently, since the chardev is split across files, event ioctl() > calls need to be called in buffer ioctl() calls. > > The 'industrialio-core.c'

[RFC PATCH 07/14] iio: core: add simple centralized mechanism for ioctl() handlers

2020-05-08 Thread Alexandru Ardelean
The aim of this is to reduce the organization violation of ioctl() calls in IIO core. Currently, since the chardev is split across files, event ioctl() calls need to be called in buffer ioctl() calls. The 'industrialio-core.c' file will provide a 'iio_device_ioctl()' which will iterate over a list