diff options
| author | Manush Prajwal <manushprajwal555@gmail.com> | 2026-08-28 14:30:13 +0530 |
|---|---|---|
| committer | Lee Jones <lee@kernel.org> | 2026-09-03 16:31:59 +0100 |
| commit | 4805e5ec50d0b355370e3d1ea906af4fc758accf (patch) | |
| tree | ecdc10aa73ae8e43b978338ca1d627fb9015b6e4 /scripts/Makefile.thinlto | |
| parent | 35cbd34a6a05cc53882b1b7ca6f338a93ab29fcb (diff) | |
| download | linux-next-4805e5ec50d0b355370e3d1ea906af4fc758accf.tar.gz linux-next-4805e5ec50d0b355370e3d1ea906af4fc758accf.zip | |
leds: max77705: Use fwnode_for_each_child_node_scoped() in max77705_add_led()
Rework the subled loop in max77705_add_led() around
fwnode_for_each_child_node_scoped() instead of adding a manual
fwnode_handle_put(child) before the early return on a
max77705_parse_subled() failure, so the reference on the current
child fwnode is released automatically on every exit path from the
loop. child is never used outside the loop, so the now-unused outer
child declaration is dropped along with it.
Suggested-by: Krzysztof Kozlowski <krzk@kernel.org>
Fixes: 3b6eaa3db567 ("leds: Use fwnode_for_each_child_node() instead")
Signed-off-by: Manush Prajwal <manushprajwal555@gmail.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Link: https://patch.msgid.link/6a914e1e.7d702ed2.1273e8.2a52@mx.google.com
Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
