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: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
This commit is contained in:
parent
1ff56658f3
commit
a53c420c5d
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue