power: supply: qcom_pmi8998_charger: fix charger status
authorCaleb Connolly <caleb.connolly@linaro.org>
Wed, 2 Aug 2023 14:49:29 +0000 (15:49 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Thu, 3 Aug 2023 00:23:42 +0000 (02:23 +0200)
commit7e6311f04b41174ccc738d37dcb4b93cd4de98b0
tree3c0a8995a2c86c96bec60d02b91c497426cd4c1e
parentf57f5838c044d1554b71186d3d277619eab58d31
power: supply: qcom_pmi8998_charger: fix charger status

The INHIBIT_CHARGE status bit means the battery has reached a
pre-programmed charge limit which is some voltage offset below the
target float voltage. This should be reported as a STATUS_FULL rather
than UNKNOWN, fix it.

Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
Link: https://lore.kernel.org/r/20230802-pmi8998-charger-fixes-v1-2-a8f1e8b84c1e@linaro.org
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/qcom_pmi8998_charger.c