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

2020-05-24 Thread Jonathan Cameron
On Fri, 22 May 2020 11:56:40 +0300 Andy Shevchenko wrote: > On Fri, May 22, 2020 at 11:36 AM 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 par

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

2020-05-22 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, allowing

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

2020-05-22 Thread Andy Shevchenko
On Fri, May 22, 2020 at 11:36 AM 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 tha