diff options
author | Christophe Jaillet <christophe.jaillet@wanadoo.fr> | 2017-08-08 16:39:52 +0200 |
---|---|---|
committer | Zhang Rui <rui.zhang@intel.com> | 2017-08-11 11:33:49 +0800 |
commit | 32fa5ba3171116a5501e60245dc97e82fe3cf267 (patch) | |
tree | d5d3cae080986bd116c9497b5d80f0cdca8fd452 /drivers/thermal/thermal_core.h | |
parent | 039f6cf5b5566b92fae8d31924b1d59365798abb (diff) | |
download | linux-32fa5ba3171116a5501e60245dc97e82fe3cf267.tar.gz linux-32fa5ba3171116a5501e60245dc97e82fe3cf267.tar.bz2 linux-32fa5ba3171116a5501e60245dc97e82fe3cf267.zip |
thermal: core: Add some new helper functions to free resources
In order to easily free resources allocated by
'thermal_zone_create_device_groups()' we need 2 new helper functions.
The first one undoes 'thermal_zone_create_device_groups()'.
The 2nd one undoes 'create_trip_attrs()', which is a function called by
'thermal_zone_create_device_groups()'.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Diffstat (limited to 'drivers/thermal/thermal_core.h')
-rw-r--r-- | drivers/thermal/thermal_core.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/thermal/thermal_core.h b/drivers/thermal/thermal_core.h index 2412b3759e16..27e3b1df7360 100644 --- a/drivers/thermal/thermal_core.h +++ b/drivers/thermal/thermal_core.h @@ -71,6 +71,7 @@ int thermal_build_list_of_policies(char *buf); /* sysfs I/F */ int thermal_zone_create_device_groups(struct thermal_zone_device *, int); +void thermal_zone_destroy_device_groups(struct thermal_zone_device *); void thermal_cooling_device_setup_sysfs(struct thermal_cooling_device *); /* used only at binding time */ ssize_t |