Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1206577
| From | Heiko Stübner <heiko@sntech.de> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 2/2] clk: Convert __clk_get_name(hw->clk) to clk_hw_get_name(hw) |
| Date | 2015-08-13 10:00 +0200 |
| Message-ID | <pWVAC-5qg-19@gated-at.bofh.it> (permalink) |
| References | <pWNto-26l-13@gated-at.bofh.it> <pWNto-26l-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Am Mittwoch, 12. August 2015, 16:12:41 schrieb Stephen Boyd:
> 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)
>
For the Rockchip part
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Heiko
> diff --git a/drivers/clk/rockchip/clk-inverter.c
> b/drivers/clk/rockchip/clk-inverter.c index 8054fdb5effb..7cbf43beb3c6
> 100644
> --- a/drivers/clk/rockchip/clk-inverter.c
> +++ b/drivers/clk/rockchip/clk-inverter.c
> @@ -50,7 +50,7 @@ static int rockchip_inv_set_phase(struct clk_hw *hw, int
> degrees) val = !!degrees;
> } else {
> pr_err("%s: unsupported phase %d for %s\n",
> - __func__, degrees, __clk_get_name(hw->clk));
> + __func__, degrees, clk_hw_get_name(hw));
> return -EINVAL;
> }
>
> diff --git a/drivers/clk/rockchip/clk-mmc-phase.c
> b/drivers/clk/rockchip/clk-mmc-phase.c index 77e19097bdc7..9b613426e968
> 100644
> --- a/drivers/clk/rockchip/clk-mmc-phase.c
> +++ b/drivers/clk/rockchip/clk-mmc-phase.c
> @@ -108,7 +108,7 @@ static int rockchip_mmc_set_phase(struct clk_hw *hw, int
> degrees) writel(HIWORD_UPDATE(raw_value, 0x07ff, mmc_clock->shift),
> mmc_clock->reg);
>
> pr_debug("%s->set_phase(%d) delay_nums=%u reg[0x%p]=0x%03x
> actual_degrees=%d\n", - __clk_get_name(hw->clk), degrees, delay_num,
> + clk_hw_get_name(hw), degrees, delay_num,
> mmc_clock->reg, raw_value>>(mmc_clock->shift),
> rockchip_mmc_get_phase(hw)
> );
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 1/2] clk: Constify clk_hw argument to provider APIs Stephen Boyd <sboyd@codeaurora.org> - 2015-08-13 01:20 +0200
[PATCH 2/2] clk: Convert __clk_get_name(hw->clk) to clk_hw_get_name(hw) Stephen Boyd <sboyd@codeaurora.org> - 2015-08-13 01:20 +0200
Re: [PATCH 2/2] clk: Convert __clk_get_name(hw->clk) to clk_hw_get_name(hw) Heiko Stübner <heiko@sntech.de> - 2015-08-13 10:00 +0200
Re: [PATCH 2/2] clk: Convert __clk_get_name(hw->clk) to clk_hw_get_name(hw) Geert Uytterhoeven <geert@linux-m68k.org> - 2015-08-13 10:50 +0200
Re: [PATCH 2/2] clk: Convert __clk_get_name(hw->clk) to clk_hw_get_name(hw) Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> - 2015-08-13 11:00 +0200
Re: [PATCH 2/2] clk: Convert __clk_get_name(hw->clk) to clk_hw_get_name(hw) Thierry Reding <thierry.reding@gmail.com> - 2015-08-13 11:10 +0200
Re: [PATCH 2/2] clk: Convert __clk_get_name(hw->clk) to clk_hw_get_name(hw) Andrew Bresticker <abrestic@chromium.org> - 2015-08-13 18:50 +0200
csiph-web