diff options
author | Colin Ian King <colin.king@canonical.com> | 2020-09-02 14:31:17 +0100 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2020-10-09 00:33:09 +0200 |
commit | 10a4357f4aebb30d20fe5f0297930b292862fed9 (patch) | |
tree | 2d33b963a912b9a119c0ef98fad949e65db4b92f /drivers/power/supply/power_supply_leds.c | |
parent | 7f977e64370dad07b01601bb2ba959678a149ff3 (diff) | |
download | lwn-10a4357f4aebb30d20fe5f0297930b292862fed9.tar.gz lwn-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/power/supply/power_supply_leds.c')
0 files changed, 0 insertions, 0 deletions