]> git.karo-electronics.de Git - linux-beck.git/commitdiff
thermal: cpu_cooling: update kernel-doc for cpufreq_cooling_register
authorEduardo Valentin <eduardo.valentin@ti.com>
Wed, 17 Apr 2013 17:12:15 +0000 (17:12 +0000)
committerZhang Rui <rui.zhang@intel.com>
Wed, 24 Apr 2013 16:34:42 +0000 (00:34 +0800)
Add proper documentation for exported function cpufreq_cooling_register.

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>
drivers/thermal/cpu_cooling.c

index aa9c38b1c3ac4ae95c2fbe516c27b7721672009f..9a1d82ef491e1d447393b80cbec2784302059202 100644 (file)
@@ -413,6 +413,13 @@ static struct notifier_block thermal_cpufreq_notifier_block = {
 /**
  * cpufreq_cooling_register - function to create cpufreq cooling device.
  * @clip_cpus: cpumask of cpus where the frequency constraints will happen.
+ *
+ * This interface function registers the cpufreq cooling device with the name
+ * "thermal-cpufreq-%x". This api can support multiple instances of cpufreq
+ * cooling devices.
+ *
+ * Return: a valid struct thermal_cooling_device pointer on success,
+ * on failure, it returns a corresponding ERR_PTR().
  */
 struct thermal_cooling_device *cpufreq_cooling_register(
        const struct cpumask *clip_cpus)