aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Boyd <sboyd@codeaurora.org>2015-02-06 14:42:44 -0500
committerStephen Boyd <sboyd@codeaurora.org>2015-03-12 15:20:32 -0400
commit50595f8b9e78b3c80d341bf9da3e7848d9abbe2a (patch)
tree2b12d8df6afce36bef587ae6732721e8397e2eff
parent9d3745d44a7faa7d24db7facb1949a1378162f3e (diff)
clk: Rename child_node to clks_node to avoid confusion
The child_node member of struct clk is named the same as the child_node member of struct clk_core. Let's rename the struct clk's member to clks_node to avoid getting confused with the child_node member of struct clk_core and to match the name of the list head, clks. Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com> Cc: Alban Browaeys <alban.browaeys@gmail.com> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
-rw-r--r--drivers/clk/clk.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
index 3e10cdff284b..024d78316b38 100644
--- a/drivers/clk/clk.c
+++ b/drivers/clk/clk.c
@@ -86,7 +86,7 @@ struct clk {
86 const char *con_id; 86 const char *con_id;
87 unsigned long min_rate; 87 unsigned long min_rate;
88 unsigned long max_rate; 88 unsigned long max_rate;
89 struct hlist_node child_node; 89 struct hlist_node clks_node;
90}; 90};
91 91
92/*** locking ***/ 92/*** locking ***/
@@ -862,10 +862,10 @@ static void clk_core_get_boundaries(struct clk_core *clk,
862 *min_rate = 0; 862 *min_rate = 0;
863 *max_rate = ULONG_MAX; 863 *max_rate = ULONG_MAX;
864 864
865 hlist_for_each_entry(clk_user, &clk->clks, child_node) 865 hlist_for_each_entry(clk_user, &clk->clks, clks_node)
866 *min_rate = max(*min_rate, clk_user->min_rate); 866 *min_rate = max(*min_rate, clk_user->min_rate);
867 867
868 hlist_for_each_entry(clk_user, &clk->clks, child_node) 868 hlist_for_each_entry(clk_user, &clk->clks, clks_node)
869 *max_rate = min(*max_rate, clk_user->max_rate); 869 *max_rate = min(*max_rate, clk_user->max_rate);
870} 870}
871 871
@@ -2422,7 +2422,7 @@ struct clk *__clk_create_clk(struct clk_hw *hw, const char *dev_id,
2422 clk->max_rate = ULONG_MAX; 2422 clk->max_rate = ULONG_MAX;
2423 2423
2424 clk_prepare_lock(); 2424 clk_prepare_lock();
2425 hlist_add_head(&clk->child_node, &hw->core->clks); 2425 hlist_add_head(&clk->clks_node, &hw->core->clks);
2426 clk_prepare_unlock(); 2426 clk_prepare_unlock();
2427 2427
2428 return clk; 2428 return clk;
@@ -2431,7 +2431,7 @@ struct clk *__clk_create_clk(struct clk_hw *hw, const char *dev_id,
2431void __clk_free_clk(struct clk *clk) 2431void __clk_free_clk(struct clk *clk)
2432{ 2432{
2433 clk_prepare_lock(); 2433 clk_prepare_lock();
2434 hlist_del(&clk->child_node); 2434 hlist_del(&clk->clks_node);
2435 clk_prepare_unlock(); 2435 clk_prepare_unlock();
2436 2436
2437 kfree(clk); 2437 kfree(clk);
@@ -2711,7 +2711,7 @@ void __clk_put(struct clk *clk)
2711 2711
2712 clk_prepare_lock(); 2712 clk_prepare_lock();
2713 2713
2714 hlist_del(&clk->child_node); 2714 hlist_del(&clk->clks_node);
2715 if (clk->min_rate > clk->core->req_rate || 2715 if (clk->min_rate > clk->core->req_rate ||
2716 clk->max_rate < clk->core->req_rate) 2716 clk->max_rate < clk->core->req_rate)
2717 clk_core_set_rate_nolock(clk->core, clk->core->req_rate); 2717 clk_core_set_rate_nolock(clk->core, clk->core->req_rate);