diff options
author | Krzysztof Kozlowski <krzk@kernel.org> | 2020-09-19 17:04:14 +0300 |
---|---|---|
committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2020-10-02 01:01:42 +0300 |
commit | 7bf738ba110722b63e9dc8af760d3fb2aef25593 (patch) | |
tree | ca4e91e5c287f3844106a3b3bef3dc281c67e3c1 /crypto/xor.c | |
parent | 3e8282a3602953575f6abf420a1ccaf2c22ef8ad (diff) | |
download | linux-7bf738ba110722b63e9dc8af760d3fb2aef25593.tar.xz |
power: supply: bq27xxx: report "not charging" on all types
Commit 6f24ff97e323 ("power: supply: bq27xxx_battery: Add the
BQ27Z561 Battery monitor") and commit d74534c27775 ("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>
Diffstat (limited to 'crypto/xor.c')
0 files changed, 0 insertions, 0 deletions