[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240829121455.16854-1-liaoyuanhong@vivo.com>
Date: Thu, 29 Aug 2024 20:14:48 +0800
From: Liao Yuanhong <liaoyuanhong@...o.com>
To: alexandre.belloni@...tlin.com
Cc: linux-rtc@...r.kernel.org,
linux-kernel@...r.kernel.org,
Liao Yuanhong <liaoyuanhong@...o.com>
Subject: [PATCH v3 0/7] rtc:Use devm_clk_get_enabled() helpers
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().
---
v3:Modify rtc-xgene, removed modifications to the resume function.
v2:Removed the global variable clk and replaced it with a local variable.
---
Liao Yuanhong (7):
rtc:rtc-at91rm9200:Use devm_clk_get_enabled() helpers
rtc:rtc-imxdi:Use devm_clk_get_enabled() helpers
rtc:rtc-mt7622:Use devm_clk_get_enabled() helpers
rtc:rtc-s3c:Use devm_clk_get_enabled() helpers
rtc:rtc-sa1100:Use devm_clk_get_enabled() helpers
rtc:rtc-tegra:Use devm_clk_get_enabled() helpers
rtc:rtc-xgene:Use devm_clk_get_enabled() helpers
drivers/rtc/rtc-at91rm9200.c | 21 ++++-----------------
drivers/rtc/rtc-imxdi.c | 18 ++++--------------
drivers/rtc/rtc-mt7622.c | 30 +++++++-----------------------
drivers/rtc/rtc-s3c.c | 17 +++--------------
drivers/rtc/rtc-sa1100.c | 15 +++++----------
drivers/rtc/rtc-sa1100.h | 2 --
drivers/rtc/rtc-tegra.c | 22 +++-------------------
drivers/rtc/rtc-xgene.c | 26 ++++----------------------
8 files changed, 30 insertions(+), 121 deletions(-)
--
2.25.1
Powered by blists - more mailing lists