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

Commit 4c5e5900 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 the error in setting current_limit"

parents 94cebccd d65043de
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3126,7 +3126,7 @@ static void smbchg_external_power_changed(struct power_supply *psy)

	rc = chip->usb_psy->get_property(chip->usb_psy,
				POWER_SUPPLY_PROP_CURRENT_MAX, &prop);
	if (rc != 0)
	if (rc == 0)
		current_limit = prop.intval / 1000;

	read_usb_type(chip, &usb_type_name, &usb_supply_type);