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

Commit 2449babe authored by Xiaozhe Shi's avatar Xiaozhe Shi
Browse files

power: qpnp-smbcharger: vote for FCC as BATT_TYPE



Use the BATT_TYPE voter for FCC instead of USER. This way the user can
set FCCs higher than the device tree limit.

Change-Id: Id386f8afd1bef2d1774730b214f1b97d64a6476b
Signed-off-by: default avatarXiaozhe Shi <xiaozhes@codeaurora.org>
parent a24dc247
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -312,7 +312,6 @@ enum wake_reason {
enum fcc_voters {
	ESR_PULSE_FCC_VOTER,
	BATT_TYPE_FCC_VOTER,
	USER_FCC_VOTER,
	RESTRICTED_CHG_FCC_VOTER,
	NUM_FCC_VOTER,
};
@@ -2271,7 +2270,7 @@ static int smbchg_set_fastchg_current_user(struct smbchg_chip *chip,

	pr_smb(PR_STATUS, "User setting FCC to %d\n", current_ma);

	rc = vote(chip->fcc_votable, USER_FCC_VOTER, true, current_ma);
	rc = vote(chip->fcc_votable, BATT_TYPE_FCC_VOTER, true, current_ma);
	if (rc < 0)
		pr_err("Couldn't vote en rc %d\n", rc);
	return rc;