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

Commit 6c09b1ee authored by Kavya Nunna's avatar Kavya Nunna
Browse files

power: battery: fix split current error log by adding USBIN check



Currently, there is no check before invoking split_settled function.
Add USBIN check to avoid error log in split_settled function.

Change-Id: I3df46782b59f114c0f1b2199915221bc33d913f5
Signed-off-by: default avatarKavya Nunna <knunna@codeaurora.org>
parent fec7194f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -319,6 +319,7 @@ static ssize_t slave_pct_store(struct class *c, struct class_attribute *attr,
	vote(chip->pl_disable_votable, ICL_LIMIT_VOTER, disable, 0);
	rerun_election(chip->fcc_votable);
	rerun_election(chip->fv_votable);
	if (IS_USBIN(chip->pl_mode))
		split_settled(chip);

	return count;