summaryrefslogtreecommitdiffstats
path: root/drivers/regulator/wm8350-regulator.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2012-06-03 17:12:16 +0200
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-06-03 21:08:54 +0200
commitfcbb71f6f8084b74fef54e40c9e515105ccc4e6e (patch)
tree05097996d6f61b16c59265d9829462a9f1fe6736 /drivers/regulator/wm8350-regulator.c
parentregulator: Change db8500-prcmu match names to reflect Device Tree (diff)
downloadlinux-fcbb71f6f8084b74fef54e40c9e515105ccc4e6e.tar.xz
linux-fcbb71f6f8084b74fef54e40c9e515105ccc4e6e.zip
regulator: wm8350: Use regulator_map_voltage_linear for wm8350_dcdc_ops
wm8350_dcdc_ops uses simple linear voltage maps. Thus use regulator_map_voltage_linear is more efficient than using the default regulator_map_voltage_iterate. Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/regulator/wm8350-regulator.c')
-rw-r--r--drivers/regulator/wm8350-regulator.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/regulator/wm8350-regulator.c b/drivers/regulator/wm8350-regulator.c
index a618284fc45e..33c37f9c0e41 100644
--- a/drivers/regulator/wm8350-regulator.c
+++ b/drivers/regulator/wm8350-regulator.c
@@ -1036,6 +1036,7 @@ static struct regulator_ops wm8350_dcdc_ops = {
.set_voltage_sel = regulator_set_voltage_sel_regmap,
.get_voltage_sel = regulator_get_voltage_sel_regmap,
.list_voltage = regulator_list_voltage_linear,
+ .map_voltage = regulator_map_voltage_linear,
.enable = regulator_enable_regmap,
.disable = regulator_disable_regmap,
.is_enabled = regulator_is_enabled_regmap,