[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <17ecc1b1-4816-49bd-9a80-f5d4077ba145@gmx.de>
Date: Wed, 28 Aug 2024 20:01:51 +0200
From: Helge Deller <deller@....de>
To: ying zuxin <yingzuxin@...o.com>,
Christophe JAILLET <christophe.jaillet@...adoo.fr>,
linux-fbdev@...r.kernel.org, dri-devel@...ts.freedesktop.org,
linux-kernel@...r.kernel.org
Cc: opensource.kernel@...o.com, yang.yang@...o.com
Subject: Re: [PATCH] fbdev: mmp: Use devm_clk_get_enabled() helpers
On 8/23/24 14:29, ying zuxin wrote:
> The devm_clk_get_enabled() helpers:
> - call devm_clk_get()
> - call clk_prepare_enable() and register what is needed in order to
> call clk_disable_unprepare() when needed, as a managed resource.
>
> This simplifies the code and avoids the calls to clk_disable_unprepare().
>
> Signed-off-by: ying zuxin <yingzuxin@...o.com>
> ---
> drivers/video/fbdev/mmp/hw/mmp_ctrl.c | 6 +-----
> 1 file changed, 1 insertion(+), 5 deletions(-)
applied.
Thanks!
Helge
Powered by blists - more mailing lists