]> www.infradead.org Git - users/jedix/linux-maple.git/commit
leds: bcm63138: Use scopes and guards
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 10 Oct 2024 14:10:51 +0000 (16:10 +0200)
committerLee Jones <lee@kernel.org>
Fri, 11 Oct 2024 07:37:05 +0000 (08:37 +0100)
commit61574073e15cbaaab3fa1b2ad7df3ffe21e48509
tree5969d06eb1bb736524ffb37aed2219cc904acba1
parentd19261ffd077609e5d348f1c12894997807a64a8
leds: bcm63138: Use scopes and guards

Use scoped helpers and guards to handle DT node iterations
and spinlocks. This cuts some lines of code and eliminates
common mistakes (such as the missing of_node_put()).

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Link: https://lore.kernel.org/r/20241010-bcm63138-leds-v4-2-cdb80780a555@linaro.org
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/leds/blink/leds-bcm63138.c