]> Pileus Git - ~andy/linux/commit
staging: ti-soc-thermal:Introduce ti_bandgap_get_trend function for OMAP5
authorJ Keerthy <j-keerthy@ti.com>
Mon, 1 Apr 2013 16:04:45 +0000 (12:04 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 1 Apr 2013 19:27:30 +0000 (12:27 -0700)
commit2f440b0622085a130ff723bb037066c9cbfc8cd7
tree6a0b049ca925f4d16cdddb51a8f30057a9645ec5
parent54b59c922400bf1ef16dee4834a4a5722552176e
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 <j-keerthy@ti.com>
Signed-off-by: Eduardo Valentin <eduardo.valentin@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ti-soc-thermal/ti-bandgap.c
drivers/staging/ti-soc-thermal/ti-bandgap.h