Linux IIO development
 help / color / mirror / Atom feed
* [PATCH 0/8] IIO: Convert DT specific handling over to fwnode
@ 2024-02-18 17:27 Jonathan Cameron
  2024-02-18 17:27 ` [PATCH 1/8] iio: adc: fsl-imx25-gcq: Switch from of specific handing to fwnode based Jonathan Cameron
                   ` (8 more replies)
  0 siblings, 9 replies; 21+ messages in thread
From: Jonathan Cameron @ 2024-02-18 17:27 UTC (permalink / raw)
  To: linux-iio, Andy Shevchenko
  Cc: Lars-Peter Clausen, Michael Hennerich, Nuno Sá,
	Alisa-Dariana Roman, Haibo Chen, Sean Nyekjaer, Andreas Klinger,
	Jonathan Cameron

From: Jonathan Cameron <Jonathan.Cameron@huawei.com>

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.

Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

Depends on:
[PATCH v4 00/15] device property / IIO: Use cleanup.h magic for fwnode_handle_put() handling.
https://lore.kernel.org/linux-iio/20240217164249.921878-1-jic23@kernel.org/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(-)

-- 
2.43.2


^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2024-02-24 15:31 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-18 17:27 [PATCH 0/8] IIO: Convert DT specific handling over to fwnode Jonathan Cameron
2024-02-18 17:27 ` [PATCH 1/8] iio: adc: fsl-imx25-gcq: Switch from of specific handing to fwnode based Jonathan Cameron
2024-02-18 17:27 ` [PATCH 2/8] iio: adc: fsl-imx25-gcq: Use devm_* and dev_err_probe() to simplify probe Jonathan Cameron
2024-02-18 17:27 ` [PATCH 3/8] iio: adc: ad7124: Switch from of specific to fwnode based property handling Jonathan Cameron
2024-02-19  9:24   ` Nuno Sá
2024-02-19 11:59     ` Andy Shevchenko
2024-02-19 11:58   ` Andy Shevchenko
2024-02-24 15:19     ` Jonathan Cameron
2024-02-18 17:27 ` [PATCH 4/8] iio: adc: ad7292: Switch from of specific to fwnode " Jonathan Cameron
2024-02-19  9:26   ` Nuno Sá
2024-02-18 17:27 ` [PATCH 5/8] iio: adc: ad7192: Convert " Jonathan Cameron
2024-02-19  9:30   ` Nuno Sá
2024-02-19 12:02   ` Andy Shevchenko
2024-02-18 17:27 ` [PATCH 6/8] iio: accel: mma8452: Switch " Jonathan Cameron
2024-02-23 11:10   ` Bough Chen
2024-02-18 17:27 ` [PATCH 7/8] iio: accel: fxls8962af: Switch from of specific to fwnode based properties Jonathan Cameron
2024-02-19 12:03   ` Andy Shevchenko
2024-02-18 17:27 ` [PATCH 8/8] iio: adc: hx711: Switch from of specific to fwnode property handling Jonathan Cameron
2024-02-19 12:06   ` Andy Shevchenko
2024-02-19 12:06 ` [PATCH 0/8] IIO: Convert DT specific handling over to fwnode Andy Shevchenko
2024-02-24 15:31   ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox