Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 272400
b: refs/heads/master
c: e69c499
h: refs/heads/master
v: v3
  • Loading branch information
Axel Lin authored and Liam Girdwood committed Aug 8, 2011
1 parent 4cb2174 commit ef90f19
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: 99cd25ce10249c7f9d7172fe2ed266b023cd3323
refs/heads/master: e69c499790a35ef5ad164fd99f0b691e138640da
2 changes: 1 addition & 1 deletion trunk/drivers/regulator/max8649.c
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ static int max8649_enable_time(struct regulator_dev *rdev)
ret = (ret & MAX8649_RAMP_MASK) >> 5;
rate = (32 * 1000) >> ret; /* uV/uS */

return (voltage / rate);
return DIV_ROUND_UP(voltage, rate);
}

static int max8649_set_mode(struct regulator_dev *rdev, unsigned int mode)
Expand Down

0 comments on commit ef90f19

Please sign in to comment.