diff options
author | Priit Laes <plaes@plaes.org> | 2018-12-14 23:54:07 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-12-17 15:26:34 +0300 |
commit | 918446c96595636be81a224bf663b0f4e669aad7 (patch) | |
tree | 6c1bcd9c5ac3949cfbf6d954331b38e58e0428f7 /drivers/regulator | |
parent | fc401cb98a736fa010aeaf863618a904ca70ba2c (diff) | |
download | linux-918446c96595636be81a224bf663b0f4e669aad7.tar.xz |
regulator: axp20x: fix set_ramp_delay for AXP209/dcdc2
Initial commit of set_ramp_delay feature was missing an assignment which
should have populated slew_rate table for dcdc2 regulator. Add it.
Fixes: d29f54df8b16 ("regulator: axp20x: add support for set_ramp_delay for AXP209")
Signed-off-by: Priit Laes <plaes@plaes.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator')
-rw-r--r-- | drivers/regulator/axp20x-regulator.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/regulator/axp20x-regulator.c b/drivers/regulator/axp20x-regulator.c index e8a895b81c90..48af859fd053 100644 --- a/drivers/regulator/axp20x-regulator.c +++ b/drivers/regulator/axp20x-regulator.c @@ -378,6 +378,7 @@ static int axp20x_set_ramp_delay(struct regulator_dev *rdev, int ramp) switch (axp20x->variant) { case AXP209_ID: if (desc->id == AXP20X_DCDC2) { + slew_rates = axp209_dcdc2_ldo3_slew_rates; rate_count = ARRAY_SIZE(axp209_dcdc2_ldo3_slew_rates); reg = AXP20X_DCDC2_LDO3_V_RAMP; mask = AXP20X_DCDC2_LDO3_V_RAMP_DCDC2_RATE_MASK | |