regulator: tps6287x: Fix n_voltages
authorVincent Whitchurch <vincent.whitchurch@axis.com>
Tue, 29 Aug 2023 14:04:12 +0000 (16:04 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 29 Aug 2023 18:17:25 +0000 (19:17 +0100)
commitc69290557c7571dff3d995fa27619b965915e8a1
treeb0544485168b6fcc3b63dc37545acc9b849f5fb1
parentb96c22476ff4bc3459933f87ba52cbb7910ffc6b
regulator: tps6287x: Fix n_voltages

There are 256 possible voltage settings for each range, not 256 possible
voltage settings in total.

Fixes: 15a1cd245d5b ("regulator: tps6287x: Fix missing .n_voltages setting")
Signed-off-by: Vincent Whitchurch <vincent.whitchurch@axis.com
Link: https://lore.kernel.org/r/20230829-tps-voltages-v1-1-7ba4f958a194@axis.com
Signed-off-by: Mark Brown <broonie@kernel.org
drivers/regulator/tps6287x-regulator.c