diff options
author | Axel Lin <axel.lin@ingics.com> | 2018-11-10 11:50:03 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-11-13 11:51:44 -0800 |
commit | 2e61286dc6ce10ebce17825cd61031c5fd0289db (patch) | |
tree | 56d201376162b102ded6773e7e2a06cf973c5668 /drivers/regulator/bd718x7-regulator.c | |
parent | f2b4076988a9c229dab373470b4b108ef0e106c8 (diff) |
regulator: bd718x7: Use regulator_map_voltage_ascend for buck5 and buck7
The voltages in bd718xx_3rd_nodvs_buck_volts 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@kernel.org>
Diffstat (limited to 'drivers/regulator/bd718x7-regulator.c')
-rw-r--r-- | drivers/regulator/bd718x7-regulator.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/regulator/bd718x7-regulator.c b/drivers/regulator/bd718x7-regulator.c index fff5bc4faa2c..512c936ae021 100644 --- a/drivers/regulator/bd718x7-regulator.c +++ b/drivers/regulator/bd718x7-regulator.c @@ -130,6 +130,7 @@ static struct regulator_ops bd718xx_buck_regulator_nolinear_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 = bd718xx_set_voltage_sel_restricted, .get_voltage_sel = regulator_get_voltage_sel_regmap, .set_voltage_time_sel = regulator_set_voltage_time_sel, |