2013-04-26 06:26:02

by Axel Lin

[permalink] [raw]
Subject: [PATCH] regulator: tps6524x: Use regulator_map_voltage_ascend

All regulators have ascendant voltage list in this driver.
Use regulator_map_voltage_ascend for them.

Signed-off-by: Axel Lin <[email protected]>
---
drivers/regulator/tps6524x-regulator.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/regulator/tps6524x-regulator.c b/drivers/regulator/tps6524x-regulator.c
index 843ee0a..18b67d2 100644
--- a/drivers/regulator/tps6524x-regulator.c
+++ b/drivers/regulator/tps6524x-regulator.c
@@ -572,6 +572,7 @@ static struct regulator_ops regulator_ops = {
.get_voltage_sel = get_voltage_sel,
.set_voltage_sel = set_voltage_sel,
.list_voltage = regulator_list_voltage_table,
+ .map_voltage = regulator_map_voltage_ascend,
.set_current_limit = set_current_limit,
.get_current_limit = get_current_limit,
};
--
1.7.10.4



2013-04-26 15:31:51

by Mark Brown

[permalink] [raw]
Subject: Re: [PATCH] regulator: tps6524x: Use regulator_map_voltage_ascend

On Fri, Apr 26, 2013 at 02:25:52PM +0800, Axel Lin wrote:
> All regulators have ascendant voltage list in this driver.
> Use regulator_map_voltage_ascend for them.

Applied, thanks.


Attachments:
(No filename) (182.00 B)
signature.asc (836.00 B)
Digital signature
Download all attachments