Commit 730c9df
power: supply: bq27xxx: report "not charging" on all types
[ Upstream commit 7bf738b ]
Commit 6f24ff9 ("power: supply: bq27xxx_battery: Add the
BQ27Z561 Battery monitor") and commit d74534c ("power:
bq27xxx_battery: Add support for additional bq27xxx family devices")
added support for new device types by copying most of the code and
adding necessary quirks.
However they did not copy the code in bq27xxx_battery_status()
responsible for returning POWER_SUPPLY_STATUS_NOT_CHARGING.
Unify the bq27xxx_battery_status() so for all types when charger is
supplied, it will return "not charging" status.
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent 77dbbcd commit 730c9df
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1772 | 1772 | | |
1773 | 1773 | | |
1774 | 1774 | | |
1775 | | - | |
1776 | | - | |
1777 | 1775 | | |
1778 | 1776 | | |
1779 | 1777 | | |
| |||
1792 | 1790 | | |
1793 | 1791 | | |
1794 | 1792 | | |
| 1793 | + | |
| 1794 | + | |
| 1795 | + | |
| 1796 | + | |
1795 | 1797 | | |
1796 | 1798 | | |
1797 | 1799 | | |
| |||
0 commit comments