]> git.karo-electronics.de Git - linux-beck.git/commitdiff
thermal: core: add a comment describing the device management section
authorEduardo Valentin <edubezval@gmail.com>
Tue, 8 Nov 2016 05:09:17 +0000 (21:09 -0800)
committerZhang Rui <rui.zhang@intel.com>
Wed, 23 Nov 2016 02:06:12 +0000 (10:06 +0800)
comment describing the section with function to handle
registration, unregistration, binding, and unbinding of
thermal devices.

Cc: Zhang Rui <rui.zhang@intel.com>
Cc: linux-pm@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/thermal/thermal_core.c

index e9e6bb9085a1f698f38769ab17903d8e1e29be0d..01b1a4e064c0e4c35114c208b505aba1978e4951 100644 (file)
@@ -588,8 +588,15 @@ void thermal_zone_device_unbind_exception(struct thermal_zone_device *tz,
        mutex_unlock(&thermal_list_lock);
 }
 
-/* Device management */
-
+/*
+ * Device management section: cooling devices, zones devices, and binding
+ *
+ * Set of functions provided by the thermal core for:
+ * - cooling devices lifecycle: registration, unregistration,
+ *                             binding, and unbinding.
+ * - thermal zone devices lifecycle: registration, unregistration,
+ *                                  binding, and unbinding.
+ */
 static int get_idr(struct idr *idr, struct mutex *lock, int *id)
 {
        int ret;