Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 298581
b: refs/heads/master
c: a171e78
h: refs/heads/master
i:
  298579: 233e620
v: v3
  • Loading branch information
Axel Lin authored and Mark Brown committed Mar 28, 2012
1 parent 5b6da02 commit 6756900
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 2f2cc27f50e3d232602d3b7c972071b4a30e5e38
refs/heads/master: a171e782a97d4ba55d7fa02f9a46904288b2c229
3 changes: 2 additions & 1 deletion trunk/drivers/regulator/wm831x-dcdc.c
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,8 @@ static int wm831x_buckv_set_current_limit(struct regulator_dev *rdev,
int i;

for (i = 0; i < ARRAY_SIZE(wm831x_dcdc_ilim); i++) {
if (max_uA <= wm831x_dcdc_ilim[i])
if ((min_uA <= wm831x_dcdc_ilim[i]) &&
(wm831x_dcdc_ilim[i] <= max_uA))
break;
}
if (i == ARRAY_SIZE(wm831x_dcdc_ilim))
Expand Down

0 comments on commit 6756900

Please sign in to comment.