diff options
author | Carl Philipp Klemm <philipp@uvos.xyz> | 2021-04-23 14:58:31 +0200 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2021-06-04 14:28:31 +0200 |
commit | aecd127b45eac8ce0ff667a4a855ff66905fb88c (patch) | |
tree | bf8fd93efd438a1d06f42c4da2ee8f08384142fc /lib/mpi | |
parent | power: supply: axp20x_battery: allow disabling battery charging (diff) | |
download | linux-aecd127b45eac8ce0ff667a4a855ff66905fb88c.tar.xz linux-aecd127b45eac8ce0ff667a4a855ff66905fb88c.zip |
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>
Diffstat (limited to 'lib/mpi')
0 files changed, 0 insertions, 0 deletions