diff options
author | 2020-09-02 14:31:17 +0100 | |
---|---|---|
committer | 2020-10-09 00:33:09 +0200 | |
commit | 10a4357f4aebb30d20fe5f0297930b292862fed9 (patch) | |
tree | 2d33b963a912b9a119c0ef98fad949e65db4b92f /drivers/usb/cdns3/cdns3-debug.h | |
parent | power: supply: max17040: Fix ptr to enum cast (diff) | |
download | wireguard-linux-10a4357f4aebb30d20fe5f0297930b292862fed9.tar.xz wireguard-linux-10a4357f4aebb30d20fe5f0297930b292862fed9.zip |
power: supply: charger-manager: fix incorrect check on charging_duration_ms
Currently the duration check on the discharging duration setting is
checking the charging duration rather than the discharging duration
due to a cut-n-paste coding error. Fix this by checking the value
desc->charging_max_duration_ms.
Addresses-Coverity: ("Copy-paste-error")
Fixes: 8fcfe088e21a ("charger-manager: Support limit of maximum possible")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions