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)
committerEduardo Valentin <eduardo.valentin@ti.com>
Wed, 4 Dec 2013 13:31:34 +0000 (09:31 -0400)
commita116b5d44f144586ef03a93f14ddc63f4a85e906
tree51ba653f45fb1858c9f859b674f7101be8eb2fb4
parent4e5e4705bf69ea450f58fc709ac5888f321a9299
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>
drivers/thermal/thermal_core.c
include/linux/thermal.h