]> git.karo-electronics.de Git - linux-beck.git/commitdiff
regulator: wm8350: Use regulator_map_voltage_linear for wm8350_dcdc_ops
authorAxel Lin <axel.lin@gmail.com>
Sun, 3 Jun 2012 15:12:16 +0000 (23:12 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 3 Jun 2012 19:08:54 +0000 (20:08 +0100)
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>
drivers/regulator/wm8350-regulator.c

index a618284fc45e57f73e5fe8f2deb65f52ff66cf3d..33c37f9c0e41763e6db92fdc565bd3dc6c558bbd 100644 (file)
@@ -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,