The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH] regulator: wm8350: Use regulator_map_voltage_linear for wm8350_dcdc_ops
@ 2012-06-03 15:12 Axel Lin
  0 siblings, 0 replies; only message in thread
From: Axel Lin @ 2012-06-03 15:12 UTC (permalink / raw)
  To: linux-kernel; +Cc: Liam Girdwood, Mark Brown

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>
---
 drivers/regulator/wm8350-regulator.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/regulator/wm8350-regulator.c b/drivers/regulator/wm8350-regulator.c
index a618284..33c37f9 100644
--- a/drivers/regulator/wm8350-regulator.c
+++ b/drivers/regulator/wm8350-regulator.c
@@ -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,
-- 
1.7.9.5




^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-06-03 15:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-03 15:12 [PATCH] regulator: wm8350: Use regulator_map_voltage_linear for wm8350_dcdc_ops Axel Lin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox