Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 144271
b: refs/heads/master
c: 3e59091
h: refs/heads/master
i:
  144269: ef10ef5
  144267: 6bc22dd
  144263: 67fe76e
  144255: 8bf7802
v: v3
  • Loading branch information
Mark Brown authored and Liam Girdwood committed Apr 28, 2009
1 parent 7edcc85 commit 0143ab2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 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: 030853b7abdd6effb9cb44f29e60d1d7a9592210
refs/heads/master: 3e59091828ed5406c879b899b4257fcef7271e2c
7 changes: 5 additions & 2 deletions trunk/drivers/regulator/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -703,10 +703,13 @@ static int set_machine_constraints(struct regulator_dev *rdev,
int cmin = constraints->min_uV;
int cmax = constraints->max_uV;

/* it's safe to autoconfigure fixed-voltage supplies */
/* it's safe to autoconfigure fixed-voltage supplies
and the constraints are used by list_voltage. */
if (count == 1 && !cmin) {
cmin = INT_MIN;
cmin = 1;
cmax = INT_MAX;
constraints->min_uV = cmin;
constraints->max_uV = cmax;
}

/* voltage constraints are optional */
Expand Down

0 comments on commit 0143ab2

Please sign in to comment.