[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <8b8a3f31-936f-4595-83aa-8e5b0272f8a3@app.fastmail.com>
Date: Tue, 03 Jan 2023 12:37:41 +0100
From: "Sven Peter" <sven@...npeter.dev>
To: "Christophe JAILLET" <christophe.jaillet@...adoo.fr>,
"Hector Martin" <marcan@...can.st>,
"Alyssa Rosenzweig" <alyssa@...enzweig.io>,
"Wim Van Sebroeck" <wim@...ux-watchdog.org>,
"Guenter Roeck" <linux@...ck-us.net>
Cc: linux-kernel@...r.kernel.org, kernel-janitors@...r.kernel.org,
asahi@...ts.linux.dev, linux-arm-kernel@...ts.infradead.org,
linux-watchdog@...r.kernel.org
Subject: Re: [PATCH] watchdog: apple: Use devm_clk_get_enabled() helper
On Sat, Dec 31, 2022, at 08:57, 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>
Reviewed-by: Sven Peter <sven@...npeter.dev>
Thanks,
Sven
Powered by blists - more mailing lists