Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 252141
b: refs/heads/master
c: 3af98a8
h: refs/heads/master
i:
  252139: 71c1d76
v: v3
  • Loading branch information
Paul Parsons authored and Anton Vorontsov committed May 20, 2011
1 parent 57ee4d5 commit 15914fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f17ef9b2dade4d7afb605465ef1a926fdfc1a4cc
refs/heads/master: 3af98a8f39dee8ffb93a93e4145276d58e66e48f
2 changes: 1 addition & 1 deletion trunk/drivers/power/ds2760_battery.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ static int ds2760_battery_read_status(struct ds2760_device_info *di)

scale[0] = di->full_active_uAh;
for (i = 1; i < 5; i++)
scale[i] = scale[i - 1] + di->raw[DS2760_ACTIVE_FULL + 2 + i];
scale[i] = scale[i - 1] + di->raw[DS2760_ACTIVE_FULL + 1 + i];

di->full_active_uAh = battery_interpolate(scale, di->temp_C / 10);
di->full_active_uAh *= 1000; /* convert to µAh */
Expand Down

0 comments on commit 15914fb

Please sign in to comment.