msm: clock-local: Cleanup function naming conventions
Rename the family of functions with the 'local_clk' prefix to
have an 'rcg_clk' prefix instead, so that the function names
matche the type of clock (and type of struct) those functions
operate on.
This also helps to disambiguate these functions from other
functions that operate on different types of "local clocks"
(ie. branches, PLLs, etc).
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
diff --git a/arch/arm/mach-msm/clock-8x60.c b/arch/arm/mach-msm/clock-8x60.c
index f51cf88..bf7397e 100644
--- a/arch/arm/mach-msm/clock-8x60.c
+++ b/arch/arm/mach-msm/clock-8x60.c
@@ -518,19 +518,19 @@
}
static struct clk_ops soc_clk_ops_8x60 = {
- .enable = local_clk_enable,
- .disable = local_clk_disable,
- .auto_off = local_clk_auto_off,
- .set_rate = local_clk_set_rate,
- .set_min_rate = local_clk_set_min_rate,
- .set_max_rate = local_clk_set_max_rate,
- .get_rate = local_clk_get_rate,
- .list_rate = local_clk_list_rate,
- .is_enabled = local_clk_is_enabled,
- .round_rate = local_clk_round_rate,
+ .enable = rcg_clk_enable,
+ .disable = rcg_clk_disable,
+ .auto_off = rcg_clk_auto_off,
+ .set_rate = rcg_clk_set_rate,
+ .set_min_rate = rcg_clk_set_min_rate,
+ .set_max_rate = rcg_clk_set_max_rate,
+ .get_rate = rcg_clk_get_rate,
+ .list_rate = rcg_clk_list_rate,
+ .is_enabled = rcg_clk_is_enabled,
+ .round_rate = rcg_clk_round_rate,
.reset = soc_clk_reset,
.is_local = local_clk_is_local,
- .get_parent = local_clk_get_parent,
+ .get_parent = rcg_clk_get_parent,
};
static struct clk_ops clk_ops_branch = {
@@ -3789,10 +3789,10 @@
/* The halt status bits for PDM and TSSC may be incorrect at boot.
* Toggle these clocks on and off to refresh them. */
- local_clk_enable(&pdm_clk.c);
- local_clk_disable(&pdm_clk.c);
- local_clk_enable(&tssc_clk.c);
- local_clk_disable(&tssc_clk.c);
+ rcg_clk_enable(&pdm_clk.c);
+ rcg_clk_disable(&pdm_clk.c);
+ rcg_clk_enable(&tssc_clk.c);
+ rcg_clk_disable(&tssc_clk.c);
msm_clock_init(msm_clocks_8x60, ARRAY_SIZE(msm_clocks_8x60));
}