diff options
-rw-r--r-- | drivers/thermal/cpu_cooling.c | 2 | ||||
-rw-r--r-- | include/linux/cpu_cooling.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/thermal/cpu_cooling.c b/drivers/thermal/cpu_cooling.c index 6f94c2cac1f0..836828e29a87 100644 --- a/drivers/thermal/cpu_cooling.c +++ b/drivers/thermal/cpu_cooling.c | |||
@@ -313,7 +313,7 @@ static struct notifier_block thermal_cpufreq_notifier_block = { | |||
313 | * @clip_cpus: cpumask of cpus where the frequency constraints will happen. | 313 | * @clip_cpus: cpumask of cpus where the frequency constraints will happen. |
314 | */ | 314 | */ |
315 | struct thermal_cooling_device *cpufreq_cooling_register( | 315 | struct thermal_cooling_device *cpufreq_cooling_register( |
316 | struct cpumask *clip_cpus) | 316 | const struct cpumask *clip_cpus) |
317 | { | 317 | { |
318 | struct thermal_cooling_device *cool_dev; | 318 | struct thermal_cooling_device *cool_dev; |
319 | struct cpufreq_cooling_device *cpufreq_dev = NULL; | 319 | struct cpufreq_cooling_device *cpufreq_dev = NULL; |
diff --git a/include/linux/cpu_cooling.h b/include/linux/cpu_cooling.h index 851530128e65..b30cc79c7a82 100644 --- a/include/linux/cpu_cooling.h +++ b/include/linux/cpu_cooling.h | |||
@@ -35,7 +35,7 @@ | |||
35 | * @clip_cpus: cpumask of cpus where the frequency constraints will happen | 35 | * @clip_cpus: cpumask of cpus where the frequency constraints will happen |
36 | */ | 36 | */ |
37 | struct thermal_cooling_device *cpufreq_cooling_register( | 37 | struct thermal_cooling_device *cpufreq_cooling_register( |
38 | struct cpumask *clip_cpus); | 38 | const struct cpumask *clip_cpus); |
39 | 39 | ||
40 | /** | 40 | /** |
41 | * cpufreq_cooling_unregister - function to remove cpufreq cooling device. | 41 | * cpufreq_cooling_unregister - function to remove cpufreq cooling device. |
@@ -44,7 +44,7 @@ struct thermal_cooling_device *cpufreq_cooling_register( | |||
44 | void cpufreq_cooling_unregister(struct thermal_cooling_device *cdev); | 44 | void cpufreq_cooling_unregister(struct thermal_cooling_device *cdev); |
45 | #else /* !CONFIG_CPU_THERMAL */ | 45 | #else /* !CONFIG_CPU_THERMAL */ |
46 | static inline struct thermal_cooling_device *cpufreq_cooling_register( | 46 | static inline struct thermal_cooling_device *cpufreq_cooling_register( |
47 | struct cpumask *clip_cpus) | 47 | const struct cpumask *clip_cpus) |
48 | { | 48 | { |
49 | return NULL; | 49 | return NULL; |
50 | } | 50 | } |