Commit f11997fa authored by Eduardo Valentin's avatar Eduardo Valentin Committed by Zhang Rui

thermal: core: move __unbind() helper to where it is used

Simply moving the helper to closer where it is actually used.

Cc: Zhang Rui <rui.zhang@intel.com>
Cc: linux-pm@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: default avatarEduardo Valentin <edubezval@gmail.com>
Signed-off-by: default avatarZhang Rui <rui.zhang@intel.com>
parent 4f5163fa
...@@ -319,16 +319,6 @@ static void __bind(struct thermal_zone_device *tz, int mask, ...@@ -319,16 +319,6 @@ static void __bind(struct thermal_zone_device *tz, int mask,
} }
} }
static void __unbind(struct thermal_zone_device *tz, int mask,
struct thermal_cooling_device *cdev)
{
int i;
for (i = 0; i < tz->trips; i++)
if (mask & (1 << i))
thermal_zone_unbind_cooling_device(tz, i, cdev);
}
static void bind_cdev(struct thermal_cooling_device *cdev) static void bind_cdev(struct thermal_cooling_device *cdev)
{ {
int i, ret; int i, ret;
...@@ -1021,6 +1011,16 @@ thermal_of_cooling_device_register(struct device_node *np, ...@@ -1021,6 +1011,16 @@ thermal_of_cooling_device_register(struct device_node *np,
} }
EXPORT_SYMBOL_GPL(thermal_of_cooling_device_register); EXPORT_SYMBOL_GPL(thermal_of_cooling_device_register);
static void __unbind(struct thermal_zone_device *tz, int mask,
struct thermal_cooling_device *cdev)
{
int i;
for (i = 0; i < tz->trips; i++)
if (mask & (1 << i))
thermal_zone_unbind_cooling_device(tz, i, cdev);
}
/** /**
* thermal_cooling_device_unregister - removes the registered thermal cooling device * thermal_cooling_device_unregister - removes the registered thermal cooling device
* @cdev: the thermal cooling device to remove. * @cdev: the thermal cooling device to remove.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment