aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2013-07-02 18:57:35 -0400
committerMark Brown <broonie@linaro.org>2013-07-02 18:59:39 -0400
commit56a942e9315877b8a9a3d2482d4c3b0da840d713 (patch)
tree0078999263cddd86bdd430b3dd7652ae43e926fe
parent8bb495e3f02401ee6f76d1b1d77f3ac9f079e376 (diff)
regulator: lp8755: Provide map_voltage()
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>
-rw-r--r--drivers/regulator/lp8755.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/regulator/lp8755.c b/drivers/regulator/lp8755.c
index f0f6ea05065b..e29634148ed2 100644
--- a/drivers/regulator/lp8755.c
+++ b/drivers/regulator/lp8755.c
@@ -229,6 +229,7 @@ err_i2c:
229} 229}
230 230
231static struct regulator_ops lp8755_buck_ops = { 231static struct regulator_ops lp8755_buck_ops = {
232 .map_voltage = regulator_map_voltage_linear,
232 .list_voltage = regulator_list_voltage_linear, 233 .list_voltage = regulator_list_voltage_linear,
233 .set_voltage_sel = regulator_set_voltage_sel_regmap, 234 .set_voltage_sel = regulator_set_voltage_sel_regmap,
234 .get_voltage_sel = regulator_get_voltage_sel_regmap, 235 .get_voltage_sel = regulator_get_voltage_sel_regmap,