Message ID | 50A07E8B.20902@linaro.org |
---|---|
State | Superseded |
Headers | show |
On Mon, Nov 12, 2012 at 10:13:55AM +0530, Tushar Behera wrote: > In that case, we should modify the test condition as following. > Currently it passes success when the regulator voltage is less than both > min_uV and max_uV. If ok, I will send another patch for this. Documentation/SubmittingPatches...
diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index 1a35251..e90e5c3 100644 --- a/drivers/regulator/core.c +++ b/drivers/regulator/core.c @@ -1974,7 +1974,7 @@ int regulator_is_supported_voltage(struct regulator *regulator, if (!(rdev->constraints->valid_ops_mask & REGULATOR_CHANGE_VOLTAGE)) { ret = regulator_get_voltage(regulator); if (ret >= 0) - return (min_uV >= ret && ret <= max_uV); + return (ret >= min_uV && ret <= max_uV); else