From: J Keerthy Date: Mon, 1 Apr 2013 16:04:45 +0000 (-0400) Subject: staging: ti-soc-thermal:Introduce ti_bandgap_get_trend function for OMAP5 X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~137^2~359 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f440b0622085a130ff723bb037066c9cbfc8cd7;p=pandora-kernel.git staging: ti-soc-thermal:Introduce ti_bandgap_get_trend function for OMAP5 The patch adds ti_bandgap_get_trend function. This is specific to OMAP5 for now it computes the trend from the temp values stored in the hardware history buffer. Formula: (T1 - T2) / P. Where: T1: Last read valid temperature. T2: Last but one read valid temperature. P: Update Interval. Signed-off-by: J Keerthy Signed-off-by: Eduardo Valentin Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed