As per unit details for power supply, all voltage and current
should be in uV and uA respectively until specified.
Hence changing the voltage_now to uV and current_now to uA.
bug
1499795
Change-Id: I20b2d1b81ff4be7652a41d84fdd7a79efbb0f5e5
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/396752
Reviewed-on: http://git-master/r/405644
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
val->intval = chip->status;
break;
case POWER_SUPPLY_PROP_VOLTAGE_NOW:
- val->intval = chip->vcell;
+ val->intval = 1000 * chip->vcell;
break;
case POWER_SUPPLY_PROP_CAPACITY:
val->intval = chip->soc;
val->intval = 0;
ret = battery_gauge_get_battery_current(chip->bg_dev, &curr_ma);
if (!ret)
- val->intval = curr_ma;
+ val->intval = 1000 * curr_ma;
break;
default:
ret = -EINVAL;