linux/drivers/iio/addac
Jonathan Cameron 2fe97fccbd iio: addac: ad74413r: Use device_for_each_child_node_scoped()
Switching to the _scoped() version removes the need for manual
calling of fwnode_handle_put() in the paths where the code
exits the loop early. In this case that's all in error paths.

The use of fwnode_for_each_available_child_node() here is assumed
to have been down to a false assumption that device_for_each_child_node()
doesn't check avaialble - so this transition to the scoped
device_for_each_child_node_scoped() is equivalent.

Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Reviewed-by: Nuno Sa <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20240217164249.921878-13-jic23@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2024-03-25 19:50:09 +00:00
..
ad74115.c iio: addac: ad74115: remove unused ad74115_dac_slew_rate_hz_tbl 2022-11-24 19:23:57 +00:00
ad74413r.c iio: addac: ad74413r: Use device_for_each_child_node_scoped() 2024-03-25 19:50:09 +00:00
Kconfig IIO: 1st set of new device support, features and cleanup for 6.7 2023-10-20 07:54:15 +02:00
Makefile iio: addac: add AD74115 driver 2022-11-23 20:49:00 +00:00
stx104.c iio: addac: stx104: Add 8254 Counter/Timer support 2023-09-17 10:29:41 +01:00