]> 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>
Thu, 18 Oct 2012 01:48:45 +0000 (09:48 +0800)
commit0fc011ebed1188438f453942f5b685834c6d49fb
tree36db472067f05804642bce9cca9fcdd2c728fa31
parentf522f385964527ce2f210f349e6105c0e4a82e9b
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