Skip to content

Commit

Permalink
regulator: lp8755: Provide map_voltage()
Browse files Browse the repository at this point in the history
Improve performance when setting voltages by avoiding a scan through the
selectors when we can simply calculate the selector we want.

Signed-off-by: Mark Brown <broonie@linaro.org>
  • Loading branch information
Mark Brown committed Jul 2, 2013
1 parent 8bb495e commit 56a942e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/regulator/lp8755.c
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ static int lp8755_buck_set_ramp(struct regulator_dev *rdev, int ramp)
}

static struct regulator_ops lp8755_buck_ops = {
.map_voltage = regulator_map_voltage_linear,
.list_voltage = regulator_list_voltage_linear,
.set_voltage_sel = regulator_set_voltage_sel_regmap,
.get_voltage_sel = regulator_get_voltage_sel_regmap,
Expand Down

0 comments on commit 56a942e

Please sign in to comment.