linux-pwm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] clk: provide new devm helpers for prepared and enabled clocks
@ 2020-10-13  8:21 Uwe Kleine-König
  2020-10-13  8:21 ` [PATCH 1/2] " Uwe Kleine-König
  2020-10-13  8:21 ` [PATCH 2/2] [RFC] pwm: make use of devm_clk_{prepared,enabled} Uwe Kleine-König
  0 siblings, 2 replies; 6+ messages in thread
From: Uwe Kleine-König @ 2020-10-13  8:21 UTC (permalink / raw)
  To: Michael Turquette, Stephen Boyd
  Cc: linux-clk, linux-pwm, linux-kernel, kernel

Hello,

this series introduces new helpers around devm_clk_get that return the
clk already prepared or prepared and enabled.

To show the benefit I converted drivers/pwm to these functions. (As this
conversion fixes a few bugs I intend however to split the pwm patch per
driver, so please don't apply yet.)

Best regards
Uwe

Uwe Kleine-König (2):
  clk: provide new devm helpers for prepared and enabled clocks
  [RFC] pwm: make use of devm_clk_{prepared,enabled}

 drivers/clk/clk-devres.c      | 85 ++++++++++++++++++++++++++++------
 drivers/pwm/pwm-atmel.c       | 12 +----
 drivers/pwm/pwm-bcm-iproc.c   | 14 +-----
 drivers/pwm/pwm-bcm2835.c     | 18 +-------
 drivers/pwm/pwm-berlin.c      | 13 +-----
 drivers/pwm/pwm-brcmstb.c     | 24 ++--------
 drivers/pwm/pwm-hibvt.c       | 16 ++-----
 drivers/pwm/pwm-imx-tpm.c     | 18 ++------
 drivers/pwm/pwm-lpc18xx-sct.c | 23 ++-------
 drivers/pwm/pwm-mtk-disp.c    | 27 ++---------
 drivers/pwm/pwm-rockchip.c    | 13 +-----
 drivers/pwm/pwm-samsung.c     | 11 +----
 drivers/pwm/pwm-sifive.c      | 23 +++------
 drivers/pwm/pwm-spear.c       | 17 ++-----
 drivers/pwm/pwm-sun4i.c       | 24 ++++------
 drivers/pwm/pwm-tiehrpwm.c    | 17 +------
 drivers/pwm/pwm-vt8500.c      | 11 +----
 include/linux/clk.h           | 87 ++++++++++++++++++++++++++++++++++-
 18 files changed, 208 insertions(+), 245 deletions(-)

-- 
2.28.0


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

end of thread, other threads:[~2021-02-09  9:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-13  8:21 [PATCH 0/2] clk: provide new devm helpers for prepared and enabled clocks Uwe Kleine-König
2020-10-13  8:21 ` [PATCH 1/2] " Uwe Kleine-König
2020-11-10 20:25   ` Uwe Kleine-König
2020-12-21  9:29     ` Uwe Kleine-König
2021-02-09  9:32       ` Uwe Kleine-König
2020-10-13  8:21 ` [PATCH 2/2] [RFC] pwm: make use of devm_clk_{prepared,enabled} Uwe Kleine-König

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).