Thread (7 messages) 7 messages, 6 authors, 2015-08-13

[PATCH 2/2] clk: Convert __clk_get_name(hw->clk) to clk_hw_get_name(hw)

From: sebastian.hesselbarth@gmail.com (Sebastian Hesselbarth)
Date: 2015-08-13 08:56:42
Also in: linux-clk, linux-omap, linux-rockchip, linux-samsung-soc, linux-tegra, lkml

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 <redacted>
---
  drivers/clk/berlin/berlin2-pll.c     |  4 ++--
For Berlin,

Acked-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>

Thanks!

[...]
quoted hunk ↗ jump to hunk
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;
  	}
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help