mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-28 04:17:47 +00:00
thermal: core: add a comment describing the device management section
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>
This commit is contained in:
parent
712afbdfdf
commit
81193e2e6b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user