Skip to content
Commit 6a28a72a authored by Jonathan Cameron's avatar Jonathan Cameron
Browse files

iio: adc: mcp3564: 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.

Reviewed-by: default avatarMarcelo Schmitt <marcelo.schmitt1@gmail.com>
Reviewed-by: default avatarMarius Cristea <marius.cristea@microchip.com>
Link: https://lore.kernel.org/r/20240428174020.1832825-2-jic23@kernel.org


Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 05c4081f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment