regulator: hi6421v600: Use regulator_map_voltage_ascend
authorAxel Lin <axel.lin@ingics.com>
Thu, 10 Jun 2021 13:41:28 +0000 (21:41 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 14 Jun 2021 14:04:59 +0000 (15:04 +0100)
commit00430f71b2b18e42ba3d733cbd2d725ec5b2ca80
treef48eda1e97e96ac6a848c4f2f53dc25ba87ff8d2
parent23f95199b6446f828bf879ca316f388893435faa
regulator: hi6421v600: Use regulator_map_voltage_ascend

All the voltage tables have entries in ascendant order, so use
regulator_map_voltage_ascend to speed up the mapping.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Link: https://lore.kernel.org/r/20210610134128.2477821-1-axel.lin@ingics.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/hi6421v600-regulator.c