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

regulator: lp872x: 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
a32f9e02 3bdf5992

+3
+3
drivers/regulator/lp872x.c
··· 478 478 479 479 static struct regulator_ops lp872x_ldo_ops = { 480 480 .list_voltage = regulator_list_voltage_table, 481 + .map_voltage = regulator_map_voltage_ascend, 481 482 .set_voltage_sel = regulator_set_voltage_sel_regmap, 482 483 .get_voltage_sel = regulator_get_voltage_sel_regmap, 483 484 .enable = regulator_enable_regmap, ··· 489 488 490 489 static struct regulator_ops lp8720_buck_ops = { 491 490 .list_voltage = regulator_list_voltage_table, 491 + .map_voltage = regulator_map_voltage_ascend, 492 492 .set_voltage_sel = lp872x_buck_set_voltage_sel, 493 493 .get_voltage_sel = lp872x_buck_get_voltage_sel, 494 494 .enable = regulator_enable_regmap, ··· 502 500 503 501 static struct regulator_ops lp8725_buck_ops = { 504 502 .list_voltage = regulator_list_voltage_table, 503 + .map_voltage = regulator_map_voltage_ascend, 505 504 .set_voltage_sel = lp872x_buck_set_voltage_sel, 506 505 .get_voltage_sel = lp872x_buck_get_voltage_sel, 507 506 .enable = regulator_enable_regmap,