[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <b5a0c3cb115e3408094c434e486f009aef7a9585.camel@svanheule.net>
Date: Sun, 01 Jan 2023 00:09:31 +0100
From: Sander Vanheule <sander@...nheule.net>
To: Christophe JAILLET <christophe.jaillet@...adoo.fr>,
Wim Van Sebroeck <wim@...ux-watchdog.org>,
Guenter Roeck <linux@...ck-us.net>
Cc: linux-kernel@...r.kernel.org, kernel-janitors@...r.kernel.org,
linux-watchdog@...r.kernel.org
Subject: Re: [PATCH] watchdog: realtek_otto: Use devm_clk_get_enabled()
helper
Hi Christophe,
On Sat, 2022-12-31 at 16:02 +0100, Christophe JAILLET wrote:
> The devm_clk_get_enabled() helper:
> - calls devm_clk_get()
> - calls clk_prepare_enable() and registers what is needed in order to
> call clk_disable_unprepare() when needed, as a managed resource.
>
> This simplifies the code and avoids the need of a dedicated function used
> with devm_add_action_or_reset().
>
> Signed-off-by: Christophe JAILLET <christophe.jaillet@...adoo.fr>
> ---
> drivers/watchdog/realtek_otto_wdt.c | 17 ++---------------
> 1 file changed, 2 insertions(+), 15 deletions(-)
Good to see more concise code here. Thanks!
FWIW
Acked-by: Sander Vanheule <sander@...nheule.net>
Best,
Sander
Powered by blists - more mailing lists