regulator: Fix voltage range selection
authorVincent Whitchurch <vincent.whitchurch@axis.com>
Mon, 11 Sep 2023 12:42:47 +0000 (14:42 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 11 Sep 2023 12:51:36 +0000 (13:51 +0100)
commit6223e073db78458f8846c380ccd224a7a73a3867
treec3dcf580fdc3af0c84731cdaf3814d063a5319ac
parent0bb80ecc33a8fb5a682236443c1e740d5c917d1d
regulator: Fix voltage range selection

Use the correct field to fix wrong voltage range selection on regulators
such as tps6287x since the blamed commit.

Fixes: 269cb04b601d ("regulator: Use bitfield values for range selectors")
Signed-off-by: Vincent Whitchurch <vincent.whitchurch@axis.com>
Link: https://lore.kernel.org/r/20230911-regulator-voltage-sel-v1-1-886eb1ade8d8@axis.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/helpers.c