commit | aecd127b45eac8ce0ff667a4a855ff66905fb88c | [log] [tgz] |
---|---|---|
author | Carl Philipp Klemm <philipp@uvos.xyz> | Fri Apr 23 14:58:31 2021 +0200 |
committer | Sebastian Reichel <sre@kernel.org> | Fri Jun 04 14:28:31 2021 +0200 |
tree | bf8fd93efd438a1d06f42c4da2ee8f08384142fc | |
parent | 6a0fcc87c9e35191d37a8819fdab9d30e523515b [diff] |
power: supply: cpcap-battery: invalidate config when incompatible measurements are read This invalidates empty->counter_uah and charge_full when charge_now indicates that they are grossly wrong and adds some tolerance to POWER_SUPPLY_PROP_CHARGE_FULL to allow for inaccuracies in the charge counter and manufacturing tolerances in the battery. Signed-off-by: Carl Philipp Klemm <philipp@uvos.xyz> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>