Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752265AbbHMH6R (ORCPT ); Thu, 13 Aug 2015 03:58:17 -0400 Received: from gloria.sntech.de ([95.129.55.99]:50665 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751846AbbHMH6O (ORCPT ); Thu, 13 Aug 2015 03:58:14 -0400 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: Stephen Boyd Cc: Mike Turquette , linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Sylwester Nawrocki , Tomasz Figa , Peter De Schrijver , Prashant Gaikwad , Stephen Warren , Thierry Reding , Alexandre Courbot , Tero Kristo , Ulf Hansson , Sebastian Hesselbarth , Andrew Bresticker , Ezequiel Garcia , Ralf Baechle , Kevin Cernekee , Geert Uytterhoeven , Ulrich Hecht , linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-tegra@vger.kernel.org, linux-omap@vger.kernel.org Subject: Re: [PATCH 2/2] clk: Convert __clk_get_name(hw->clk) to clk_hw_get_name(hw) Date: Thu, 13 Aug 2015 09:57:24 +0200 Message-ID: <1489587.uKDjVe3x3J@diego> User-Agent: KMail/4.14.1 (Linux/3.16.0-4-amd64; KDE/4.14.2; x86_64; ; ) In-Reply-To: <1439421161-17868-2-git-send-email-sboyd@codeaurora.org> References: <1439421161-17868-1-git-send-email-sboyd@codeaurora.org> <1439421161-17868-2-git-send-email-sboyd@codeaurora.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1848 Lines: 54 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 > 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/