Skip to content

Commit

Permalink
Merge remote-tracking branch 'regulator/topic/change' into regulator-…
Browse files Browse the repository at this point in the history
…next
  • Loading branch information
Mark Brown committed Dec 11, 2012
2 parents bfd9155 + 8a23b4e commit f3cd19c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/regulator/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f3cd19c

Please sign in to comment.