mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
charging: fixed get vbus voltage error
tcmd and charging policy get vbus voltage error in bq25890 Change-Id: I6945f6f0bc9fbec1f4032c144538cde219588a07 Signed-off-by: mahj8 <mahj8@motorola.com> Reviewed-on: https://gerrit.mot.com/2106444 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao <liaohs@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
56702a8ce8
commit
43cb5b5c3e
1 changed files with 1 additions and 1 deletions
|
|
@ -1004,7 +1004,7 @@ static int bq2589x_power_supply_get_property(struct power_supply *psy,
|
|||
}
|
||||
break;
|
||||
case POWER_SUPPLY_PROP_VOLTAGE_NOW:
|
||||
val->intval = bq2589x_adc_read_vbus_volt(bq);
|
||||
val->intval = bq2589x_adc_read_vbus_volt(bq) * 1000;
|
||||
break;
|
||||
case POWER_SUPPLY_PROP_CURRENT_NOW:
|
||||
val->intval = bq2589x_adc_read_charge_current(bq);
|
||||
|
|
|
|||
Loading…
Reference in a new issue