]> git.ipfire.org Git - thirdparty/linux.git/commit
leds: lp55xx: Simplify with scoped for each OF child loop
authorKrzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Wed, 24 Dec 2025 12:45:22 +0000 (13:45 +0100)
committerLee Jones <lee@kernel.org>
Wed, 4 Feb 2026 09:20:56 +0000 (09:20 +0000)
commit207a693835d48f92994fc23d8c3e4f131acbb73a
tree98dc4a5ceeb2927262ef5b7e5de64d7122e2d606
parent2fe4df9fa931812fdfa6624944adf269db7fad96
leds: lp55xx: Simplify with scoped for each OF child loop

Use scoped for-each loop when iterating over device nodes to make code a
bit simpler.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Link: https://patch.msgid.link/20251224124521.208635-2-krzysztof.kozlowski@oss.qualcomm.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/leds/leds-lp55xx-common.c