diff options
author | Mark Brown <broonie@kernel.org> | 2019-03-04 16:32:41 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-03-04 16:32:41 +0100 |
commit | c364098fe8745b08a491fb43de785806ca91ba5e (patch) | |
tree | b2bc730835033ec5e372e7aea2eec9b2c770d2ae /drivers/regulator/pv88090-regulator.c | |
parent | Linux 5.0 (diff) | |
parent | regulator: wm831x-dcdc: Fix list of wm831x_dcdc_ilim from mA to uA (diff) | |
download | linux-c364098fe8745b08a491fb43de785806ca91ba5e.tar.xz linux-c364098fe8745b08a491fb43de785806ca91ba5e.zip |
Merge branch 'regulator-5.0' into regulator-linus
Diffstat (limited to 'drivers/regulator/pv88090-regulator.c')
-rw-r--r-- | drivers/regulator/pv88090-regulator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/pv88090-regulator.c b/drivers/regulator/pv88090-regulator.c index 7a0c15957bd0..2302b0df7630 100644 --- a/drivers/regulator/pv88090-regulator.c +++ b/drivers/regulator/pv88090-regulator.c @@ -157,7 +157,7 @@ static int pv88090_set_current_limit(struct regulator_dev *rdev, int min, int i; /* search for closest to maximum */ - for (i = info->n_current_limits; i >= 0; i--) { + for (i = info->n_current_limits - 1; i >= 0; i--) { if (min <= info->current_limits[i] && max >= info->current_limits[i]) { return regmap_update_bits(rdev->regmap, |