]> git.baikalelectronics.ru Git - kernel.git/commit
ab8500-chargalg: Update battery health on safety timer exp
authorLee Jones <lee.jones@linaro.org>
Thu, 17 Jan 2013 13:49:45 +0000 (13:49 +0000)
committerLee Jones <lee.jones@linaro.org>
Wed, 23 Jan 2013 11:33:05 +0000 (11:33 +0000)
commit9d6ad7d30b65b635c18c922ea5cef80faf60d78a
tree61b07ee01abf8fd66ee29f7b6e008f22496e53a1
parent4eed0e6a414188864578f2a3f9c72ae07f899944
ab8500-chargalg: Update battery health on safety timer exp

When the charging safety timer elapses, the battery health is
shown as "Good". This is misleading and also makes it difficult
to distinguish issues relating to discharging despite the fact
that the charger is still connected.

When in actual fact a safety timer elapse is an indication of a
fault in the battery. Here we make this clearer by reporting
POWER_SUPPLY_HEALTH_UNSPEC_FAILURE instead.

Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/power/abx500_chargalg.c