public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] regulator: pfuze100: Use regulator_map_voltage_ascend
@ 2013-07-29  7:38 Axel Lin
  2013-07-29  9:35 ` Robin Gong
  2013-07-29 11:43 ` Mark Brown
  0 siblings, 2 replies; 3+ messages in thread
From: Axel Lin @ 2013-07-29  7:38 UTC (permalink / raw)
  To: Mark Brown; +Cc: Robin Gong, Liam Girdwood, linux-kernel

All table based voltage list have ascendant order.
Use regulator_map_voltage_ascend for them.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
 drivers/regulator/pfuze100-regulator.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/regulator/pfuze100-regulator.c b/drivers/regulator/pfuze100-regulator.c
index e9e8ae3..dbb6e1a 100644
--- a/drivers/regulator/pfuze100-regulator.c
+++ b/drivers/regulator/pfuze100-regulator.c
@@ -144,6 +144,7 @@ static struct regulator_ops pfuze100_sw_regulator_ops = {
 
 static struct regulator_ops pfuze100_swb_regulator_ops = {
 	.list_voltage = regulator_list_voltage_table,
+	.map_voltage = regulator_map_voltage_ascend,
 	.set_voltage_sel = regulator_set_voltage_sel_regmap,
 	.get_voltage_sel = regulator_get_voltage_sel_regmap,
 
-- 
1.8.1.2




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

* Re: [PATCH] regulator: pfuze100: Use regulator_map_voltage_ascend
  2013-07-29  7:38 [PATCH] regulator: pfuze100: Use regulator_map_voltage_ascend Axel Lin
@ 2013-07-29  9:35 ` Robin Gong
  2013-07-29 11:43 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Robin Gong @ 2013-07-29  9:35 UTC (permalink / raw)
  To: Axel Lin; +Cc: Mark Brown, Liam Girdwood, linux-kernel

Yes, it's reasonable from performance view.
On Mon, Jul 29, 2013 at 03:38:58PM +0800, Axel Lin wrote:
> All table based voltage list have ascendant order.
> Use regulator_map_voltage_ascend for them.
> 
> Signed-off-by: Axel Lin <axel.lin@ingics.com>
> ---
>  drivers/regulator/pfuze100-regulator.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/regulator/pfuze100-regulator.c b/drivers/regulator/pfuze100-regulator.c
> index e9e8ae3..dbb6e1a 100644
> --- a/drivers/regulator/pfuze100-regulator.c
> +++ b/drivers/regulator/pfuze100-regulator.c
> @@ -144,6 +144,7 @@ static struct regulator_ops pfuze100_sw_regulator_ops = {
>  
>  static struct regulator_ops pfuze100_swb_regulator_ops = {
>  	.list_voltage = regulator_list_voltage_table,
> +	.map_voltage = regulator_map_voltage_ascend,
>  	.set_voltage_sel = regulator_set_voltage_sel_regmap,
>  	.get_voltage_sel = regulator_get_voltage_sel_regmap,
>  
> -- 
> 1.8.1.2
> 
> 
> 
> 


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

* Re: [PATCH] regulator: pfuze100: Use regulator_map_voltage_ascend
  2013-07-29  7:38 [PATCH] regulator: pfuze100: Use regulator_map_voltage_ascend Axel Lin
  2013-07-29  9:35 ` Robin Gong
@ 2013-07-29 11:43 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2013-07-29 11:43 UTC (permalink / raw)
  To: Axel Lin; +Cc: Robin Gong, Liam Girdwood, linux-kernel

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

On Mon, Jul 29, 2013 at 03:38:58PM +0800, Axel Lin wrote:
> All table based voltage list have ascendant order.
> Use regulator_map_voltage_ascend for them.

Applied, 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:[~2013-07-29 11:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-29  7:38 [PATCH] regulator: pfuze100: Use regulator_map_voltage_ascend Axel Lin
2013-07-29  9:35 ` Robin Gong
2013-07-29 11:43 ` Mark Brown

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