Re: [RFC PATCH 01/12] iio: core: register chardev only if needed

2020-11-23 Thread Alexandru Ardelean
On Sat, Nov 21, 2020 at 8:05 PM Jonathan Cameron wrote: > > On Tue, 17 Nov 2020 18:23:29 +0200 > Alexandru Ardelean wrote: > > > 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 an even

Re: [RFC PATCH 01/12] iio: core: register chardev only if needed

2020-11-21 Thread Jonathan Cameron
On Tue, 17 Nov 2020 18:23:29 +0200 Alexandru Ardelean wrote: > 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 an event_interface is configured. > > Otherwise, no chardev will be created,

[RFC PATCH 01/12] iio: core: register chardev only if needed

2020-11-17 Thread Alexandru Ardelean
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 an event_interface is configured. Otherwise, no chardev will be created, and the IIO device will get registered with the 'device_add()' call. Quite