Skip to contentSkip to conversation

regulator: lp8755: Provide map_voltage()

PATCH New Mark Brown 1 participant 1 message Jul 2, 2013 Voltage and current regulator framework

lore
Share & tools
lore

Mark Brown

author maintainer
#0 lore raw

PATCH 1/1 regulator: lp8755: Provide map_voltage()

From: Mark Brown <[email protected]>

Improve performance when setting voltages by avoiding a scan through the selectors when we can simply calculate the selector we want.

---
 drivers/regulator/lp8755.c | 1 +
 1 file changed, 1 insertion(+)
drivers/regulator/lp8755.c +1 -0
index d9e38b4..b37ef30 100644
@@ -228,6 +228,7 @@ err_i2c:
 }
 
 static struct regulator_ops lp8755_buck_ops = {
+	.map_voltage = regulator_map_voltage_linear,
 	.list_voltage = regulator_list_voltage_linear,
 	.set_voltage_sel = regulator_set_voltage_sel_regmap,
 	.get_voltage_sel = regulator_get_voltage_sel_regmap,
Signature · 1 line
1.8.3.1