Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4b733363 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "power: smb1351-charger: Disable parallel-slave only if present"

parents ebf3b0c5 dadaae39
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1790,6 +1790,9 @@ static int smb1351_parallel_charger_disable_slave(
	int rc;
	struct power_supply *parallel_psy = smb1351_get_parallel_slave(chip);

	if (!parallel_psy || !chip->parallel.slave_detected)
		return 0;

	pr_debug("Disable parallel slave!\n");

	chip->parallel.total_icl_ma = 0;