mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04:00
Power: update fg current orientation
charger policy need that charger current showing "-" and discharge showing "+" Change-Id: I242a9dcfee16b53b344ac1c68b0a3c4dc89280cb Signed-off-by: liuyc20 <liuyc20@lenovo.com> Reviewed-on: https://gerrit.mot.com/2106481 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Haijian Ma <mahj8@motorola.com> Reviewed-by: Huosheng Liao <liaohs@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
43cb5b5c3e
commit
e2f9f6dd59
2 changed files with 2 additions and 2 deletions
|
|
@ -834,7 +834,7 @@ static int cw_battery_get_property(struct power_supply *psy,
|
|||
val->intval = cw_bat->voltage * CW_VOL_UNIT;
|
||||
break;
|
||||
case POWER_SUPPLY_PROP_CURRENT_NOW:
|
||||
val->intval = cw_bat->cw_current * CW_CUR_UNIT;
|
||||
val->intval = cw_bat->cw_current * CW_CUR_UNIT * (-1);
|
||||
break;
|
||||
case POWER_SUPPLY_PROP_TECHNOLOGY:
|
||||
val->intval = POWER_SUPPLY_TECHNOLOGY_LION;
|
||||
|
|
|
|||
|
|
@ -1159,7 +1159,7 @@ static int rt_fg_get_property(struct power_supply *psy,
|
|||
dev_info(chip->dev, "psp_charge_full_design = %d\n", val->intval);
|
||||
break;
|
||||
case POWER_SUPPLY_PROP_CURRENT_NOW:
|
||||
val->intval = rt9426a_get_current(chip) * 1000;
|
||||
val->intval = rt9426a_get_current(chip) * 1000 * (-1);
|
||||
dev_info(chip->dev, "psp_curr_now = %d\n", val->intval);
|
||||
break;
|
||||
case POWER_SUPPLY_PROP_TEMP:
|
||||
|
|
|
|||
Loading…
Reference in a new issue