]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Thermal: Update binding logic based on platform data
authorDurgadoss R <durgadoss.r@intel.com>
Tue, 18 Sep 2012 05:34:59 +0000 (11:04 +0530)
committerZhang Rui <rui.zhang@intel.com>
Mon, 24 Sep 2012 06:44:39 +0000 (14:44 +0800)
commit9b70dfa68ae84ad16c673132a257c02db9aceb2f
tree7f52a7e09d65bb8c19ba84321b97844c8d8c9be6
parentf1a0a70ea88be701c09142ce71fdf52be48289b8
Thermal: Update binding logic based on platform data

This patch updates the binding logic in thermal_sys.c
It uses the platform layer data to bind a thermal zone
to a cdev for a particular trip point.

 * If we do not have platform data and do not have
   .bind defined, do not bind.
 * If we do not have platform data but .bind is
   defined, then use tz->ops->bind.
 * If we have platform data, use it to create binding.

The same logic sequence is followed for unbind also.

Signed-off-by: Durgadoss R <durgadoss.r@intel.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/thermal/thermal_sys.c