aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEduardo Valentin <eduardo.valentin@ti.com>2013-04-17 13:12:07 -0400
committerZhang Rui <rui.zhang@intel.com>2013-04-24 12:34:39 -0400
commit41518c41dd6f36a0a951d1850e286a44773f75ca (patch)
treefb12f553f61ae8c974b7da87b669c57d7c458c5a
parent44952d338ad73439b993c7a09a93a3a688e49768 (diff)
thermal: cpu_cooling: improve documentation for get_cpu_frequency
Fix kernel-doc warning on get_cpu_frequency and improve documentation comments. Signed-off-by: Eduardo Valentin <eduardo.valentin@ti.com> Acked-by: Amit Daniel Kachhap <amit.daniel@samsung.com> Signed-off-by: Zhang Rui <rui.zhang@intel.com>
-rw-r--r--drivers/thermal/cpu_cooling.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/thermal/cpu_cooling.c b/drivers/thermal/cpu_cooling.c
index f1a041205a0e..73944a34fdb9 100644
--- a/drivers/thermal/cpu_cooling.c
+++ b/drivers/thermal/cpu_cooling.c
@@ -232,8 +232,14 @@ EXPORT_SYMBOL_GPL(cpufreq_cooling_get_level);
232/** 232/**
233 * get_cpu_frequency - get the absolute value of frequency from level. 233 * get_cpu_frequency - get the absolute value of frequency from level.
234 * @cpu: cpu for which frequency is fetched. 234 * @cpu: cpu for which frequency is fetched.
235 * @level: level of frequency, equals cooling state of cpu cooling device 235 * @level: cooling level
236 *
237 * This function matches cooling level with frequency. Based on a cooling level
238 * of frequency, equals cooling state of cpu cooling device, it will return
239 * the corresponding frequency.
236 * e.g level=0 --> 1st MAX FREQ, level=1 ---> 2nd MAX FREQ, .... etc 240 * e.g level=0 --> 1st MAX FREQ, level=1 ---> 2nd MAX FREQ, .... etc
241 *
242 * Return: 0 on error, the corresponding frequency otherwise.
237 */ 243 */
238static unsigned int get_cpu_frequency(unsigned int cpu, unsigned long level) 244static unsigned int get_cpu_frequency(unsigned int cpu, unsigned long level)
239{ 245{