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

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

Merge "power: smb135x-charger: fix dc path initialization"

parents fe763002 bcad45cb
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1775,14 +1775,13 @@ static int smb_parse_dt(struct smb135x_chg *chip)
		return -EINVAL;
	}

	chip->dc_psy_type = -EINVAL;
	dc_psy_type = of_get_property(node, "qcom,dc-psy-type", NULL);
	if (dc_psy_type) {
		if (strcmp(dc_psy_type, "Mains") == 0)
			chip->dc_psy_type = POWER_SUPPLY_TYPE_MAINS;
		else if (strcmp(dc_psy_type, "Wireless") == 0)
			chip->dc_psy_type = POWER_SUPPLY_TYPE_WIRELESS;
		else
			chip->dc_psy_type = -EINVAL;
	}

	if (chip->dc_psy_type != -EINVAL) {