Commit f3cd19c3 authored by Mark Brown's avatar Mark Brown

Merge remote-tracking branch 'regulator/topic/change' into regulator-next

parents bfd9155e 8a23b4e0
......@@ -1886,7 +1886,7 @@ int regulator_can_change_voltage(struct regulator *regulator)
if (rdev->constraints &&
rdev->constraints->valid_ops_mask & REGULATOR_CHANGE_VOLTAGE &&
rdev->desc->n_voltages > 1)
(rdev->desc->n_voltages - rdev->desc->linear_min_sel) > 1)
return 1;
return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment