mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-20 19:23:40 +00:00
power: supply: bq27xxx: expose battery data when CI=1
[ Upstream commit68fdbe090c] When the Capacity Inaccurate flag is set, the chip still provides data about the battery, albeit inaccurate. Instead of discarding capacity values for CI=1, expose the stale data and use the POWER_SUPPLY_HEALTH_CALIBRATION_REQUIRED property to indicate that the values should be used with care. Reviewed-by: Pali Rohár <pali@kernel.org> Signed-off-by: Sicelo A. Mhlongo <absicsz@gmail.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com> Stable-dep-of:ff4c4a2a44("power: supply: bq27xxx: Move bq27xxx_battery_update() down") Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
0ab06468cb
commit
2288fa1ae9
1 changed files with 27 additions and 33 deletions
Loading…
Add table
Add a link
Reference in a new issue