diff options
author | Adam Ward <Adam.Ward.opensource@diasemi.com> | 2020-12-07 20:15:16 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-12-07 21:51:32 +0300 |
commit | 9536ce63705952be5214544e3b048c78f932e794 (patch) | |
tree | f71c8e40ac2c3fe2b1e28bdb8e454525f1fcaa14 /drivers/regulator/da9121-regulator.c | |
parent | 416c29e9ce1347ba9a4ef7aeb4f30c8d9a3ada49 (diff) | |
download | linux-9536ce63705952be5214544e3b048c78f932e794.tar.xz |
regulator: da9121: Fix index used for DT property
Signed-off-by: Adam Ward <Adam.Ward.opensource@diasemi.com>
Link: https://lore.kernel.org/r/2cf324b68d37c4059c7995e8cab5fc9a608ea65d.1607361013.git.Adam.Ward.opensource@diasemi.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/da9121-regulator.c')
-rw-r--r-- | drivers/regulator/da9121-regulator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/da9121-regulator.c b/drivers/regulator/da9121-regulator.c index ed68259bd952..9d5b02fb1657 100644 --- a/drivers/regulator/da9121-regulator.c +++ b/drivers/regulator/da9121-regulator.c @@ -381,7 +381,7 @@ static int da9121_of_parse_cb(struct device_node *np, uint32_t ripple_reg; int ret; - if (of_property_read_u32(da9121_matches[pdata->num_buck].of_node, + if (of_property_read_u32(da9121_matches[pdata->num_buck-1].of_node, "dlg,ripple-cancel", &ripple_cancel)) { if (pdata->num_buck > 1) ripple_reg = DA9xxx_REG_BUCK_BUCK2_7; |