summaryrefslogtreecommitdiffstats
path: root/drivers/regulator/tps65217-regulator.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2014-04-15 19:55:35 +0800
committerMark Brown <broonie@linaro.org>2014-04-18 17:21:00 +0100
commit5957ae1fdc50de61d08735d7132ae4f70ae357f7 (patch)
tree4718bf53af2b50adfdae218f4e541991cbac2f1b /drivers/regulator/tps65217-regulator.c
parent073a77d03ee88ae3a5504b3f73632841a55d60a1 (diff)
downloadlinux-5957ae1fdc50de61d08735d7132ae4f70ae357f7.tar.gz
linux-5957ae1fdc50de61d08735d7132ae4f70ae357f7.tar.bz2
linux-5957ae1fdc50de61d08735d7132ae4f70ae357f7.zip
regulator: tps65217: Use regulator_map_voltage_ascend for LDO1
The voltages in LDO1_VSEL_table are in ascendant order, so use regulator_map_voltage_ascend. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/regulator/tps65217-regulator.c')
-rw-r--r--drivers/regulator/tps65217-regulator.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/regulator/tps65217-regulator.c b/drivers/regulator/tps65217-regulator.c
index 8482f6ba08a1..f7ed20a5a8b9 100644
--- a/drivers/regulator/tps65217-regulator.c
+++ b/drivers/regulator/tps65217-regulator.c
@@ -134,6 +134,7 @@ static struct regulator_ops tps65217_pmic_ldo1_ops = {
.get_voltage_sel = regulator_get_voltage_sel_regmap,
.set_voltage_sel = tps65217_pmic_set_voltage_sel,
.list_voltage = regulator_list_voltage_table,
+ .map_voltage = regulator_map_voltage_ascend,
};
static const struct regulator_desc regulators[] = {