Re: [PATCH 1/3] iio: dummy: convert all simple allocation devm_ variants

2020-12-13 Thread Jonathan Cameron
On Mon, 7 Dec 2020 09:22:28 +0200 Alexandru Ardelean wrote: > On Sat, Dec 5, 2020 at 8:46 PM Jonathan Cameron wrote: > > > > On Thu, 3 Dec 2020 11:50:03 +0200 > > Alexandru Ardelean wrote: > > > > > Since a main requirement for an IIO device is to have a parent device > > > object, it makes

Re: [PATCH 1/3] iio: dummy: convert all simple allocation devm_ variants

2020-12-06 Thread Alexandru Ardelean
On Sat, Dec 5, 2020 at 8:46 PM Jonathan Cameron wrote: > > On Thu, 3 Dec 2020 11:50:03 +0200 > Alexandru Ardelean wrote: > > > Since a main requirement for an IIO device is to have a parent device > > object, it makes sense to attach more of the IIO device's objects to the > > lifetime of the

Re: [PATCH 1/3] iio: dummy: convert all simple allocation devm_ variants

2020-12-05 Thread Jonathan Cameron
On Thu, 3 Dec 2020 11:50:03 +0200 Alexandru Ardelean wrote: > Since a main requirement for an IIO device is to have a parent device > object, it makes sense to attach more of the IIO device's objects to the > lifetime of the parent object, to clean up the code. > The idea is to also provide a

[PATCH 1/3] iio: dummy: convert all simple allocation devm_ variants

2020-12-03 Thread Alexandru Ardelean
Since a main requirement for an IIO device is to have a parent device object, it makes sense to attach more of the IIO device's objects to the lifetime of the parent object, to clean up the code. The idea is to also provide a base example that is more up-to-date with what's going on lately with