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

Commit 4c951261 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 battery charging logic for battery types"

parents fa048531 707a1681
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -3083,8 +3083,8 @@ static void check_battery_type(struct smbchg_chip *chip)
		chip->bms_psy->get_property(chip->bms_psy,
				POWER_SUPPLY_PROP_BATTERY_TYPE, &prop);
		en = (strcmp(prop.strval, UNKNOWN_BATT_TYPE) != 0
				&& !chip->charge_unknown_battery)
			|| strcmp(prop.strval, LOADING_BATT_TYPE) != 0;
				|| chip->charge_unknown_battery)
			&& (strcmp(prop.strval, LOADING_BATT_TYPE) != 0);
		smbchg_battchg_en(chip, en, REASON_BATTCHG_UNKNOWN_BATTERY,
				&unused);
	}