mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 08:14:15 +08:00
77b2b47598
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. Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com> Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com> Link: https://lore.kernel.org/r/20240820-device_child_node_access-v3-2-1ee09bdedb9e@gmail.com Signed-off-by: Lee Jones <lee@kernel.org> |
||
---|---|---|
.. | ||
Kconfig | ||
leds-aat1290.c | ||
leds-as3645a.c | ||
leds-ktd2692.c | ||
leds-lm3601x.c | ||
leds-max77693.c | ||
leds-mt6360.c | ||
leds-mt6370-flash.c | ||
leds-qcom-flash.c | ||
leds-rt4505.c | ||
leds-rt8515.c | ||
leds-sgm3140.c | ||
leds-sy7802.c | ||
Makefile |