regulator: wm8400: Use regulator_map_voltage_linear for wm8400_dcdc_ops
authorAxel Lin <axel.lin@gmail.com>
Thu, 31 May 2012 09:40:22 +0000 (17:40 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 3 Jun 2012 12:25:05 +0000 (13:25 +0100)
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>
drivers/regulator/wm8400-regulator.c

index 69a2b7ce5e4a09a3dae1e606aaf3786011dd02b2..f365795d51c2c4c8aab34ffe6f37cf3ea82684c2 100644 (file)
@@ -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,
This page took 0.043646 seconds and 5 git commands to generate.