aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/devfreq_cooling.h
diff options
context:
space:
mode:
authorJavi Merino <javi.merino@arm.com>2015-11-02 14:03:03 -0500
committerEduardo Valentin <edubezval@gmail.com>2015-11-02 16:14:44 -0500
commit3c99c2cef75eb5bfc05c5728e4560f3ee656d47e (patch)
tree9fe73987c16ee8d1eae257e3f569a78b21d9b1c7 /include/linux/devfreq_cooling.h
parent8fb2b9ac2aadd6d87f89071c2c85f8c12b41c943 (diff)
thermal: devfreq_cooling: use a thermal_cooling_device for register and unregister
Be consistent with what other cooling devices do and return a struct thermal_cooling_device * on register. Also, for the unregister, accept a struct thermal_cooling_device * as parameter. Cc: Zhang Rui <rui.zhang@intel.com> Cc: Eduardo Valentin <edubezval@gmail.com> Signed-off-by: Javi Merino <javi.merino@arm.com> Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Diffstat (limited to 'include/linux/devfreq_cooling.h')
-rw-r--r--include/linux/devfreq_cooling.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/include/linux/devfreq_cooling.h b/include/linux/devfreq_cooling.h
index ee5f0ec9290b..7adf6cc4b305 100644
--- a/include/linux/devfreq_cooling.h
+++ b/include/linux/devfreq_cooling.h
@@ -43,37 +43,37 @@ struct devfreq_cooling_power {
43 unsigned long dyn_power_coeff; 43 unsigned long dyn_power_coeff;
44}; 44};
45 45
46struct devfreq_cooling_device * 46struct thermal_cooling_device *
47of_devfreq_cooling_register_power(struct device_node *np, struct devfreq *df, 47of_devfreq_cooling_register_power(struct device_node *np, struct devfreq *df,
48 struct devfreq_cooling_power *dfc_power); 48 struct devfreq_cooling_power *dfc_power);
49struct devfreq_cooling_device * 49struct thermal_cooling_device *
50of_devfreq_cooling_register(struct device_node *np, struct devfreq *df); 50of_devfreq_cooling_register(struct device_node *np, struct devfreq *df);
51struct devfreq_cooling_device *devfreq_cooling_register(struct devfreq *df); 51struct thermal_cooling_device *devfreq_cooling_register(struct devfreq *df);
52void devfreq_cooling_unregister(struct devfreq_cooling_device *dfc); 52void devfreq_cooling_unregister(struct thermal_cooling_device *dfc);
53 53
54#else /* !CONFIG_DEVFREQ_THERMAL */ 54#else /* !CONFIG_DEVFREQ_THERMAL */
55 55
56struct devfreq_cooling_device * 56struct thermal_cooling_device *
57of_devfreq_cooling_register_power(struct device_node *np, struct devfreq *df, 57of_devfreq_cooling_register_power(struct device_node *np, struct devfreq *df,
58 struct devfreq_cooling_power *dfc_power) 58 struct devfreq_cooling_power *dfc_power)
59{ 59{
60 return ERR_PTR(-EINVAL); 60 return ERR_PTR(-EINVAL);
61} 61}
62 62
63static inline struct devfreq_cooling_device * 63static inline struct thermal_cooling_device *
64of_devfreq_cooling_register(struct device_node *np, struct devfreq *df) 64of_devfreq_cooling_register(struct device_node *np, struct devfreq *df)
65{ 65{
66 return ERR_PTR(-EINVAL); 66 return ERR_PTR(-EINVAL);
67} 67}
68 68
69static inline struct devfreq_cooling_device * 69static inline struct thermal_cooling_device *
70devfreq_cooling_register(struct devfreq *df) 70devfreq_cooling_register(struct devfreq *df)
71{ 71{
72 return ERR_PTR(-EINVAL); 72 return ERR_PTR(-EINVAL);
73} 73}
74 74
75static inline void 75static inline void
76devfreq_cooling_unregister(struct devfreq_cooling_device *dfc) 76devfreq_cooling_unregister(struct thermal_cooling_device *dfc)
77{ 77{
78} 78}
79 79