Re: [PATCH v8 02/16] clk: Provide new devm_clk helpers for prepared and enabled clocks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Subject: Re: [PATCH v8 02/16] clk: Provide new devm_clk helpers for prepared and enabled clocks
- From: Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxxxx>
- Date: Mon, 21 Mar 2022 08:22:15 +0100
- Cc: Alexandre Belloni <alexandre.belloni@xxxxxxxxxxx>, Heiko Stuebner <heiko@xxxxxxxxx>, Neil Armstrong <narmstrong@xxxxxxxxxxxx>, David Airlie <airlied@xxxxxxxx>, Alexandru Ardelean <aardelean@xxxxxxxxxxx>, Linus Walleij <linus.walleij@xxxxxxxxxx>, Jonathan Cameron <Jonathan.Cameron@xxxxxxxxxx>, Tomislav Denis <tomislav.denis@xxxxxxx>, André Gustavo Nakagomi Lopez <andregnl@xxxxxx>, Nuno Sá <nuno.sa@xxxxxxxxxx>, Paul Cercueil <paul@xxxxxxxxxxxxxxx>, Thierry Reding <thierry.reding@xxxxxxxxx>, linux-i2c@xxxxxxxxxxxxxxx, Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@xxxxxxxxxxxxx>, Oleksij Rempel <linux@xxxxxxxxxxxxxxxx>, Lee Jones <lee.jones@xxxxxxxxxx>, linux-clk@xxxxxxxxxxxxxxx, Jerome Brunet <jbrunet@xxxxxxxxxxxx>, linux-rtc@xxxxxxxxxxxxxxx, Lars-Peter Clausen <lars@xxxxxxxxxx>, Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>, Alexandre Torgue <alexandre.torgue@xxxxxxxxxxx>, Kevin Hilman <khilman@xxxxxxxxxxxx>, Bartosz Golaszewski <brgl@xxxxxxxx>, Russell King <linux@xxxxxxxxxxxxxxx>, linux-pwm@xxxxxxxxxxxxxxx, Claudiu Beznea <claudiu.beznea@xxxxxxxxxxxxx>, linux-iio@xxxxxxxxxxxxxxx, Andy Gross <agross@xxxxxxxxxx>, linux-arm-kernel@xxxxxxxxxxxxxxxxxxx, linux-mips@xxxxxxxxxxxxxxx, Keguang Zhang <keguang.zhang@xxxxxxxxx>, Michael Turquette <mturquette@xxxxxxxxxxxx>, Guenter Roeck <linux@xxxxxxxxxxxx>, NXP Linux Team <linux-imx@xxxxxxx>, Maxime Coquelin <mcoquelin.stm32@xxxxxxxxx>, Bjorn Andersson <bjorn.andersson@xxxxxxxxxx>, Jean Delvare <jdelvare@xxxxxxxx>, Michal Simek <michal.simek@xxxxxxxxxx>, kernel@xxxxxxxxxxxxxx, Michael Hennerich <Michael.Hennerich@xxxxxxxxxx>, Martin Blumenstingl <martin.blumenstingl@xxxxxxxxxxxxxx>, linux-arm-msm@xxxxxxxxxxxxxxx, linux-spi@xxxxxxxxxxxxxxx, Anand Ashok Dumbre <anand.ashok.dumbre@xxxxxxxxxx>, Vladimir Zapolskiy <vz@xxxxxxxxx>, linux-gpio@xxxxxxxxxxxxxxx, Mark Brown <broonie@xxxxxxxxxx>, dri-devel@xxxxxxxxxxxxxxxxxxxxx, Fabio Estevam <festevam@xxxxxxxxx>, Matt Mackall <mpm@xxxxxxxxxxx>, linux-amlogic@xxxxxxxxxxxxxxxxxxx, Wim Van Sebroeck <wim@xxxxxxxxxxxxxxxxxx>, Lars Povlsen <lars.povlsen@xxxxxxxxxxxxx>, linux-hwmon@xxxxxxxxxxxxxxx, Alessandro Zummo <a.zummo@xxxxxxxxxxxx>, linux-watchdog@xxxxxxxxxxxxxxx, Stephen Boyd <sboyd@xxxxxxxxxx>, Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>, Patrice Chotard <patrice.chotard@xxxxxxxxxxx>, linux-stm32@xxxxxxxxxxxxxxxxxxxxxxxxxxxx, Nicolas Ferre <nicolas.ferre@xxxxxxxxxxxxx>, UNGLinuxDriver@xxxxxxxxxxxxx, Vinod Koul <vkoul@xxxxxxxxxx>, Cai Huoqing <caihuoqing@xxxxxxxxx>, linux-crypto@xxxxxxxxxxxxxxx, Daniel Vetter <daniel@xxxxxxxx>, dmaengine@xxxxxxxxxxxxxxx, Amireddy Mallikarjuna reddy <mallikarjunax.reddy@xxxxxxxxxxxxxxx>, Shawn Guo <shawnguo@xxxxxxxxxx>, Steen Hegelund <Steen.Hegelund@xxxxxxxxxxxxx>
- In-reply-to: <20220319182936.06d75742@jic23-huawei>
- References: <20220314141643.22184-1-u.kleine-koenig@pengutronix.de> <20220314141643.22184-3-u.kleine-koenig@pengutronix.de> <20220319182936.06d75742@jic23-huawei>
On Sat, Mar 19, 2022 at 06:29:36PM +0000, Jonathan Cameron wrote:
> On Mon, 14 Mar 2022 15:16:29 +0100
> Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxxxx> wrote:
>
> > When a driver keeps a clock prepared (or enabled) during the whole
> > lifetime of the driver, these helpers allow to simplify the drivers.
> >
> > Reviewed-by: Jonathan Cameron <Jonathan.Cameron@xxxxxxxxxx>
> > Reviewed-by: Alexandru Ardelean <aardelean@xxxxxxxxxxx>
> > Signed-off-by: Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxxxx>
>
> One trivial thing below.
>
> > ---
> > drivers/clk/clk-devres.c | 31 ++++++++++++++
> > include/linux/clk.h | 90 +++++++++++++++++++++++++++++++++++++++-
> > 2 files changed, 120 insertions(+), 1 deletion(-)
> >
> > diff --git a/drivers/clk/clk-devres.c b/drivers/clk/clk-devres.c
> > index fb7761888b30..4707fe718f0b 100644
> > --- a/drivers/clk/clk-devres.c
> > +++ b/drivers/clk/clk-devres.c
> > @@ -67,12 +67,43 @@ struct clk *devm_clk_get(struct device *dev, const char *id)
> > }
> > EXPORT_SYMBOL(devm_clk_get);
> >
> > +struct clk *devm_clk_get_prepared(struct device *dev, const char *id)
> > +{
> > + return __devm_clk_get(dev, id, clk_get, clk_prepare, clk_unprepare);
>
> Nitpick but this spacing before } in functions is rather unusual and not
> in keeping with the existing code in this file.
>
> > +
> > +}
ack, I fixed that in my tree, so this will be part of an v9. I won't
send it just for this change, though. I fixed three further functions
that had a similar empty line, too.
Thanks for looking
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | https://www.pengutronix.de/ |
Attachment:
signature.asc
Description: PGP signature
[Index of Archives]
[Linux Kernel]
[Linux ARM (vger)]
[Linux ARM MSM]
[Linux Omap]
[Linux Arm]
[Linux Tegra]
[Fedora ARM]
[Linux for Samsung SOC]
[eCos]
[Linux Fastboot]
[Gcc Help]
[Git]
[DCCP]
[IETF Announce]
[Security]
[Linux MIPS]
[Yosemite Campsites]
|