hwmon: (ltc2991) use device_for_each_child_node_scoped()
authorJavier Carrasco <javier.carrasco.cruz@gmail.com>
Thu, 4 Apr 2024 11:13:27 +0000 (13:13 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Sat, 8 Jun 2024 23:07:33 +0000 (16:07 -0700)
commit234c07400eb4f5d475e4055b11b5ed69f91d3732
tree643df87d8d134bf7e24fd6b02864bbe1494cfd51
parent55076454de05b2f5ce8f5ef459685e707a03703f
hwmon: (ltc2991) use device_for_each_child_node_scoped()

Switch to the _scoped() version introduced in commit 365130fd47af
("device property: Introduce device_for_each_child_node_scoped()")
to remove the need for manual calling of fwnode_handle_put() in the
paths where the code exits the loop early.

Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Link: https://lore.kernel.org/r/20240404-hwmon_device_for_each_child_node_scoped-v1-1-53997abde43c@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/ltc2991.c