Skip to content

IIO: Convert DT specific handling over to fwnode

Jonathan Cameron linux-iio 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8iio: adc: fsl-imx25-gcq: Switch from of specific handing to fwnode based.drivers/iio/adc/fsl-imx25-gcq.c+21 -330 replies
2/8iio: adc: fsl-imx25-gcq: Use devm_* and dev_err_probe() to simplify probedrivers/iio/adc/fsl-imx25-gcq.c+35 -510 replies
3/8iio: adc: ad7124: Switch from of specific to fwnode based property handlingdrivers/iio/adc/ad7124.c+23 -324 replies
4/8iio: adc: ad7292: Switch from of specific to fwnode property handlingdrivers/iio/adc/ad7292.c+6 -71 reply
5/8iio: adc: ad7192: Convert from of specific to fwnode property handlingdrivers/iio/adc/ad7192.c+19 -192 replies
6/8iio: accel: mma8452: Switch from of specific to fwnode property handling.drivers/iio/accel/mma8452.c+3 -31 reply
7/8iio: accel: fxls8962af: Switch from of specific to fwnode based properties.drivers/iio/accel/fxls8962af-core.c+6 -41 reply
8/8iio: adc: hx711: Switch from of specific to fwnode property handling.drivers/iio/adc/hx711.c+2 -31 reply

Reviews trailers per patch

3 of 8 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchNuno SaAndy ShevchenkoHaibo Chen
SeriesR-b
1/8
2/8
3/8R-b
4/8R-b
5/8R-b
6/8Reviewed-and-tested-by
7/8
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 0/8] IIO: Convert DT specific handling over to fwnode

From: Jonathan Cameron <[email protected]>

Andy pointed out that some of the drivers I was using as examples for "[PATCH 0/8] of: automate of_node_put() - new approach to loops." should be converted over to fwnode / property.h based handling anyway at which point the device_for_each_child_node_scoped() handler could be used instead. He correctly observed that it made more sense to make this transition directly than to improve the device tree specific handling.

So this series does that and also some of the other drivers that were still using device tree specific handling. Note the rcar-adc remains DT specific due to it directly handling maching against of_device_id tables. It probably doesn't make sense to move that custom handling over to fwnode.

I included one devm_ cleanup patch in here as I was touching the driver anyway.

Depends on:
[PATCH v4 00/15] device property / IIO: Use cleanup.h magic for fwnode_handle_put() handling.
https://lore.kernel.org/linux-iio/[email protected]/T/#t

Jonathan Cameron (8):
iio: adc: fsl-imx25-gcq: Switch from of specific handing to fwnode
based.
iio: adc: fsl-imx25-gcq: Use devm_* and dev_err_probe() to simplify
probe
iio: adc: ad7124: Switch from of specific to fwnode based property
handling
iio: adc: ad7292: Switch from of specific to fwnode property handling
iio: adc: ad7192: Convert from of specific to fwnode property handling
iio: accel: mma8452: Switch from of specific to fwnode property
handling.
iio: accel: fxls8962af: Switch from of specific to fwnode based
properties.
iio: adc: hx711: Switch from of specific to fwnode property handling.

 drivers/iio/accel/fxls8962af-core.c |  10 +-
 drivers/iio/accel/mma8452.c         |   6 +-
 drivers/iio/adc/ad7124.c            |  55 +++++------
 drivers/iio/adc/ad7192.c            |  38 ++++----
 drivers/iio/adc/ad7292.c            |  13 ++-
 drivers/iio/adc/fsl-imx25-gcq.c     | 140 +++++++++++-----------------
 drivers/iio/adc/hx711.c             |   5 +-
 7 files changed, 115 insertions(+), 152 deletions(-)
Signature · 1 line
2.43.2