ARM: rockchip: rename osc_switch_to_32k variable
authorHeiko Stuebner <heiko@sntech.de>
Tue, 4 Aug 2015 22:14:55 +0000 (00:14 +0200)
committerHeiko Stuebner <heiko@sntech.de>
Thu, 6 Aug 2015 11:05:09 +0000 (13:05 +0200)
The variable name is misleading, as the deep suspend mode always switches
the main supplying clock to the 32kHz source. Additionally the main
oscillator remains running in some cases, which this var indicates.

So rename it to osc_disable to clarity.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: Chris Zhong <zyw@rock-chips.com>
Tested-by: Chris Zhong <zyw@rock-chips.com>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
arch/arm/mach-rockchip/pm.c

index 892bace139be89ff55defe17dcbd8976868c5c2d..2ca1170da5d6a00ae963416a6f48a858b01b5082 100644 (file)
@@ -96,7 +96,7 @@ static bool rk3288_slp_disable_osc(void)
 static void rk3288_slp_mode_set(int level)
 {
        u32 mode_set, mode_set1;
-       bool osc_switch_to_32k = rk3288_slp_disable_osc();
+       bool osc_disable = rk3288_slp_disable_osc();
 
        regmap_read(sgrf_regmap, RK3288_SGRF_CPU_CON0, &rk3288_sgrf_cpu_con0);
        regmap_read(sgrf_regmap, RK3288_SGRF_SOC_CON0, &rk3288_sgrf_soc_con0);
@@ -140,7 +140,7 @@ static void rk3288_slp_mode_set(int level)
                            BIT(PMU_DDR1IO_RET_EN) | BIT(PMU_DDR0IO_RET_EN) |
                            BIT(PMU_ALIVE_USE_LF) | BIT(PMU_PLL_PD_EN);
 
-               if (osc_switch_to_32k)
+               if (osc_disable)
                        mode_set |= BIT(PMU_OSC_24M_DIS);
 
                mode_set1 |= BIT(PMU_CLR_ALIVE) | BIT(PMU_CLR_BUS) |