projects/linux·commit bfeeb4a1

Merge tag 'regulator-fix-v6.18-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator

bfeeb4a1 · Linus Torvalds <[email protected]> · 2025-11-01 10:49:12 -07:00

Pull regulator fix from Mark Brown:
 "A simple fix for a missed part of an API conversion in the bd718x7
  driver"

* tag 'regulator-fix-v6.18-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator:
  regulator: bd718x7: Fix voltages scaled by resistor divider
Commit
bfeeb4a1bdf5d255ea885f16be80968d1f31281b
Parents
963bf161 · 47a0925e

Merge commit. Changes below are compared with the first parent: 963bf161.

Changes

1 files changed · +2 −0

FileStatusAddDelContent
drivers/regulator/bd718x7-regulator.cmodified+2−0View file

drivers/regulator/bd718x7-regulator.c

View file
diff --git a/drivers/regulator/bd718x7-regulator.c b/drivers/regulator/bd718x7-regulator.c
index 022d98f..ea9c405 100644
--- a/drivers/regulator/bd718x7-regulator.c
+++ b/drivers/regulator/bd718x7-regulator.c
@@ -1613,6 +1613,8 @@ static int setup_feedback_loop(struct device *dev, struct device_node *np,
step /= r1;
new[j].min = min;
+ new[j].min_sel = desc->linear_ranges[j].min_sel;
+ new[j].max_sel = desc->linear_ranges[j].max_sel;
new[j].step = step;
dev_dbg(dev, "%s: old range min %d, step %d\n",