mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
fg: modify fake battery default value for assembly test
modify fake battery default value for assembly test in factory Change-Id: Id479e2ec546026decae31d6fdfd5d56987bfbeb7 Signed-off-by: Haijian Ma <mahj8@motorola.com> Reviewed-on: https://gerrit.mot.com/2301490 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hujun Liao <liaohj@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
cd707d1093
commit
6b5d72caf4
1 changed files with 2 additions and 2 deletions
|
|
@ -1740,7 +1740,7 @@ static void mm8xxx_fake_battery_update(struct mm8xxx_device_info *di)
|
|||
{
|
||||
di->cache.temperature = 250;
|
||||
di->cache.avg_time_to_empty = 3600;
|
||||
di->cache.soc = 50;
|
||||
di->cache.soc = 10;
|
||||
di->cache.full_charge_capacity = 4020000;
|
||||
di->cache.flags = 0;
|
||||
di->cache.health = POWER_SUPPLY_HEALTH_GOOD;
|
||||
|
|
@ -1784,7 +1784,7 @@ static int mm8xxx_fake_battery_get_property(struct power_supply *psy,
|
|||
val->intval = POWER_SUPPLY_STATUS_DISCHARGING;
|
||||
break;
|
||||
case POWER_SUPPLY_PROP_VOLTAGE_NOW:
|
||||
val->intval = 3800 * 1000;
|
||||
val->intval = 4200 * 1000;
|
||||
break;
|
||||
case POWER_SUPPLY_PROP_PRESENT:
|
||||
val->intval = 1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue