Skip to content

Commit

Permalink
regulator: core: Ensure selector is mapped
Browse files Browse the repository at this point in the history
Clearly the testing only covered the bottom range.

Signed-off-by: Mark Brown <broonie@linaro.org>
  • Loading branch information
Mark Brown committed Jul 18, 2013
1 parent a56d66a commit 6c918d2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/regulator/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -2446,6 +2446,8 @@ int regulator_map_voltage_linear_range(struct regulator_dev *rdev,
return ret;
}

ret += range->min_sel;

break;
}

Expand Down

0 comments on commit 6c918d2

Please sign in to comment.