diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2014-04-15 16:18:49 +0530 |
---|---|---|
committer | Riham Haidar <rhaidar@nvidia.com> | 2014-05-06 10:50:26 -0700 |
commit | d249ced4a6c85d2191d80842f4148e9d07e35811 (patch) | |
tree | 7473d262f5e0833df244a9f902823dbc8c4b0529 /drivers/power | |
parent | 241fff98b6b9450d4ff047ba2f3a3d778cac6da4 (diff) |
power: lc709203f: report voltage/current in uV/uA
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
Diffstat (limited to 'drivers/power')
-rw-r--r-- | drivers/power/lc709203f_battery.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/power/lc709203f_battery.c b/drivers/power/lc709203f_battery.c index f31e98e4a3bb..46cf2a6ec0d6 100644 --- a/drivers/power/lc709203f_battery.c +++ b/drivers/power/lc709203f_battery.c @@ -237,7 +237,7 @@ static int lc709203f_get_property(struct power_supply *psy, 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; @@ -273,7 +273,7 @@ static int lc709203f_get_property(struct power_supply *psy, 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; |