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

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

Merge "power: qpnp-smbcharger: Fix ICL voting on USB removal"

parents 0f4a079d 72c52f0f
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -4538,8 +4538,7 @@ static int smbchg_change_usb_supply_type(struct smbchg_chip *chip,
	 * and set type after the vote
	 */
	if (type == POWER_SUPPLY_TYPE_UNKNOWN) {
		rc = vote(chip->usb_icl_votable, PSY_ICL_VOTER, false,
				current_limit_ma);
		rc = vote(chip->usb_icl_votable, PSY_ICL_VOTER, true, 0);
		if (rc < 0)
			pr_err("Couldn't remove ICL vote rc=%d\n", rc);