public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] regulator: wm831x-ldo: Use regulator_map_voltage_linear for wm831x_alive_ldo_ops
@ 2012-05-31  9:39 Axel Lin
  2012-05-31  9:40 ` [PATCH 2/2] regulator: wm8400: Use regulator_map_voltage_linear for wm8400_dcdc_ops Axel Lin
  2012-06-01 14:27 ` [PATCH 1/2] regulator: wm831x-ldo: Use regulator_map_voltage_linear for wm831x_alive_ldo_ops Mark Brown
  0 siblings, 2 replies; 3+ messages in thread
From: Axel Lin @ 2012-05-31  9:39 UTC (permalink / raw)
  To: linux-kernel; +Cc: Liam Girdwood, Mark Brown

wm831x_alive_ldo_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/wm831x-ldo.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/regulator/wm831x-ldo.c b/drivers/regulator/wm831x-ldo.c
index a9a28d8..f23d020e9 100644
--- a/drivers/regulator/wm831x-ldo.c
+++ b/drivers/regulator/wm831x-ldo.c
@@ -690,6 +690,7 @@ static int wm831x_alive_ldo_get_status(struct regulator_dev *rdev)
 
 static struct regulator_ops wm831x_alive_ldo_ops = {
 	.list_voltage = regulator_list_voltage_linear,
+	.map_voltage = regulator_map_voltage_linear,
 	.get_voltage_sel = regulator_get_voltage_sel_regmap,
 	.set_voltage = wm831x_alive_ldo_set_voltage,
 	.set_suspend_voltage = wm831x_alive_ldo_set_suspend_voltage,
-- 
1.7.9.5




^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 2/2] regulator: wm8400: Use regulator_map_voltage_linear for wm8400_dcdc_ops
  2012-05-31  9:39 [PATCH 1/2] regulator: wm831x-ldo: Use regulator_map_voltage_linear for wm831x_alive_ldo_ops Axel Lin
@ 2012-05-31  9:40 ` Axel Lin
  2012-06-01 14:27 ` [PATCH 1/2] regulator: wm831x-ldo: Use regulator_map_voltage_linear for wm831x_alive_ldo_ops Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Axel Lin @ 2012-05-31  9:40 UTC (permalink / raw)
  To: linux-kernel; +Cc: Liam Girdwood, Mark Brown

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

diff --git a/drivers/regulator/wm8400-regulator.c b/drivers/regulator/wm8400-regulator.c
index 69a2b7c..f365795 100644
--- a/drivers/regulator/wm8400-regulator.c
+++ b/drivers/regulator/wm8400-regulator.c
@@ -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,
-- 
1.7.9.5




^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/2] regulator: wm831x-ldo: Use regulator_map_voltage_linear for wm831x_alive_ldo_ops
  2012-05-31  9:39 [PATCH 1/2] regulator: wm831x-ldo: Use regulator_map_voltage_linear for wm831x_alive_ldo_ops Axel Lin
  2012-05-31  9:40 ` [PATCH 2/2] regulator: wm8400: Use regulator_map_voltage_linear for wm8400_dcdc_ops Axel Lin
@ 2012-06-01 14:27 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2012-06-01 14:27 UTC (permalink / raw)
  To: Axel Lin; +Cc: linux-kernel, Liam Girdwood

[-- Attachment #1: Type: text/plain, Size: 251 bytes --]

On Thu, May 31, 2012 at 05:39:00PM +0800, Axel Lin wrote:
> wm831x_alive_ldo_ops uses simple linear voltage maps.
> Thus use regulator_map_voltage_linear is more efficient than using the default
> regulator_map_voltage_iterate.

Applied both, thanks.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-06-01 14:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-31  9:39 [PATCH 1/2] regulator: wm831x-ldo: Use regulator_map_voltage_linear for wm831x_alive_ldo_ops Axel Lin
2012-05-31  9:40 ` [PATCH 2/2] regulator: wm8400: Use regulator_map_voltage_linear for wm8400_dcdc_ops Axel Lin
2012-06-01 14:27 ` [PATCH 1/2] regulator: wm831x-ldo: Use regulator_map_voltage_linear for wm831x_alive_ldo_ops Mark Brown

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