public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] regulator: aat2870: Use regulator_map_voltage_ascend
@ 2014-03-24 12:45 Axel Lin
  2014-03-26 16:53 ` Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Axel Lin @ 2014-03-24 12:45 UTC (permalink / raw)
  To: Mark Brown; +Cc: Jin Park, Liam Girdwood, linux-kernel

The voltages in aat2870_ldo_voltages table are in ascendant order, so use
regulator_map_voltage_ascend.

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

diff --git a/drivers/regulator/aat2870-regulator.c b/drivers/regulator/aat2870-regulator.c
index f70a9bf..c873ee0 100644
--- a/drivers/regulator/aat2870-regulator.c
+++ b/drivers/regulator/aat2870-regulator.c
@@ -99,6 +99,7 @@ static int aat2870_ldo_is_enabled(struct regulator_dev *rdev)
 
 static struct regulator_ops aat2870_ldo_ops = {
 	.list_voltage = regulator_list_voltage_table,
+	.map_voltage = regulator_map_voltage_ascend,
 	.set_voltage_sel = aat2870_ldo_set_voltage_sel,
 	.get_voltage_sel = aat2870_ldo_get_voltage_sel,
 	.enable = aat2870_ldo_enable,
-- 
1.8.3.2




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

* Re: [PATCH] regulator: aat2870: Use regulator_map_voltage_ascend
  2014-03-24 12:45 [PATCH] regulator: aat2870: Use regulator_map_voltage_ascend Axel Lin
@ 2014-03-26 16:53 ` Mark Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2014-03-26 16:53 UTC (permalink / raw)
  To: Axel Lin; +Cc: Jin Park, Liam Girdwood, linux-kernel

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

On Mon, Mar 24, 2014 at 08:45:38PM +0800, Axel Lin wrote:
> The voltages in aat2870_ldo_voltages table are in ascendant order, so use
> regulator_map_voltage_ascend.

Applied, thanks.

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

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

end of thread, other threads:[~2014-03-26 19:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-24 12:45 [PATCH] regulator: aat2870: Use regulator_map_voltage_ascend Axel Lin
2014-03-26 16:53 ` Mark Brown

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