diff options
author | Hyongbin Kim <hyongbink@nvidia.com> | 2013-08-26 19:50:37 +0900 |
---|---|---|
committer | Gabby Lee <galee@nvidia.com> | 2013-08-26 23:09:20 -0700 |
commit | b5e18de3eebebf8a66bcdaa44b842ac9b1935b45 (patch) | |
tree | e658d71a8e8d2e401ae21f8be58646f15906d2b7 /drivers | |
parent | 50e2f7a6333ce75900995185c257d01d772173b9 (diff) |
power: max17048: correct voltage unit to uV
In framework, voltage unit is uV.
Bug 1355391
Change-Id: I8a8af62850365b298857289c5a6f0d89bf45d47b
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/266048
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/power/max17048_battery.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/power/max17048_battery.c b/drivers/power/max17048_battery.c index c3ed6715e356..8345dc7b14a6 100644 --- a/drivers/power/max17048_battery.c +++ b/drivers/power/max17048_battery.c @@ -206,7 +206,8 @@ static int max17048_get_property(struct power_supply *psy, val->intval = chip->status; break; case POWER_SUPPLY_PROP_VOLTAGE_NOW: - val->intval = chip->vcell; + /* unit is uV */ + val->intval = chip->vcell * 1000; break; case POWER_SUPPLY_PROP_CAPACITY: val->intval = chip->soc; @@ -218,7 +219,8 @@ static int max17048_get_property(struct power_supply *psy, val->intval = chip->capacity_level; break; case POWER_SUPPLY_PROP_VOLTAGE_OCV: - val->intval = max17048_get_ocv(chip); + /* unit is uV */ + val->intval = max17048_get_ocv(chip) * 1000; break; case POWER_SUPPLY_PROP_TEMP: /* show 1 places of decimals, 681 means 68.1C */ |