]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/regulator/of_regulator.c
Merge tag 'hwmon-for-linus-v4.7-rc5' of git://git.kernel.org/pub/scm/linux/kernel...
[karo-tx-linux.git] / drivers / regulator / of_regulator.c
index 6b0aa80b22fd1b4817c65995dfc1424fbb3d0c31..cd828dbf9d529e6d459c9e9eae65c6d252b7a1e4 100644 (file)
@@ -45,9 +45,9 @@ static void of_get_regulation_constraints(struct device_node *np,
        /* Voltage change possible? */
        if (constraints->min_uV != constraints->max_uV)
                constraints->valid_ops_mask |= REGULATOR_CHANGE_VOLTAGE;
-       /* Only one voltage?  Then make sure it's set. */
-       if (constraints->min_uV && constraints->max_uV &&
-           constraints->min_uV == constraints->max_uV)
+
+       /* Do we have a voltage range, if so try to apply it? */
+       if (constraints->min_uV && constraints->max_uV)
                constraints->apply_uV = true;
 
        if (!of_property_read_u32(np, "regulator-microvolt-offset", &pval))