thermal: core: introduce thermal_of_cooling_device_register
authorEduardo Valentin <eduardo.valentin@ti.com>
Thu, 26 Sep 2013 19:55:01 +0000 (15:55 -0400)
committerAlex Shi <alex.shi@linaro.org>
Mon, 31 Mar 2014 07:47:20 +0000 (15:47 +0800)
commit0b8714893ca2e372272b135fc6b1b6282859b17b
tree93722c77a21c1e58780898c56b1379bec2cba469
parent1c762edb2ae05c5796be9e0ed8f3263e3d8f4a20
thermal: core: introduce thermal_of_cooling_device_register

This patch adds a new API to allow registering cooling devices
in the thermal framework derived from device tree nodes.

This API links the cooling device with the device tree node
so that binding with thermal zones is possible, given
that thermal zones are pointing to cooling device
device tree nodes.

Cc: Zhang Rui <rui.zhang@intel.com>
Cc: linux-pm@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin <eduardo.valentin@ti.com>
(cherry picked from commit a116b5d44f144586ef03a93f14ddc63f4a85e906)

Signed-off-by: Alex Shi <alex.shi@linaro.org>
Conflicts:
drivers/thermal/thermal_core.c
drivers/thermal/thermal_core.c
include/linux/thermal.h