aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2014-04-15 07:58:42 -0400
committerMark Brown <broonie@linaro.org>2014-06-01 08:42:42 -0400
commitb88703567b6ca3fc183b22eb5e852b4bf5679d72 (patch)
tree7ca0ebe03917c3d792ecadb86b275d91e11cec09
parenta6016c523ef2f86d4ec60b87b480dd1a2c5ae33a (diff)
regulator: axp20x: Use regulator_map_voltage_ascend for LDO4
The voltages in axp20x_ldo4_data 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>
-rw-r--r--drivers/regulator/axp20x-regulator.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/regulator/axp20x-regulator.c b/drivers/regulator/axp20x-regulator.c
index 61ae4d4fbdd0..004aadb7bcc1 100644
--- a/drivers/regulator/axp20x-regulator.c
+++ b/drivers/regulator/axp20x-regulator.c
@@ -111,6 +111,7 @@ static struct regulator_ops axp20x_ops_table = {
111 .set_voltage_sel = regulator_set_voltage_sel_regmap, 111 .set_voltage_sel = regulator_set_voltage_sel_regmap,
112 .get_voltage_sel = regulator_get_voltage_sel_regmap, 112 .get_voltage_sel = regulator_get_voltage_sel_regmap,
113 .list_voltage = regulator_list_voltage_table, 113 .list_voltage = regulator_list_voltage_table,
114 .map_voltage = regulator_map_voltage_ascend,
114 .enable = regulator_enable_regmap, 115 .enable = regulator_enable_regmap,
115 .disable = regulator_disable_regmap, 116 .disable = regulator_disable_regmap,
116 .is_enabled = regulator_is_enabled_regmap, 117 .is_enabled = regulator_is_enabled_regmap,