public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Stephen Boyd <sboyd@kernel.org>
To: Changhuang Liang <changhuang.liang@starfivetech.com>,
	Emil Renner Berthing <kernel@esmil.dk>,
	Hal Feng <hal.feng@starfivetech.com>,
	Michael Turquette <mturquette@baylibre.com>
Cc: Changhuang Liang <changhuang.liang@starfivetech.com>,
	linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org
Subject: Re: [PATCH] clk: starfive: Make _clk_get become a common helper function
Date: Mon, 13 Jan 2025 14:48:31 -0800	[thread overview]
Message-ID: <09c880a81cf21272f245c2118b923fef.sboyd@kernel.org> (raw)
In-Reply-To: <20241121031426.36588-1-changhuang.liang@starfivetech.com>

Quoting Changhuang Liang (2024-11-20 19:14:26)
> Introduce num_reg to store the number of clocks, this helps to make
> _clk_get become a common helper function which called jh71x0_clk_get().
> With this, it helps to simplify the code and extend the code in the
> future.
> 
> Signed-off-by: Changhuang Liang <changhuang.liang@starfivetech.com>
> ---

I was waiting for someone to review this patch.

>  drivers/clk/starfive/clk-starfive-jh7100-audio.c | 14 ++------------
>  drivers/clk/starfive/clk-starfive-jh7110-aon.c   | 14 ++------------
>  drivers/clk/starfive/clk-starfive-jh7110-isp.c   | 14 ++------------
>  drivers/clk/starfive/clk-starfive-jh7110-stg.c   | 14 ++------------
>  drivers/clk/starfive/clk-starfive-jh7110-sys.c   | 14 ++------------
>  drivers/clk/starfive/clk-starfive-jh7110-vout.c  | 14 ++------------
>  drivers/clk/starfive/clk-starfive-jh71x0.c       | 12 ++++++++++++
>  drivers/clk/starfive/clk-starfive-jh71x0.h       |  2 ++
>  8 files changed, 26 insertions(+), 72 deletions(-)
> 
> diff --git a/drivers/clk/starfive/clk-starfive-jh71x0.h b/drivers/clk/starfive/clk-starfive-jh71x0.h
> index e3f441393e48..634d8cb91592 100644
> --- a/drivers/clk/starfive/clk-starfive-jh71x0.h
> +++ b/drivers/clk/starfive/clk-starfive-jh71x0.h
> @@ -117,9 +117,11 @@ struct jh71x0_clk_priv {
>         struct clk *original_clk;
>         struct notifier_block pll_clk_nb;
>         struct clk_hw *pll[3];
> +       unsigned int num_reg;
>         struct jh71x0_clk reg[];

Please add __counted_by() annotation. Look at struct clk_hw_onecell_data
for an example.

      reply	other threads:[~2025-01-13 22:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-21  3:14 [PATCH] clk: starfive: Make _clk_get become a common helper function Changhuang Liang
2025-01-13 22:48 ` Stephen Boyd [this message]

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=09c880a81cf21272f245c2118b923fef.sboyd@kernel.org \
    --to=sboyd@kernel.org \
    --cc=changhuang.liang@starfivetech.com \
    --cc=hal.feng@starfivetech.com \
    --cc=kernel@esmil.dk \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mturquette@baylibre.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