[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20210926162026.3447e0bd@jic23-huawei>
Date: Sun, 26 Sep 2021 16:20:26 +0100
From: Jonathan Cameron <jic23@...nel.org>
To: Alexandru Ardelean <aardelean@...iqon.com>
Cc: linux-iio@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-doc@...r.kernel.org, hdegoede@...hat.com, wens@...e.org,
andriy.shevchenko@...ux.intel.com
Subject: Re: [PATCH 0/5] iio: device-managed conversions with
devm_iio_map_array_register()
On Fri, 3 Sep 2021 10:29:12 +0300
Alexandru Ardelean <aardelean@...iqon.com> wrote:
> This change introduces a devm_iio_map_array_register() variant for the
> iio_map_array_register() function.
>
> And converts 4 drivers to full device-managed.
> These 4 drivers only call iio_map_array_unregister() and
> iio_device_unregister() in their remove hooks.
>
> These 4 drivers should make a reasonably good case for introducing this
> devm_iio_map_array_register() function.
>
> There are 7 more drivers that would use the devm_iio_map_array_register()
> function, but they require a bit more handling in the remove/unwinding
> part.
> So, those 7 are left for later.
Series applied to the togreg branch of iio.git and pushed out as testing
so 0-day can work it's magic.
Thanks,
Jonathan
>
> Alexandru Ardelean (5):
> iio: inkern: introduce devm_iio_map_array_register() short-hand
> function
> iio: adc: intel_mrfld_adc: convert probe to full device-managed
> iio: adc: axp288_adc: convert probe to full device-managed
> iio: adc: lp8788_adc: convert probe to full-device managed
> iio: adc: da9150-gpadc: convert probe to full-device managed
>
> .../driver-api/driver-model/devres.rst | 1 +
> drivers/iio/adc/axp288_adc.c | 28 +++--------------
> drivers/iio/adc/da9150-gpadc.c | 27 ++--------------
> drivers/iio/adc/intel_mrfld_adc.c | 24 ++------------
> drivers/iio/adc/lp8788_adc.c | 31 +++----------------
> drivers/iio/inkern.c | 17 ++++++++++
> include/linux/iio/driver.h | 14 +++++++++
> 7 files changed, 45 insertions(+), 97 deletions(-)
>
Powered by blists - more mailing lists