Re: [PATCH v2 1/6] iio: core: pass parent device as parameter during allocation

2020-06-06 Thread Jonathan Cameron
On Wed, 3 Jun 2020 14:40:18 +0300 Alexandru Ardelean wrote: > The change passes the parent device to the iio_device_alloc() call. This > also updates the devm_iio_device_alloc() call to consider the device object > as the parent device by default. > > Having it passed like this, should ensure

[PATCH v2 1/6] iio: core: pass parent device as parameter during allocation

2020-06-03 Thread Alexandru Ardelean
The change passes the parent device to the iio_device_alloc() call. This also updates the devm_iio_device_alloc() call to consider the device object as the parent device by default. Having it passed like this, should ensure that any IIO device object already has a device object as parent,