mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 13:49:24 -04:00
power: add current_max to get effective fcc
Add current_max property in battery supply to get the effective FCC value. Change-Id: I2a9dd33a42bfc248518db7447c8bc5cd322be5e8 Signed-off-by: Yonghua Yan <yanyh2@motorola.com> Reviewed-on: https://gerrit.mot.com/1364670 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Kenneth Kessler <kennykessler@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
9519f45eea
commit
8b392dc3b8
1 changed files with 4 additions and 0 deletions
|
|
@ -3016,6 +3016,7 @@ static enum power_supply_property batt_props[] = {
|
|||
POWER_SUPPLY_PROP_VOLTAGE_QNOVO,
|
||||
POWER_SUPPLY_PROP_CURRENT_NOW,
|
||||
POWER_SUPPLY_PROP_CURRENT_QNOVO,
|
||||
POWER_SUPPLY_PROP_CURRENT_MAX,
|
||||
POWER_SUPPLY_PROP_CONSTANT_CHARGE_CURRENT_MAX,
|
||||
POWER_SUPPLY_PROP_CONSTANT_CHARGE_CURRENT,
|
||||
POWER_SUPPLY_PROP_CHARGE_TERM_CURRENT,
|
||||
|
|
@ -3069,6 +3070,9 @@ static int batt_get_prop(struct power_supply *psy,
|
|||
else
|
||||
val->intval = chip->sm_param[BASE_BATT].batt_health;
|
||||
break;
|
||||
case POWER_SUPPLY_PROP_CURRENT_MAX:
|
||||
val->intval = get_effective_result(chip->fcc_votable);
|
||||
break;
|
||||
case POWER_SUPPLY_PROP_TEMP:
|
||||
if (chip->max_main_psy && chip->max_flip_psy) {
|
||||
union power_supply_propval main_psy_val;
|
||||
|
|
|
|||
Loading…
Reference in a new issue