[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <55CC5BBF.9060600@gmail.com>
Date: Thu, 13 Aug 2015 10:56:31 +0200
From: Sebastian Hesselbarth <sebastian.hesselbarth@...il.com>
To: Stephen Boyd <sboyd@...eaurora.org>,
Mike Turquette <mturquette@...libre.com>
CC: linux-kernel@...r.kernel.org, linux-clk@...r.kernel.org,
Heiko Stuebner <heiko@...ech.de>,
Sylwester Nawrocki <s.nawrocki@...sung.com>,
Tomasz Figa <tomasz.figa@...il.com>,
Peter De Schrijver <pdeschrijver@...dia.com>,
Prashant Gaikwad <pgaikwad@...dia.com>,
Stephen Warren <swarren@...dotorg.org>,
Thierry Reding <thierry.reding@...il.com>,
Alexandre Courbot <gnurou@...il.com>,
Tero Kristo <t-kristo@...com>,
Ulf Hansson <ulf.hansson@...aro.org>,
Andrew Bresticker <abrestic@...omium.org>,
Ezequiel Garcia <ezequiel.garcia@...tec.com>,
Ralf Baechle <ralf@...ux-mips.org>,
Kevin Cernekee <cernekee@...omium.org>,
Geert Uytterhoeven <geert+renesas@...der.be>,
Ulrich Hecht <ulrich.hecht+renesas@...il.com>,
linux-arm-kernel@...ts.infradead.org,
linux-rockchip@...ts.infradead.org,
linux-samsung-soc@...r.kernel.org, linux-tegra@...r.kernel.org,
linux-omap@...r.kernel.org
Subject: Re: [PATCH 2/2] clk: Convert __clk_get_name(hw->clk) to clk_hw_get_name(hw)
On 08/13/2015 01:12 AM, Stephen Boyd wrote:
> Use the provider based method to get a clock's name so that we
> can get rid of the clk member in struct clk_hw one day. Mostly
> converted with the following coccinelle script.
>
> @@
> struct clk_hw *E;
> @@
>
> -__clk_get_name(E->clk)
> +clk_hw_get_name(E)
[...]
> Signed-off-by: Stephen Boyd <sboyd@...eaurora.org>
> ---
> drivers/clk/berlin/berlin2-pll.c | 4 ++--
For Berlin,
Acked-by: Sebastian Hesselbarth <sebastian.hesselbarth@...il.com>
Thanks!
[...]
> diff --git a/drivers/clk/berlin/berlin2-pll.c b/drivers/clk/berlin/berlin2-pll.c
> index f4b8d324b083..1c2294d3ba85 100644
> --- a/drivers/clk/berlin/berlin2-pll.c
> +++ b/drivers/clk/berlin/berlin2-pll.c
> @@ -61,7 +61,7 @@ berlin2_pll_recalc_rate(struct clk_hw *hw, unsigned long parent_rate)
> fbdiv = (val >> map->fbdiv_shift) & FBDIV_MASK;
> rfdiv = (val >> map->rfdiv_shift) & RFDIV_MASK;
> if (rfdiv == 0) {
> - pr_warn("%s has zero rfdiv\n", __clk_get_name(hw->clk));
> + pr_warn("%s has zero rfdiv\n", clk_hw_get_name(hw));
> rfdiv = 1;
> }
>
> @@ -70,7 +70,7 @@ berlin2_pll_recalc_rate(struct clk_hw *hw, unsigned long parent_rate)
> vcodiv = map->vcodiv[vcodivsel];
> if (vcodiv == 0) {
> pr_warn("%s has zero vcodiv (index %d)\n",
> - __clk_get_name(hw->clk), vcodivsel);
> + clk_hw_get_name(hw), vcodivsel);
> vcodiv = 1;
> }
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists