From: Mark Brown Date: Tue, 2 Jul 2013 22:57:35 +0000 (+0100) Subject: regulator: lp8755: Provide map_voltage() X-Git-Tag: MMI-PSA29.97-13-9~13786^2~8^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=56a942e9315877b8a9a3d2482d4c3b0da840d713;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 --- 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: } 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,