public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/7] rtc:Use devm_clk_get_enabled() helpers
@ 2024-08-21  9:28 Liao Yuanhong
  2024-08-21  9:28 ` [PATCH 1/7] rtc:rtc-at91rm9200:Use " Liao Yuanhong
                   ` (6 more replies)
  0 siblings, 7 replies; 21+ messages in thread
From: Liao Yuanhong @ 2024-08-21  9:28 UTC (permalink / raw)
  To: alexandre.belloni, linux-rtc, linux-kernel; +Cc: Liao Yuanhong

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().

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 | 18 +++---------------
 drivers/rtc/rtc-imxdi.c      | 18 ++++--------------
 drivers/rtc/rtc-mt7622.c     | 24 ++++--------------------
 drivers/rtc/rtc-s3c.c        | 19 +++----------------
 drivers/rtc/rtc-sa1100.c     | 10 ++--------
 drivers/rtc/rtc-tegra.c      | 22 +++-------------------
 drivers/rtc/rtc-xgene.c      | 23 ++++-------------------
 7 files changed, 23 insertions(+), 111 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2024-08-23  9:12 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-21  9:28 [PATCH 0/7] rtc:Use devm_clk_get_enabled() helpers Liao Yuanhong
2024-08-21  9:28 ` [PATCH 1/7] rtc:rtc-at91rm9200:Use " Liao Yuanhong
2024-08-21 11:22   ` Christophe JAILLET
2024-08-22  3:24   ` kernel test robot
2024-08-22  3:24   ` kernel test robot
2024-08-22  3:37   ` [PATCH v3 " Liao Yuanhong
2024-08-23  9:01   ` [PATCH " kernel test robot
2024-08-23  9:11   ` kernel test robot
2024-08-21  9:28 ` [PATCH 2/7] rtc:rtc-imxdi:Use " Liao Yuanhong
2024-08-22  2:44   ` [PATCH] rtc:rtc-at91rm9200:Use " Liao Yuanhong
2024-08-21  9:28 ` [PATCH 3/7] rtc:rtc-mt7622:Use " Liao Yuanhong
2024-08-21 11:25   ` Christophe JAILLET
2024-08-22  2:57   ` [PATCH v2 " Liao Yuanhong
2024-08-21  9:28 ` [PATCH 4/7] rtc:rtc-s3c:Use " Liao Yuanhong
2024-08-22  5:07   ` kernel test robot
2024-08-22  6:50   ` [PATCH v2 " Liao Yuanhong
2024-08-21  9:28 ` [PATCH 5/7] rtc:rtc-sa1100:Use " Liao Yuanhong
2024-08-21 11:27   ` Christophe JAILLET
2024-08-22  3:13   ` [PATCH v2 " Liao Yuanhong
2024-08-21  9:28 ` [PATCH 6/7] rtc:rtc-tegra:Use " Liao Yuanhong
2024-08-21  9:28 ` [PATCH 7/7] rtc:rtc-xgene:Use " Liao Yuanhong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox