|
@@ -1974,7 +1974,7 @@ int regulator_is_supported_voltage(struct regulator *regulator,
|
|
if (!(rdev->constraints->valid_ops_mask & REGULATOR_CHANGE_VOLTAGE)) {
|
|
if (!(rdev->constraints->valid_ops_mask & REGULATOR_CHANGE_VOLTAGE)) {
|
|
ret = regulator_get_voltage(regulator);
|
|
ret = regulator_get_voltage(regulator);
|
|
if (ret >= 0)
|
|
if (ret >= 0)
|
|
- return (min_uV >= ret && ret <= max_uV);
|
|
|
|
|
|
+ return (min_uV <= ret && ret <= max_uV);
|
|
else
|
|
else
|
|
return ret;
|
|
return ret;
|
|
}
|
|
}
|