diff options
author | Nishanth Menon <nm@ti.com> | 2013-09-19 17:03:50 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rjw@rjwysocki.net> | 2013-10-25 16:33:23 -0400 |
commit | 5d4879cda67b09f086807821cf594ee079d6dfbe (patch) | |
tree | 58532256e9bff42902510175e7cb7c727a89280b /drivers/cpufreq/omap-cpufreq.c | |
parent | 31d141e3a666269a3b6fcccddb0351caf7454240 (diff) |
PM / OPP: rename functions to dev_pm_opp*
Since Operating Performance Points (OPP) functions are specific to
device specific power management, be specific and rename opp_*
accessors in OPP library with dev_pm_opp_* equivalent.
Affected functions are:
opp_get_voltage
opp_get_freq
opp_get_opp_count
opp_find_freq_exact
opp_find_freq_floor
opp_find_freq_ceil
opp_add
opp_enable
opp_disable
opp_get_notifier
opp_init_cpufreq_table
opp_free_cpufreq_table
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Nishanth Menon <nm@ti.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq/omap-cpufreq.c')
-rw-r--r-- | drivers/cpufreq/omap-cpufreq.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/cpufreq/omap-cpufreq.c b/drivers/cpufreq/omap-cpufreq.c index f31fcfcad514..c5e31d296607 100644 --- a/drivers/cpufreq/omap-cpufreq.c +++ b/drivers/cpufreq/omap-cpufreq.c | |||
@@ -105,14 +105,14 @@ static int omap_target(struct cpufreq_policy *policy, | |||
105 | 105 | ||
106 | if (mpu_reg) { | 106 | if (mpu_reg) { |
107 | rcu_read_lock(); | 107 | rcu_read_lock(); |
108 | opp = opp_find_freq_ceil(mpu_dev, &freq); | 108 | opp = dev_pm_opp_find_freq_ceil(mpu_dev, &freq); |
109 | if (IS_ERR(opp)) { | 109 | if (IS_ERR(opp)) { |
110 | rcu_read_unlock(); | 110 | rcu_read_unlock(); |
111 | dev_err(mpu_dev, "%s: unable to find MPU OPP for %d\n", | 111 | dev_err(mpu_dev, "%s: unable to find MPU OPP for %d\n", |
112 | __func__, freqs.new); | 112 | __func__, freqs.new); |
113 | return -EINVAL; | 113 | return -EINVAL; |
114 | } | 114 | } |
115 | volt = opp_get_voltage(opp); | 115 | volt = dev_pm_opp_get_voltage(opp); |
116 | rcu_read_unlock(); | 116 | rcu_read_unlock(); |
117 | tol = volt * OPP_TOLERANCE / 100; | 117 | tol = volt * OPP_TOLERANCE / 100; |
118 | volt_old = regulator_get_voltage(mpu_reg); | 118 | volt_old = regulator_get_voltage(mpu_reg); |
@@ -162,7 +162,7 @@ done: | |||
162 | static inline void freq_table_free(void) | 162 | static inline void freq_table_free(void) |
163 | { | 163 | { |
164 | if (atomic_dec_and_test(&freq_table_users)) | 164 | if (atomic_dec_and_test(&freq_table_users)) |
165 | opp_free_cpufreq_table(mpu_dev, &freq_table); | 165 | dev_pm_opp_free_cpufreq_table(mpu_dev, &freq_table); |
166 | } | 166 | } |
167 | 167 | ||
168 | static int omap_cpu_init(struct cpufreq_policy *policy) | 168 | static int omap_cpu_init(struct cpufreq_policy *policy) |
@@ -181,7 +181,7 @@ static int omap_cpu_init(struct cpufreq_policy *policy) | |||
181 | policy->cur = omap_getspeed(policy->cpu); | 181 | policy->cur = omap_getspeed(policy->cpu); |
182 | 182 | ||
183 | if (!freq_table) | 183 | if (!freq_table) |
184 | result = opp_init_cpufreq_table(mpu_dev, &freq_table); | 184 | result = dev_pm_opp_init_cpufreq_table(mpu_dev, &freq_table); |
185 | 185 | ||
186 | if (result) { | 186 | if (result) { |
187 | dev_err(mpu_dev, "%s: cpu%d: failed creating freq table[%d]\n", | 187 | dev_err(mpu_dev, "%s: cpu%d: failed creating freq table[%d]\n", |