Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 350609
b: refs/heads/master
c: c4f3422
h: refs/heads/master
i:
  350607: c95ecf7
v: v3
  • Loading branch information
Nickolai Zeldovich authored and Anton Vorontsov committed Jan 6, 2013
1 parent 4a3edaa commit a44696c
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: 00edfc65c2ce7d039ea45f1b3cc120db01ddcce9
refs/heads/master: c4f3422630464d231c14c8b9e585c23fcfe3436c
2 changes: 1 addition & 1 deletion trunk/drivers/power/da9052-battery.c
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ static unsigned char da9052_determine_vc_tbl_index(unsigned char adc_temp)
if (adc_temp > vc_tbl_ref[DA9052_VC_TBL_REF_SZ - 1])
return DA9052_VC_TBL_REF_SZ - 1;

for (i = 0; i < DA9052_VC_TBL_REF_SZ; i++) {
for (i = 0; i < DA9052_VC_TBL_REF_SZ - 1; i++) {
if ((adc_temp > vc_tbl_ref[i]) &&
(adc_temp <= DA9052_MEAN(vc_tbl_ref[i], vc_tbl_ref[i + 1])))
return i;
Expand Down

0 comments on commit a44696c

Please sign in to comment.