Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752320AbbHMI4m (ORCPT ); Thu, 13 Aug 2015 04:56:42 -0400 Received: from mail-wi0-f169.google.com ([209.85.212.169]:35117 "EHLO mail-wi0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751869AbbHMI4i (ORCPT ); Thu, 13 Aug 2015 04:56:38 -0400 Message-ID: <55CC5BBF.9060600@gmail.com> Date: Thu, 13 Aug 2015 10:56:31 +0200 From: Sebastian Hesselbarth User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0 To: Stephen Boyd , Mike Turquette CC: linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Heiko Stuebner , Sylwester Nawrocki , Tomasz Figa , Peter De Schrijver , Prashant Gaikwad , Stephen Warren , Thierry Reding , Alexandre Courbot , Tero Kristo , Ulf Hansson , 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) References: <1439421161-17868-1-git-send-email-sboyd@codeaurora.org> <1439421161-17868-2-git-send-email-sboyd@codeaurora.org> In-Reply-To: <1439421161-17868-2-git-send-email-sboyd@codeaurora.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1644 Lines: 50 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 > --- > drivers/clk/berlin/berlin2-pll.c | 4 ++-- For Berlin, Acked-by: Sebastian Hesselbarth 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/