thermal: cpu_cooling: introduce of_cpufreq_cooling_register
authorEduardo Valentin <eduardo.valentin@ti.com>
Thu, 12 Sep 2013 23:26:45 +0000 (19:26 -0400)
committerAlex Shi <alex.shi@linaro.org>
Mon, 31 Mar 2014 07:47:21 +0000 (15:47 +0800)
commit17dcbf41efd82fd7a1c997d87e23e97f6c993c2e
tree0f01ac672427fa8f3039434c2c87483f910246a3
parent0b8714893ca2e372272b135fc6b1b6282859b17b
thermal: cpu_cooling: introduce of_cpufreq_cooling_register

This patch introduces an API to register cpufreq cooling device
based on device tree node.

The registration via device tree node differs from normal
registration due to the fact that it is needed to fill
the device_node structure in order to be able to match
the cooling devices with trip points.

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 39d99cff76bf2992fd6dd4b1fc62da139e62e90c)

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