diff options
| author | Colin Ian King <[email protected]> | 2020-09-02 13:31:17 +0000 |
|---|---|---|
| committer | Sebastian Reichel <[email protected]> | 2020-10-08 22:33:09 +0000 |
| commit | 10a4357f4aebb30d20fe5f0297930b292862fed9 (patch) | |
| tree | 2d33b963a912b9a119c0ef98fad949e65db4b92f /lib/test_xarray.c | |
| parent | power: supply: max17040: Fix ptr to enum cast (diff) | |
| download | kernel-10a4357f4aebb30d20fe5f0297930b292862fed9.tar.gz kernel-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 <[email protected]>
Signed-off-by: Sebastian Reichel <[email protected]>
Diffstat (limited to 'lib/test_xarray.c')
0 files changed, 0 insertions, 0 deletions
