thermal: thermal_core: allow binding with limits on bind_params
authorEduardo Valentin <eduardo.valentin@ti.com>
Tue, 16 Jul 2013 19:26:28 +0000 (15:26 -0400)
committerEduardo Valentin <eduardo.valentin@ti.com>
Tue, 3 Sep 2013 13:10:24 +0000 (09:10 -0400)
commita8892d83894bcbd2717846cfa85955152b73453f
treeae71fac048786708759736daba4ca56dc3b0f73b
parentccba4ffd9eff6120a20cc7656458ac554aec4b0c
thermal: thermal_core: allow binding with limits on bind_params

When registering a thermal zone device using platform information
via bind_params, the thermal framework will always perform the
cdev binding using the lowest and highest limits (THERMAL_NO_LIMIT).

This patch changes the data structures so that it is possible
to inform what are the desired limits for each trip point
inside a bind_param. The way the binding is performed is also
changed so that it uses the new data structure.

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>
Documentation/thermal/sysfs-api.txt
drivers/thermal/thermal_core.c
include/linux/thermal.h