thermal: cpu_cooling: improve documentation for get_cpu_frequency
authorEduardo Valentin <[email protected]>
Wed, 17 Apr 2013 17:12:07 +0000 (17:12 +0000)
committerZhang Rui <[email protected]>
Wed, 24 Apr 2013 16:34:39 +0000 (00:34 +0800)
Fix kernel-doc warning on get_cpu_frequency and improve
documentation comments.

Signed-off-by: Eduardo Valentin <[email protected]>
Acked-by: Amit Daniel Kachhap <[email protected]>
Signed-off-by: Zhang Rui <[email protected]>
drivers/thermal/cpu_cooling.c

index f1a041205a0e00bc454ab061be52bceb8ad0755c..73944a34fdb9e2fbcf4123b285dc95872e2a5e92 100644 (file)
@@ -232,8 +232,14 @@ EXPORT_SYMBOL_GPL(cpufreq_cooling_get_level);
 /**
  * get_cpu_frequency - get the absolute value of frequency from level.
  * @cpu: cpu for which frequency is fetched.
- * @level: level of frequency, equals cooling state of cpu cooling device
+ * @level: cooling level
+ *
+ * This function matches cooling level with frequency. Based on a cooling level
+ * of frequency, equals cooling state of cpu cooling device, it will return
+ * the corresponding frequency.
  *     e.g level=0 --> 1st MAX FREQ, level=1 ---> 2nd MAX FREQ, .... etc
+ *
+ * Return: 0 on error, the corresponding frequency otherwise.
  */
 static unsigned int get_cpu_frequency(unsigned int cpu, unsigned long level)
 {