aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/power/ds2760_battery.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/ds2760_battery.c b/drivers/power/ds2760_battery.c
index e534290f3256..aa60e3791754 100644
--- a/drivers/power/ds2760_battery.c
+++ b/drivers/power/ds2760_battery.c
@@ -186,7 +186,7 @@ static int ds2760_battery_read_status(struct ds2760_device_info *di)
186 186
187 scale[0] = di->full_active_uAh; 187 scale[0] = di->full_active_uAh;
188 for (i = 1; i < 5; i++) 188 for (i = 1; i < 5; i++)
189 scale[i] = scale[i - 1] + di->raw[DS2760_ACTIVE_FULL + 2 + i]; 189 scale[i] = scale[i - 1] + di->raw[DS2760_ACTIVE_FULL + 1 + i];
190 190
191 di->full_active_uAh = battery_interpolate(scale, di->temp_C / 10); 191 di->full_active_uAh = battery_interpolate(scale, di->temp_C / 10);
192 di->full_active_uAh *= 1000; /* convert to µAh */ 192 di->full_active_uAh *= 1000; /* convert to µAh */