Commit f46b151e authored by Ryosuke Saito's avatar Ryosuke Saito Committed by Sebastian Reichel

power: supply: charger-manager: Fix typo in condition

Should be discharging_max_duration_ms, not charging_max_duration_ms.
Signed-off-by: default avatarRyosuke Saito <raitosyo@gmail.com>
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.co.uk>
parent 348c7cf5
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment