ARM: tegra11: dvfs: Rename rail auto-control to dfll-mode
Alex Frid [Tue, 11 Sep 2012 04:46:57 +0000 (21:46 -0700)]
Change-Id: Iea2372418a23286b21b58aa8eb665c90cf53043b
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/131305
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

Rebase-Id: Rd853cbcdb20dc27c44ebbacff434eb73a2eb6695

arch/arm/mach-tegra/dvfs.h
arch/arm/mach-tegra/tegra11_clocks.c

index 6bc4988..2937cc2 100644 (file)
@@ -71,7 +71,7 @@ struct dvfs_rail {
        int new_millivolts;
        int offs_millivolts;
        bool suspended;
-       bool auto_control;
+       bool dfll_mode;
        struct rail_stats stats;
 };
 
index 8766dab..9d4b073 100644 (file)
@@ -1052,7 +1052,7 @@ static int tegra11_cpu_clk_dfll_on(struct clk *c, unsigned long rate,
                }
                /* prevent legacy dvfs voltage scaling */
                if (c->dvfs && c->dvfs->dvfs_rail)
-                       c->dvfs->dvfs_rail->auto_control = true;
+                       c->dvfs->dvfs_rail->dfll_mode = true;
        }
        return 0;
 }
@@ -1073,7 +1073,7 @@ static int tegra11_cpu_clk_dfll_off(struct clk *c, unsigned long rate,
 
        /* restore legacy dvfs operations and set appropriate voltage */
        if (c->dvfs && c->dvfs->dvfs_rail)
-               c->dvfs->dvfs_rail->auto_control = false;
+               c->dvfs->dvfs_rail->dfll_mode = false;
 
        rate = max(rate, old_rate);
        ret = tegra_dvfs_set_rate(c, rate);