Re: (subset) [PATCH v2] leds: max77705: use fwnode_for_each_child_node_scoped() in max77705_add_led()
From: Lee Jones
Date: Thu Sep 03 2026 - 12:15:48 EST
On Fri, 28 Aug 2026 14:30:13 +0530, Manush Prajwal wrote:
> 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.
>
> [...]
Applied, thanks!
[1/1] leds: max77705: use fwnode_for_each_child_node_scoped() in max77705_add_led()
commit: 4805e5ec50d0b355370e3d1ea906af4fc758accf
--
Lee Jones [李琼斯]