[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20201013082132.661993-1-u.kleine-koenig@pengutronix.de>
Date: Tue, 13 Oct 2020 10:21:30 +0200
From: Uwe Kleine-König
<u.kleine-koenig@...gutronix.de>
To: Michael Turquette <mturquette@...libre.com>,
Stephen Boyd <sboyd@...nel.org>
Cc: linux-clk@...r.kernel.org, linux-pwm@...r.kernel.org,
linux-kernel@...r.kernel.org, kernel@...gutronix.de
Subject: [PATCH 0/2] clk: provide new devm helpers for prepared and enabled clocks
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
Powered by blists - more mailing lists