From 0143ab2b86e0b75828ea4bd8e9aeac22e03f91c6 Mon Sep 17 00:00:00 2001 From: Mark Brown Date: Tue, 28 Apr 2009 11:09:38 +0100 Subject: [PATCH] --- yaml --- r: 144271 b: refs/heads/master c: 3e59091828ed5406c879b899b4257fcef7271e2c h: refs/heads/master i: 144269: ef10ef564df9d15c0522aaf0e6b3b9681ef78207 144267: 6bc22dd1bc7ae58c1fe8bbbea32d81f63f696a33 144263: 67fe76e8f6bc780f322e3883c1639ea2e11b5ddd 144255: 8bf78026ff1ab035d302b1b6ef9fc99854e96c73 v: v3 --- [refs] | 2 +- trunk/drivers/regulator/core.c | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 4b7c1b2a66fe..e307abf11acf 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 030853b7abdd6effb9cb44f29e60d1d7a9592210 +refs/heads/master: 3e59091828ed5406c879b899b4257fcef7271e2c diff --git a/trunk/drivers/regulator/core.c b/trunk/drivers/regulator/core.c index 2f14c16f58c3..98c3a74e9949 100644 --- a/trunk/drivers/regulator/core.c +++ b/trunk/drivers/regulator/core.c @@ -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 */