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-8960.c b/arch/arm/mach-msm/clock-8960.c
index e205440..b792702 100644
--- a/arch/arm/mach-msm/clock-8960.c
+++ b/arch/arm/mach-msm/clock-8960.c
@@ -431,19 +431,19 @@
}
static struct clk_ops soc_clk_ops_8960 = {
- .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 = {
@@ -4110,10 +4110,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);
if (machine_is_msm8960_sim()) {
clk_set_rate(&sdc1_clk.c, 48000000);