From: Hakan Berg Date: Tue, 17 Jul 2012 12:17:16 +0000 (+0200) Subject: ab8500-btemp: Filter btemp readings X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~31^2~85^2~24 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=908fe8d6a575e2bdf349ba8635b862eeb91f7ade;p=pandora-kernel.git ab8500-btemp: Filter btemp readings Battery tempreature readings sometimes fail and results in a value far from recent values. This patch adds a software filter that disposes such readings, by allowing direct updates on temperature only if two samples result in the same temperature. Else only allow 1 degree change from previous reported value in the direction of the new measurement. Signed-off-by: Hakan Berg Signed-off-by: Lee Jones Reviewed-by: Marcus COOPER Reviewed-by: Martin SJOBLOM Reviewed-by: Rabin VINCENT --- Reading git-diff-tree failed