(subset) [PATCH v3 2/2] leds: as3645a: use device_* to iterate over device child nodes
Lee Jones
lee at kernel.org
Thu Aug 22 06:36:50 PDT 2024
On Tue, 20 Aug 2024 21:02:27 +0200, Javier Carrasco wrote:
> Drop the manual access to the fwnode of the device to iterate over its
> child nodes. `device_for_each_child_node` macro provides direct access
> to the child nodes, and given that the `child` variable is only required
> within the loop, the scoped variant of the macro can be used.
>
> Use the `device_for_each_child_node_scoped` macro to iterate over the
> direct child nodes of the device.
>
> [...]
Applied, thanks!
[2/2] leds: as3645a: use device_* to iterate over device child nodes
commit: 1041e1d4f061e65a3c47cff34709864293f07284
--
Lee Jones [李琼斯]
More information about the linux-arm-kernel
mailing list