aboutsummaryrefslogtreecommitdiff
path: root/drivers/regulator/pf8x00-regulator.c
diff options
context:
space:
mode:
authorGravatar Axel Lin <axel.lin@ingics.com> 2021-02-16 14:01:28 +0800
committerGravatar Mark Brown <broonie@kernel.org> 2021-03-10 12:47:46 +0000
commit1e50433c5705c7e5d6733458e387866289f9b544 (patch)
treed0f40f4029fec035528831a5e1967ef1f1c3dc05 /drivers/regulator/pf8x00-regulator.c
parentregulator: spmi: Add support for ULT LV_P50 and ULT P300 (diff)
downloadlinux-1e50433c5705c7e5d6733458e387866289f9b544.tar.gz
linux-1e50433c5705c7e5d6733458e387866289f9b544.tar.bz2
linux-1e50433c5705c7e5d6733458e387866289f9b544.zip
regulator: pf8x00: Use regulator_map_voltage_ascend for pf8x00_buck7_ops
The voltages in pf8x00_sw7_voltages are in ascendant order, so use regulator_map_voltage_ascend. Signed-off-by: Axel Lin <axel.lin@ingics.com> Reviewed-by: Jagan Teki <jagan@amarulasolutions.com> Reviewed-by: Adrien Grassein <adrien.grassein@gmail.com> Link: https://lore.kernel.org/r/20210216060128.126938-1-axel.lin@ingics.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/pf8x00-regulator.c')
-rw-r--r--drivers/regulator/pf8x00-regulator.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/regulator/pf8x00-regulator.c b/drivers/regulator/pf8x00-regulator.c
index 9b28bd63208d..5d319fb81288 100644
--- a/drivers/regulator/pf8x00-regulator.c
+++ b/drivers/regulator/pf8x00-regulator.c
@@ -359,6 +359,7 @@ static const struct regulator_ops pf8x00_buck7_ops = {
.disable = regulator_disable_regmap,
.is_enabled = regulator_is_enabled_regmap,
.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,
.get_current_limit = regulator_get_current_limit_regmap,