Re: [RFC PATCH 05/14] iio: core: register chardev only if needed

2020-05-24 Thread Jonathan Cameron
On Fri, 8 May 2020 16:53:39 +0300 Alexandru Ardelean wrote: > The final intent is to localize all buffer ops into the > industrialio-buffer.c file, to be able to add support for multiple buffers > per IIO device. > > We only need a chardev if we need to support buffers and/or events. > > With t

[RFC PATCH 05/14] iio: core: register chardev only if needed

2020-05-08 Thread Alexandru Ardelean
The final intent is to localize all buffer ops into the industrialio-buffer.c file, to be able to add support for multiple buffers per IIO device. We only need a chardev if we need to support buffers and/or events. With this change, a chardev will be created only if an IIO buffer is attached OR a