]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Thermal: Add get trend, get instance API's to thermal_sys
authorDurgadoss R <durgadoss.r@intel.com>
Tue, 18 Sep 2012 05:34:54 +0000 (11:04 +0530)
committerZhang Rui <rui.zhang@intel.com>
Mon, 24 Sep 2012 06:44:38 +0000 (14:44 +0800)
commita3f7ed4067d970b04d4bd33abaee02f79d3c4ceb
tree068040bf839417cc648ae4fb063445a0bca66f99
parentf273ae81ee3225ea3f0c75d62bc5d1a45614c09d
Thermal: Add get trend, get instance API's to thermal_sys

This patch adds the following API's to thermal_sys.c, that
can be used by other Thermal drivers.
 * get_tz_trend: obtain the trend of the given thermal zone
 * get_thermal_instance: obtain the instance corresponding
   to the given tz, cdev and the trip point.

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