aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/thermal
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/thermal')
-rw-r--r--drivers/thermal/thermal_core.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c
index 9550e6897114..15220f9c849f 100644
--- a/drivers/thermal/thermal_core.c
+++ b/drivers/thermal/thermal_core.c
@@ -1287,10 +1287,17 @@ static struct class thermal_class = {
1287}; 1287};
1288 1288
1289/** 1289/**
1290 * thermal_cooling_device_register - register a new thermal cooling device 1290 * thermal_cooling_device_register() - register a new thermal cooling device
1291 * @type: the thermal cooling device type. 1291 * @type: the thermal cooling device type.
1292 * @devdata: device private data. 1292 * @devdata: device private data.
1293 * @ops: standard thermal cooling devices callbacks. 1293 * @ops: standard thermal cooling devices callbacks.
1294 *
1295 * This interface function adds a new thermal cooling device (fan/processor/...)
1296 * to /sys/class/thermal/ folder as cooling_device[0-*]. It tries to bind itself
1297 * to all the thermal zone devices registered at the same time.
1298 *
1299 * Return: a pointer to the created struct thermal_cooling_device or an
1300 * ERR_PTR. Caller must check return value with IS_ERR*() helpers.
1294 */ 1301 */
1295struct thermal_cooling_device * 1302struct thermal_cooling_device *
1296thermal_cooling_device_register(char *type, void *devdata, 1303thermal_cooling_device_register(char *type, void *devdata,