]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
regulator: bd718x7: Fix voltages scaled by resistor divider
authorMaud Spierings <maudspierings@gocontroll.com>
Thu, 30 Oct 2025 06:35:38 +0000 (07:35 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 30 Oct 2025 11:30:23 +0000 (11:30 +0000)
commit47a0925ee4bd2689f0aef4dbd67dd46442fe1ca2
tree07d2b4e54b9bbd847e36b9a2aa706f339467e333
parentdcb6fa37fd7bc9c3d2b066329b0d27dedf8becaa
regulator: bd718x7: Fix voltages scaled by resistor divider

The .min_sel and .max_sel fields remained uninitialized in the new
linear_range, causing an error further down the line. Copy the old
values of these fields to the new one as they represent the range of
register values, which does not change.

Fixes: d2ad981151b3a ("regulator: bd718x7: Support external connection to scale voltages")
Signed-off-by: Maud Spierings <maudspierings@gocontroll.com>
Reviewed-by: Matti Vaittinen <mazziesaccount@gmail.com>
Link: https://patch.msgid.link/20251030-mini_iv-v3-2-ef56c4d9f219@gocontroll.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/bd718x7-regulator.c