Commit 918446c9 authored by Priit Laes's avatar Priit Laes Committed by Mark Brown

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: d29f54df ("regulator: axp20x: add support for set_ramp_delay for AXP209")
Signed-off-by: default avatarPriit Laes <plaes@plaes.org>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent fc401cb9
......@@ -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 |
......
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