Skip to content

iio: device-managed conversions with devm_iio_map_array_register()

Alexandru Ardelean linux-doc linux-iio lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5iio: inkern: introduce devm_iio_map_array_register() short-hand functionDocumentation/driver-api/driver-model/devres.rst drivers/iio/inkern.c include/linux/iio/driver.h+32 -03 replies
2/5iio: adc: intel_mrfld_adc: convert probe to full device-manageddrivers/iio/adc/intel_mrfld_adc.c+2 -221 reply
3/5iio: adc: axp288_adc: convert probe to full device-manageddrivers/iio/adc/axp288_adc.c+4 -241 reply
4/5iio: adc: lp8788_adc: convert probe to full-device manageddrivers/iio/adc/lp8788_adc.c+5 -260 replies
5/5iio: adc: da9150-gpadc: convert probe to full-device manageddrivers/iio/adc/da9150-gpadc.c+2 -250 replies

Reviews trailers per patch

2 of 5 patches have a Reviewed-by or Acked-by.

PatchHans de GoedeAndy Shevchenko
1/5
2/5R-b
3/5R-b
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/5] iio: device-managed conversions with devm_iio_map_array_register()

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.

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(-)
Signature · 1 line
2.31.1