regulator: arizona_ldo1: Simplify arizona_ldo1_hc_set/get_voltage_sel
authorAxel Lin <axel.lin@ingics.com>
Mon, 25 Feb 2019 09:13:49 +0000 (17:13 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 26 Feb 2019 11:48:34 +0000 (11:48 +0000)
commit5db2efbe115e53153aba2e02a87c62f2e78e3102
tree613312e133384d37ae2c2a902cd976e0fb81f878
parentac227fb5bc950cf97b0d50ab7ee2c8aa7cd65441
regulator: arizona_ldo1: Simplify arizona_ldo1_hc_set/get_voltage_sel

Setup .vsel_reg and .vsel_mask then we can use the standard
set/get_voltage_sel_regmap helpers to simplify the code.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/arizona-ldo1.c