summaryrefslogtreecommitdiffstats
path: root/drivers/power/ab8500_fg.c
diff options
context:
space:
mode:
authorHakan Berg <hakan.berg@stericsson.com>2012-07-17 14:17:16 +0200
committerLee Jones <lee.jones@linaro.org>2013-03-07 12:35:44 +0800
commit908fe8d6a575e2bdf349ba8635b862eeb91f7ade (patch)
tree863d1d0caffb4dfb84a118c0d885ce0c773b080a /drivers/power/ab8500_fg.c
parentd4f510f6c3f579bac0dbeaa8dc7c2dc768c31786 (diff)
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 <hakan.berg@stericsson.com> Signed-off-by: Lee Jones <lee.jones@linaro.org> Reviewed-by: Marcus COOPER <marcus.xm.cooper@stericsson.com> Reviewed-by: Martin SJOBLOM <martin.w.sjoblom@stericsson.com> Reviewed-by: Rabin VINCENT <rabin.vincent@stericsson.com>
Diffstat (limited to 'drivers/power/ab8500_fg.c')
0 files changed, 0 insertions, 0 deletions