summaryrefslogtreecommitdiff
path: root/drivers/power/max17048_battery.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/power/max17048_battery.c')
-rw-r--r--drivers/power/max17048_battery.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/max17048_battery.c b/drivers/power/max17048_battery.c
index e6dee61cc9b4..c65855f72dba 100644
--- a/drivers/power/max17048_battery.c
+++ b/drivers/power/max17048_battery.c
@@ -177,7 +177,7 @@ static void max17048_get_vcell(struct i2c_client *client)
if (vcell < 0)
dev_err(&client->dev, "%s: err %d\n", __func__, vcell);
else
- chip->vcell = (uint16_t)vcell;
+ chip->vcell = (uint16_t)(((vcell >> 4) * 125) / 100);
}
static void max17048_get_soc(struct i2c_client *client)