aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/thermal
diff options
context:
space:
mode:
authorEduardo Valentin <eduardo.valentin@ti.com>2013-04-17 13:12:02 -0400
committerZhang Rui <rui.zhang@intel.com>2013-04-26 21:25:38 -0400
commit1b9e35265903c2e0e484dc224e8f7de506e3353f (patch)
tree7f98d070207982c504e27b712f0083408ddc67f1 /drivers/thermal
parent79491e53dcd73175473e3293a574f5e006b468be (diff)
thermal: cpu_cooling: standardize comment style
There are at least three patterns for oneline comments in this file. This patch changes them to one single pattern Signed-off-by: Eduardo Valentin <eduardo.valentin@ti.com> Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Diffstat (limited to 'drivers/thermal')
-rw-r--r--drivers/thermal/cpu_cooling.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/thermal/cpu_cooling.c b/drivers/thermal/cpu_cooling.c
index bb32ca0056c4..2d94ffa3230d 100644
--- a/drivers/thermal/cpu_cooling.c
+++ b/drivers/thermal/cpu_cooling.c
@@ -323,7 +323,7 @@ static int cpufreq_thermal_notifier(struct notifier_block *nb,
323 if (cpumask_test_cpu(policy->cpu, &notify_device->allowed_cpus)) 323 if (cpumask_test_cpu(policy->cpu, &notify_device->allowed_cpus))
324 max_freq = notify_device->cpufreq_val; 324 max_freq = notify_device->cpufreq_val;
325 325
326 /* Never exceed user_policy.max*/ 326 /* Never exceed user_policy.max */
327 if (max_freq > policy->user_policy.max) 327 if (max_freq > policy->user_policy.max)
328 max_freq = policy->user_policy.max; 328 max_freq = policy->user_policy.max;
329 329
@@ -333,9 +333,7 @@ static int cpufreq_thermal_notifier(struct notifier_block *nb,
333 return 0; 333 return 0;
334} 334}
335 335
336/* 336/* cpufreq cooling device callback functions are defined below */
337 * cpufreq cooling device callback functions are defined below
338 */
339 337
340/** 338/**
341 * cpufreq_get_max_state - callback function to get the max cooling state. 339 * cpufreq_get_max_state - callback function to get the max cooling state.
@@ -437,9 +435,9 @@ struct thermal_cooling_device *cpufreq_cooling_register(
437 int ret = 0, i; 435 int ret = 0, i;
438 struct cpufreq_policy policy; 436 struct cpufreq_policy policy;
439 437
440 /*Verify that all the clip cpus have same freq_min, freq_max limit*/ 438 /* Verify that all the clip cpus have same freq_min, freq_max limit */
441 for_each_cpu(i, clip_cpus) { 439 for_each_cpu(i, clip_cpus) {
442 /*continue if cpufreq policy not found and not return error*/ 440 /* continue if cpufreq policy not found and not return error */
443 if (!cpufreq_get_policy(&policy, i)) 441 if (!cpufreq_get_policy(&policy, i))
444 continue; 442 continue;
445 if (min == 0 && max == 0) { 443 if (min == 0 && max == 0) {