summaryrefslogtreecommitdiff
path: root/drivers/power/supply/mp2629_charger.c
diff options
context:
space:
mode:
authorSicelo A. Mhlongo <absicsz@gmail.com>2024-02-26 21:37:22 +0200
committerSebastian Reichel <sebastian.reichel@collabora.com>2024-02-27 21:13:11 +0100
commit8fbb11162504f2de167a8ccd2d2c55a849d2c5ea (patch)
treef6d260ae99031af16b15d45f7f3b34eacbd36f00 /drivers/power/supply/mp2629_charger.c
parent3da8d71754d3c1aa0b72d74c8a324a4bc7fab473 (diff)
power: supply: bq27xxx: Report charge full state correctly
When reporting the charging status, the existing code reports the battery as full only when the reported current flowing is exactly 0mA, which is unlikely in practice. Fix the reporting by giving priority to the battery's full state indication/flag. Tested on the Nokia N900 with bq27200 fuel gauge. Signed-off-by: Sicelo A. Mhlongo <absicsz@gmail.com> Link: https://lore.kernel.org/r/20240226193722.2173624-1-absicsz@gmail.com Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'drivers/power/supply/mp2629_charger.c')
0 files changed, 0 insertions, 0 deletions