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

2020-06-08 Thread Jonathan Cameron
On Mon, 8 Jun 2020 09:37:48 +0300 Alexandru Ardelean wrote: > On Sat, Jun 6, 2020 at 7:03 PM Jonathan Cameron wrote: > > > > On Thu, 4 Jun 2020 18:34:40 +0100 > > Jonathan Cameron wrote: > > > > > On Wed, 3 Jun 2020 11:41:52 + > > > "Ardelean, Alexandru" wrote: > > > > > > > On Wed,

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

2020-06-08 Thread Alexandru Ardelean
On Sat, Jun 6, 2020 at 7:03 PM Jonathan Cameron wrote: > > On Thu, 4 Jun 2020 18:34:40 +0100 > Jonathan Cameron wrote: > > > On Wed, 3 Jun 2020 11:41:52 + > > "Ardelean, Alexandru" wrote: > > > > > On Wed, 2020-06-03 at 14:40 +0300, Alexandru Ardelean wrote: > > > > This patch updates the

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

2020-06-06 Thread Jonathan Cameron
On Thu, 4 Jun 2020 18:34:40 +0100 Jonathan Cameron wrote: > On Wed, 3 Jun 2020 11:41:52 + > "Ardelean, Alexandru" wrote: > > > On Wed, 2020-06-03 at 14:40 +0300, Alexandru Ardelean wrote: > > > This patch updates the {devm_}iio_device_alloc() functions to > > > automatically > > >

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

2020-06-04 Thread Jonathan Cameron
On Wed, 3 Jun 2020 11:41:52 + "Ardelean, Alexandru" wrote: > On Wed, 2020-06-03 at 14:40 +0300, Alexandru Ardelean wrote: > > This patch updates the {devm_}iio_device_alloc() functions to automatically > > assign the parent device on allocation. > > For iio_device_alloc() this means a new

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

2020-06-03 Thread Ardelean, Alexandru
On Wed, 2020-06-03 at 14:40 +0300, Alexandru Ardelean wrote: > This patch updates the {devm_}iio_device_alloc() functions to automatically > assign the parent device on allocation. > For iio_device_alloc() this means a new parameter. > For devm_iio_device_alloc() this means a new behavior; the

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

2020-06-03 Thread Alexandru Ardelean
This patch updates the {devm_}iio_device_alloc() functions to automatically assign the parent device on allocation. For iio_device_alloc() this means a new parameter. For devm_iio_device_alloc() this means a new behavior; the device object is the parent. For this one, this is the common case for