power: max17048: fix OCV property unit
Hyongbin Kim [Tue, 10 Sep 2013 12:25:30 +0000 (21:25 +0900)]
max17048_get_ocv() return unit is already uV.
Remove duplicate multiply.

Bug 1355391

Change-Id: I99adacf9af7f3c043ca043b2a00ce3713b4d40e1
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/272569
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sivaram Nair <sivaramn@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

drivers/power/max17048_battery.c

index b2a9c6c..8f80274 100644 (file)
@@ -204,7 +204,7 @@ static int max17048_get_property(struct power_supply *psy,
                break;
        case POWER_SUPPLY_PROP_VOLTAGE_OCV:
                /* unit is uV */
-               val->intval = max17048_get_ocv(chip) * 1000;
+               val->intval = max17048_get_ocv(chip);
                break;
        default:
        return -EINVAL;