Commit 4cac29b8 authored by Kalle Niemi's avatar Kalle Niemi Committed by Mark Brown

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: default avatarKalle Niemi <kaleposti@gmail.com>
Fixes: 1aad3900 ("regulator: Support ROHM BD71815 regulators")
Reviewed-by: default avatarMatti Vaittinen <mazziesaccount@gmail.com>
Link: https://lore.kernel.org/r/ZmmJXtuVJU6RgQAH@latitude5580Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 3f60497c
...@@ -256,7 +256,7 @@ static int buck12_set_hw_dvs_levels(struct device_node *np, ...@@ -256,7 +256,7 @@ static int buck12_set_hw_dvs_levels(struct device_node *np,
* 10: 2.50mV/usec 10mV 4uS * 10: 2.50mV/usec 10mV 4uS
* 11: 1.25mV/usec 10mV 8uS * 11: 1.25mV/usec 10mV 8uS
*/ */
static const unsigned int bd7181x_ramp_table[] = { 1250, 2500, 5000, 10000 }; static const unsigned int bd7181x_ramp_table[] = { 10000, 5000, 2500, 1250 };
static int bd7181x_led_set_current_limit(struct regulator_dev *rdev, static int bd7181x_led_set_current_limit(struct regulator_dev *rdev,
int min_uA, int max_uA) int min_uA, int max_uA)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment