Commit 4968f672 authored by Huan Yang's avatar Huan Yang Committed by Lee Jones
Browse files

leds: lp55xx: Use devm_clk_get_enabled() helpers



Simplify the code a bunch by using managed resource helpers.

Also, there is no need to save clk pointer anymore.

Suggested-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: default avatarHuan Yang <link@vivo.com>
Link: https://lore.kernel.org/r/20240821013725.785956-1-link@vivo.com


Signed-off-by: default avatarLee Jones <lee@kernel.org>
parent 77b2b475
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment