From: Stephen Boyd <sboyd@kernel.org>
To: David Yang <mmyangfl@gmail.com>, linux-clk@vger.kernel.org
Cc: David Yang <mmyangfl@gmail.com>,
Michael Turquette <mturquette@baylibre.com>,
linux-kernel@vger.kernel.org,
Conor Dooley <conor.dooley@microchip.com>,
Nick Alcock <nick.alcock@oracle.com>
Subject: Re: [PATCH v2 2/4] clk: hisilicon: Use helper functions
Date: Wed, 05 Apr 2023 14:06:49 -0700 [thread overview]
Message-ID: <43a469322f1557feb252a08bd4a42f03.sboyd@kernel.org> (raw)
In-Reply-To: <20230329075104.165176-3-mmyangfl@gmail.com>
Quoting David Yang (2023-03-29 00:50:51)
> Remove redundant codes.
>
> Signed-off-by: David Yang <mmyangfl@gmail.com>
> ---
> drivers/clk/hisilicon/clk-hi3519.c | 134 ++----------
> drivers/clk/hisilicon/clk-hi3559a.c | 228 +++-----------------
> drivers/clk/hisilicon/clk-hi3660.c | 207 ++++++------------
> drivers/clk/hisilicon/clk-hi3670.c | 270 +++++++++---------------
> drivers/clk/hisilicon/crg-hi3516cv300.c | 177 ++--------------
> drivers/clk/hisilicon/crg-hi3798cv200.c | 206 +++---------------
Maybe you can do this file by file in a different patch? And the commit
text can say that you're migrating to the new way of registering clks
with a device pointer?
> drivers/clk/hisilicon/crg.h | 6 -
> 7 files changed, 260 insertions(+), 968 deletions(-)
>
> diff --git a/drivers/clk/hisilicon/clk-hi3519.c b/drivers/clk/hisilicon/clk-hi3519.c
> index ad0c7f350cf0..199d1b8c3140 100644
> --- a/drivers/clk/hisilicon/clk-hi3519.c
> +++ b/drivers/clk/hisilicon/clk-hi3519.c
> @@ -6,11 +6,13 @@
> */
>
> #include <dt-bindings/clock/hi3519-clock.h>
> -#include <linux/clk-provider.h>
It's still a clk provider. Keep this include.
> +
> +#include <linux/kernel.h>
> #include <linux/module.h>
> -#include <linux/platform_device.h>
Also still a platform driver. Keep this include.
> +#include <linux/of_device.h>
Not sure what this include is for.
> +
> #include "clk.h"
> -#include "reset.h"
> +#include "crg.h"
next prev parent reply other threads:[~2023-04-05 21:07 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-29 7:50 [PATCH v2 0/4] clk: hisilicon: Migrate devm APIs David Yang
2023-03-29 7:50 ` [PATCH v2 1/4] clk: hisilicon: Add helper functions for platform driver David Yang
2023-04-05 19:51 ` Stephen Boyd
2023-03-29 7:50 ` [PATCH v2 2/4] clk: hisilicon: Use helper functions David Yang
2023-04-05 21:06 ` Stephen Boyd [this message]
2023-03-29 7:50 ` [PATCH v2 3/4] clk: hisilicon: Convert to platform driver David Yang
2023-04-05 21:08 ` Stephen Boyd
2023-03-29 7:50 ` [PATCH v2 4/4] clk: hisilicon: Migrate devm APIs David Yang
2023-04-05 19:39 ` [PATCH v2 0/4] " Stephen Boyd
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=43a469322f1557feb252a08bd4a42f03.sboyd@kernel.org \
--to=sboyd@kernel.org \
--cc=conor.dooley@microchip.com \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mmyangfl@gmail.com \
--cc=mturquette@baylibre.com \
--cc=nick.alcock@oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox