[PATCH 1/2] Thermal: Add interface to deactive cooling devices.

2012-09-20 Thread zhanghongbo
From: "hongbo.zhang" If the thermal zone mode is disabled, all the referenced cooling devices should be put into state zero. Without this patch the thermal driver cannot deactive all its cooling devices in .set_mode callback, because the cooling device list is maintained in the generic thermal la

[PATCH 0/2] Thermal patches to deactive cooling devices when needed

2012-09-20 Thread zhanghongbo
From: "hongbo.zhang" This patch set contains two patches. [PATCH 1/2] A new interface is introduced to deactive all the referenced cooling devices when thermal zone is disabled. Because the cooling device list is maintained in the generic thermal layer, the thermal driver cannot walk through the

[PATCH 2/2] Thermal: Deactive cooling device when unbind it.

2012-09-20 Thread zhanghongbo
From: "hongbo.zhang" A cooling device should be set to state zero when it is unbound. Signed-off-by: hongbo.zhang --- drivers/thermal/thermal_sys.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/thermal/thermal_sys.c b/drivers/thermal/thermal_sys.c index 2c28c85..efc5c56 100644