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, 5 Nov 2012 05:56:32 +0000 (13:56 +0800)
commit9b4298a088907811a4fe5a5d7cd2454da60708c5
tree77d598b92fae403b5cc1c558a9f52d69da4a072b
parent71350db43b4c5c4da59b729c805f00ff6675b99d
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