From aa2590ba23f02c885482a24b83226f5dbec9c170 Mon Sep 17 00:00:00 2001 From: Eduardo Valentin Date: Tue, 23 Apr 2013 21:48:18 +0000 Subject: [PATCH] --- yaml --- r: 374571 b: refs/heads/master c: 3a6eccb35219a7cfa7c7bbac16aa344d4a336fd4 h: refs/heads/master i: 374569: ddbfa9bee56b081f8e07fd8b57f917a7010d84a3 374567: 2fa28be0c0e580497bf47bb080e9a0b68e849bbc v: v3 --- [refs] | 2 +- trunk/drivers/thermal/thermal_core.c | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 7dd42655717c..981499380629 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 9892e5dc56f185d104e6dddd1e2d0f6ae8f4f211 +refs/heads/master: 3a6eccb35219a7cfa7c7bbac16aa344d4a336fd4 diff --git a/trunk/drivers/thermal/thermal_core.c b/trunk/drivers/thermal/thermal_core.c index 9550e6897114..15220f9c849f 100644 --- a/trunk/drivers/thermal/thermal_core.c +++ b/trunk/drivers/thermal/thermal_core.c @@ -1287,10 +1287,17 @@ static struct class thermal_class = { }; /** - * thermal_cooling_device_register - register a new thermal cooling device + * thermal_cooling_device_register() - register a new thermal cooling device * @type: the thermal cooling device type. * @devdata: device private data. * @ops: standard thermal cooling devices callbacks. + * + * This interface function adds a new thermal cooling device (fan/processor/...) + * to /sys/class/thermal/ folder as cooling_device[0-*]. It tries to bind itself + * to all the thermal zone devices registered at the same time. + * + * Return: a pointer to the created struct thermal_cooling_device or an + * ERR_PTR. Caller must check return value with IS_ERR*() helpers. */ struct thermal_cooling_device * thermal_cooling_device_register(char *type, void *devdata,