]> www.infradead.org Git - users/jedix/linux-maple.git/commit
hwmon: (gsc-hwmon) use device_for_each_child_node_scoped()
authorJavier Carrasco <javier.carrasco.cruz@gmail.com>
Thu, 4 Apr 2024 11:13:28 +0000 (13:13 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Sat, 8 Jun 2024 23:07:33 +0000 (16:07 -0700)
commit1ee123794106db34e0248890a8e3388db404108b
treee19606939b54b52ca4812fcb29648d2d207d5411
parent234c07400eb4f5d475e4055b11b5ed69f91d3732
hwmon: (gsc-hwmon) 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-2-53997abde43c@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/gsc-hwmon.c