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

Commit a53c420c authored by Subbaraman Narayanamurthy's avatar Subbaraman Narayanamurthy
Browse files

qpnp-fg-gen3: update the FCC unit while notifying charger



Charger driver expects the constant_charge_current_max property
in microunits. Update it.

Change-Id: I1b9117edb6c2206c09deb083529479a3ccc4618d
Signed-off-by: default avatarSubbaraman Narayanamurthy <subbaram@codeaurora.org>
parent 1ff56658
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1663,7 +1663,7 @@ static void fg_notify_charger(struct fg_chip *chip)
		return;
	}

	prop.intval = chip->bp.fastchg_curr_ma;
	prop.intval = chip->bp.fastchg_curr_ma * 1000;
	rc = power_supply_set_property(chip->batt_psy,
			POWER_SUPPLY_PROP_CONSTANT_CHARGE_CURRENT_MAX, &prop);
	if (rc < 0) {