[PATCH 0/2] clk: provide new devm helpers for prepared and enabled clocks
From: Uwe Kleine-König
Date: Tue Oct 13 2020 - 04:21:52 EST
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