[PATCH 41/57] power: ab8500_btemp: Filter btemp readings

2012-09-25 Thread mathieu . poirier
From: Hakan Berg Battery tempreature readings sometimes fails 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

[PATCH 41/57] power: ab8500_btemp: Filter btemp readings

2012-09-25 Thread mathieu . poirier
From: Hakan Berg hakan.b...@stericsson.com Battery tempreature readings sometimes fails 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