lkml.org 
[lkml]   [2020]   [Oct]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/2] clk: provide new devm helpers for prepared and enabled clocks
Date
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

\
 
 \ /
  Last update: 2020-10-13 10:22    [W:0.072 / U:2.184 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site