Skip to content

Commit 4cac29b

Browse files
KalleNiemibroonie
authored andcommitted
regulator: bd71815: fix ramp values
Ramp values are inverted. This caused wrong values written to register when ramp values were defined in device tree. Invert values in table to fix this. Signed-off-by: Kalle Niemi <kaleposti@gmail.com> Fixes: 1aad390 ("regulator: Support ROHM BD71815 regulators") Reviewed-by: Matti Vaittinen <mazziesaccount@gmail.com> Link: https://lore.kernel.org/r/ZmmJXtuVJU6RgQAH@latitude5580 Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 3f60497 commit 4cac29b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/regulator/bd71815-regulator.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ static int buck12_set_hw_dvs_levels(struct device_node *np,
256256
* 10: 2.50mV/usec 10mV 4uS
257257
* 11: 1.25mV/usec 10mV 8uS
258258
*/
259-
static const unsigned int bd7181x_ramp_table[] = { 1250, 2500, 5000, 10000 };
259+
static const unsigned int bd7181x_ramp_table[] = { 10000, 5000, 2500, 1250 };
260260

261261
static int bd7181x_led_set_current_limit(struct regulator_dev *rdev,
262262
int min_uA, int max_uA)

0 commit comments

Comments
 (0)