commit | 7f93e1fa032bb5ee19b868b9649bc98c82553003 | [log] [tgz] |
---|---|---|
author | Paul Kocialkowski <contact@paulk.fr> | Tue Apr 25 17:09:05 2017 +0200 |
committer | Sebastian Reichel <sre@kernel.org> | Mon May 01 12:45:43 2017 +0200 |
tree | 8a341c417abf7b2009a4352c5ac1011e17926fb3 | |
parent | 4df2cce4722d35eb35bb9371e7c9a600a84558f9 [diff] |
power: supply: sbs-battery: Correct supply status with current draw The status reported directly by the battery controller is not always reliable and should be corrected based on the current draw information. This implements such a correction with a dedicated function, called where the supply status is retrieved. Signed-off-by: Paul Kocialkowski <contact@paulk.fr> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>