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:
Subbaraman Narayanamurthy 2016-10-20 12:04:02 -07:00
parent 1ff56658f3
commit a53c420c5d

View file

@ -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) {