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>

authored by Maud Spierings and committed by Mark Brown 47a0925e dcb6fa37

Changed files
+2
drivers
+2
drivers/regulator/bd718x7-regulator.c
··· 1613 1613 step /= r1; 1614 1614 1615 1615 new[j].min = min; 1616 + new[j].min_sel = desc->linear_ranges[j].min_sel; 1617 + new[j].max_sel = desc->linear_ranges[j].max_sel; 1616 1618 new[j].step = step; 1617 1619 1618 1620 dev_dbg(dev, "%s: old range min %d, step %d\n",