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

Commit 839d54d2 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "power: battery: Fix SMB1355 Parallel Charging disabling issue"

parents 021f6068 2f87d72c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1263,6 +1263,8 @@ static bool is_parallel_available(struct pl_data *chip)
	if (!chip->pl_psy)
		return false;

	vote(chip->pl_disable_votable, PARALLEL_PSY_VOTER, false, 0);

	rc = power_supply_get_property(chip->pl_psy,
			       POWER_SUPPLY_PROP_PARALLEL_MODE, &pval);
	if (rc < 0) {
@@ -1311,8 +1313,6 @@ static bool is_parallel_available(struct pl_data *chip)
	if (!rc)
		chip->pl_fcc_max = pval.intval;

	vote(chip->pl_disable_votable, PARALLEL_PSY_VOTER, false, 0);

	return true;
}