]> www.infradead.org Git - users/jedix/linux-maple.git/commit
leds: ktd2692: Use scoped device node handling to simplify error paths
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Fri, 16 Aug 2024 15:31:34 +0000 (17:31 +0200)
committerLee Jones <lee@kernel.org>
Thu, 22 Aug 2024 13:22:44 +0000 (14:22 +0100)
commit700b6c984b418c04c63a54f67b6758b81016f0e3
tree7fb263293e8b3c33a4757c2655b0a7ceb45103df
parent1e63395e58b2b1d0105bb5ffdb1e5d7400a4be82
leds: ktd2692: Use scoped device node handling to simplify error paths

Obtain the device node reference with scoped/cleanup.h to reduce error
handling and make the code a bit simpler.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240816-cleanup-h-of-node-put-var-v1-2-1d0292802470@linaro.org
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/leds/flash/leds-ktd2692.c