projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
416c29e
)
regulator: da9121: Fix index used for DT property
author
Adam Ward
<Adam.Ward.opensource@diasemi.com>
Mon, 7 Dec 2020 17:15:16 +0000
(17:15 +0000)
committer
Mark Brown
<broonie@kernel.org>
Mon, 7 Dec 2020 18:51:32 +0000
(18:51 +0000)
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>
drivers/regulator/da9121-regulator.c
patch
|
blob
|
history
diff --git
a/drivers/regulator/da9121-regulator.c
b/drivers/regulator/da9121-regulator.c
index ed68259bd9529938812b81e16fcbe120a12ecac4..9d5b02fb16579cd4497acbc54cecc9ee66fc58b8 100644
(file)
--- 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;