diff options
author | Nishanth Menon <nm@ti.com> | 2013-09-19 17:03:51 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rjw@rjwysocki.net> | 2013-10-25 16:33:23 -0400 |
commit | 47d43ba73eb98d8ba731208735c899129d9849e1 (patch) | |
tree | 77a8efb02e01ab183b08bf7b88fd50d3991c0873 /drivers/cpufreq/cpufreq-cpu0.c | |
parent | 5d4879cda67b09f086807821cf594ee079d6dfbe (diff) |
PM / OPP: rename data structures to dev_pm equivalents
Since Operating Performance Points (OPP) data structures are specific
to device specific power management, be specific and rename opp_* data
structures in OPP library with dev_pm_opp_* equivalent.
Affected structures are:
struct opp
enum opp_event
Minor checkpatch warning resulting of this change was fixed as well.
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq/cpufreq-cpu0.c')
-rw-r--r-- | drivers/cpufreq/cpufreq-cpu0.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/cpufreq/cpufreq-cpu0.c b/drivers/cpufreq/cpufreq-cpu0.c index af951a9cea78..d73107894fee 100644 --- a/drivers/cpufreq/cpufreq-cpu0.c +++ b/drivers/cpufreq/cpufreq-cpu0.c | |||
@@ -44,7 +44,7 @@ static int cpu0_set_target(struct cpufreq_policy *policy, | |||
44 | unsigned int target_freq, unsigned int relation) | 44 | unsigned int target_freq, unsigned int relation) |
45 | { | 45 | { |
46 | struct cpufreq_freqs freqs; | 46 | struct cpufreq_freqs freqs; |
47 | struct opp *opp; | 47 | struct dev_pm_opp *opp; |
48 | unsigned long volt = 0, volt_old = 0, tol = 0; | 48 | unsigned long volt = 0, volt_old = 0, tol = 0; |
49 | long freq_Hz, freq_exact; | 49 | long freq_Hz, freq_exact; |
50 | unsigned int index; | 50 | unsigned int index; |
@@ -230,7 +230,7 @@ static int cpu0_cpufreq_probe(struct platform_device *pdev) | |||
230 | transition_latency = CPUFREQ_ETERNAL; | 230 | transition_latency = CPUFREQ_ETERNAL; |
231 | 231 | ||
232 | if (!IS_ERR(cpu_reg)) { | 232 | if (!IS_ERR(cpu_reg)) { |
233 | struct opp *opp; | 233 | struct dev_pm_opp *opp; |
234 | unsigned long min_uV, max_uV; | 234 | unsigned long min_uV, max_uV; |
235 | int i; | 235 | int i; |
236 | 236 | ||