diff options
author | Sebastian Reichel <sebastian.reichel@collabora.co.uk> | 2018-02-15 23:28:40 +0300 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2018-03-12 16:30:09 +0300 |
commit | f72c14ad8c6631a0a42115e74164f9b5faf4c724 (patch) | |
tree | b1c0edaaefeafa84cee647a9e34186ce692776a7 /net/unix/af_unix.c | |
parent | 66ec32fc7cd116dab5c02603ea8ec28ff92da3b5 (diff) | |
download | linux-f72c14ad8c6631a0a42115e74164f9b5faf4c724.tar.xz |
power: supply: bq27xxx: support missing supplier device
power_supply_am_i_supplied() can return negative error
codes. In this case we should assume, that no charger
is connected and the battery should be marked as
DISCHARGING instead of NOT_CHARGING.
Reported-by: Merlijn Wajer <merlijn@wizzup.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions