diff options
author | Ulf Hansson <ulf.hansson@linaro.org> | 2014-10-02 15:12:34 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-10-03 09:43:14 -0400 |
commit | f39cb1797ec1094b196d3dab44a7ca6060813d38 (patch) | |
tree | e09fbb2c426018fa3da64a1506901a74c67f46fe /include/linux/pm_domain.h | |
parent | f48c767ce8951e30eb716b8ef69142d21aacbd1d (diff) |
PM / Domains: Rename cpu_data to cpuidle_data
The "cpu_data" are defined for some archs and thus conflicting with the
"cpu_data" member in the struct gpd_cpu_data. This causes a compiler
error for those archs.
Let's fix it by rename the member to cpuidle_data. In this context it
also seems appropriate to rename the struct to gpd_cpuidle_data to
better reflect its use.
Fixes: f48c767ce895 (PM / Domains: Move dev_pm_domain_attach|detach() to pm_domain.h)
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/linux/pm_domain.h')
-rw-r--r-- | include/linux/pm_domain.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/pm_domain.h b/include/linux/pm_domain.h index 900474317afc..73e938b7e937 100644 --- a/include/linux/pm_domain.h +++ b/include/linux/pm_domain.h | |||
@@ -38,7 +38,7 @@ struct gpd_dev_ops { | |||
38 | bool (*active_wakeup)(struct device *dev); | 38 | bool (*active_wakeup)(struct device *dev); |
39 | }; | 39 | }; |
40 | 40 | ||
41 | struct gpd_cpu_data { | 41 | struct gpd_cpuidle_data { |
42 | unsigned int saved_exit_latency; | 42 | unsigned int saved_exit_latency; |
43 | struct cpuidle_state *idle_state; | 43 | struct cpuidle_state *idle_state; |
44 | }; | 44 | }; |
@@ -71,7 +71,7 @@ struct generic_pm_domain { | |||
71 | s64 max_off_time_ns; /* Maximum allowed "suspended" time. */ | 71 | s64 max_off_time_ns; /* Maximum allowed "suspended" time. */ |
72 | bool max_off_time_changed; | 72 | bool max_off_time_changed; |
73 | bool cached_power_down_ok; | 73 | bool cached_power_down_ok; |
74 | struct gpd_cpu_data *cpu_data; | 74 | struct gpd_cpuidle_data *cpuidle_data; |
75 | void (*attach_dev)(struct device *dev); | 75 | void (*attach_dev)(struct device *dev); |
76 | void (*detach_dev)(struct device *dev); | 76 | void (*detach_dev)(struct device *dev); |
77 | }; | 77 | }; |