]> git.ipfire.org Git - thirdparty/linux.git/commit
Input: samsung-keypad - switch to using devm_clk_get_prepared()
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 19 Aug 2024 04:57:58 +0000 (21:57 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 1 Jul 2025 21:15:33 +0000 (14:15 -0700)
commite65efc62ca352906c880796e9ea2f2d77299de97
treec7f468e753cc8b6c089890b8414b1c71c6ea5dbf
parentc6f908f88a55be7641d78a99053818147bde93e9
Input: samsung-keypad - switch to using devm_clk_get_prepared()

Switch to using devm_clk_get_prepared() instead of combining
devm_clk_get() with clk_prepare(), which simplifies the code and
ensures that the clock is unprepared at the right time relative to
releasing other managed resources.

Link: https://lore.kernel.org/r/20240819045813.2154642-2-dmitry.torokhov@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/samsung-keypad.c