diff options
author | Axel Lin <axel.lin@gmail.com> | 2012-05-31 11:40:22 +0200 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-06-03 14:25:05 +0200 |
commit | 27eeabb7a1000de974e45cd007b3f5324dcee490 (patch) | |
tree | a4d2028aa4f082c5fd19ee78d98e280fb668fd86 /drivers/regulator/wm8400-regulator.c | |
parent | regulator: wm831x-ldo: Use regulator_map_voltage_linear for wm831x_alive_ldo_ops (diff) | |
download | linux-27eeabb7a1000de974e45cd007b3f5324dcee490.tar.xz linux-27eeabb7a1000de974e45cd007b3f5324dcee490.zip |
regulator: wm8400: Use regulator_map_voltage_linear for wm8400_dcdc_ops
wm8400_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/wm8400-regulator.c')
-rw-r--r-- | drivers/regulator/wm8400-regulator.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/regulator/wm8400-regulator.c b/drivers/regulator/wm8400-regulator.c index 69a2b7ce5e4a..f365795d51c2 100644 --- a/drivers/regulator/wm8400-regulator.c +++ b/drivers/regulator/wm8400-regulator.c @@ -152,6 +152,7 @@ static struct regulator_ops wm8400_dcdc_ops = { .enable = regulator_enable_regmap, .disable = regulator_disable_regmap, .list_voltage = regulator_list_voltage_linear, + .map_voltage = regulator_map_voltage_linear, .get_voltage_sel = regulator_get_voltage_sel_regmap, .set_voltage_sel = regulator_set_voltage_sel_regmap, .get_mode = wm8400_dcdc_get_mode, |