Skip to contentSkip to conversation

regulator: wm8350: Use regulator_map_voltage_linear for wm8350_dcdc_ops

PATCH New Axel Lin 1 participant 1 message Jun 3, 2012

Subsystems (2)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 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.

---
 drivers/regulator/wm8350-regulator.c |    1 +
 1 file changed, 1 insertion(+)
drivers/regulator/wm8350-regulator.c +1 -0
index a618284..33c37f9 100644
@@ -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,
Signature · 1 line
1.7.9.5