mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-14 06:36:46 +07:00
power: supply: charger-manager: Fix typo in condition
Should be discharging_max_duration_ms, not charging_max_duration_ms. Signed-off-by: Ryosuke Saito <raitosyo@gmail.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
This commit is contained in:
parent
348c7cf5fc
commit
f46b151ede
@ -578,7 +578,7 @@ static int check_charging_duration(struct charger_manager *cm)
|
||||
} else if (is_ext_pwr_online(cm) && !cm->charger_enabled) {
|
||||
duration = curr - cm->charging_end_time;
|
||||
|
||||
if (duration > desc->charging_max_duration_ms &&
|
||||
if (duration > desc->discharging_max_duration_ms &&
|
||||
is_ext_pwr_online(cm)) {
|
||||
dev_info(cm->dev, "Discharging duration exceed %ums\n",
|
||||
desc->discharging_max_duration_ms);
|
||||
|
Loading…
Reference in New Issue
Block a user