Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

regulator: lp8788-buck: 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 <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

authored by

Axel Lin and committed by
Mark Brown
6dcbc200 a32f9e02

+2
+2
drivers/regulator/lp8788-buck.c
··· 346 346 347 347 static struct regulator_ops lp8788_buck12_ops = { 348 348 .list_voltage = regulator_list_voltage_table, 349 + .map_voltage = regulator_map_voltage_ascend, 349 350 .set_voltage_sel = lp8788_buck12_set_voltage_sel, 350 351 .get_voltage_sel = lp8788_buck12_get_voltage_sel, 351 352 .enable = regulator_enable_regmap, ··· 359 358 360 359 static struct regulator_ops lp8788_buck34_ops = { 361 360 .list_voltage = regulator_list_voltage_table, 361 + .map_voltage = regulator_map_voltage_ascend, 362 362 .set_voltage_sel = regulator_set_voltage_sel_regmap, 363 363 .get_voltage_sel = regulator_get_voltage_sel_regmap, 364 364 .enable = regulator_enable_regmap,