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

regulator: tps65023: 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
c4bbfbd5 2040541a

+2
+2
drivers/regulator/tps65023-regulator.c
··· 197 197 .get_voltage_sel = tps65023_dcdc_get_voltage_sel, 198 198 .set_voltage_sel = tps65023_dcdc_set_voltage_sel, 199 199 .list_voltage = regulator_list_voltage_table, 200 + .map_voltage = regulator_map_voltage_ascend, 200 201 }; 201 202 202 203 /* Operations permitted on LDOx */ ··· 208 207 .get_voltage_sel = regulator_get_voltage_sel_regmap, 209 208 .set_voltage_sel = regulator_set_voltage_sel_regmap, 210 209 .list_voltage = regulator_list_voltage_table, 210 + .map_voltage = regulator_map_voltage_ascend, 211 211 }; 212 212 213 213 static struct regmap_config tps65023_regmap_config = {