Commit 2418f749 authored by Dmitry Torokhov's avatar Dmitry Torokhov Committed by Mark Brown

regulator: max77686: fix obtaining "maxim,ena" GPIO

This fixes 96392c3d, as devm_gpiod_get_from_of_node() does
not do translation "con-id" -> "con-id-gpios" that our bindings expects,
and therefore it was wrong to change connection ID to be simply
"maxim,ena" when moving to using devm_gpiod_get_from_of_node().

Fixes: 96392c3d ("regulator: max77686: Pass descriptor instead of GPIO number")
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
Link: https://lore.kernel.org/r/20190910170050.GA55530@dtor-wsSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 3ba5368d
...@@ -257,7 +257,7 @@ static int max77686_of_parse_cb(struct device_node *np, ...@@ -257,7 +257,7 @@ static int max77686_of_parse_cb(struct device_node *np,
case MAX77686_BUCK9: case MAX77686_BUCK9:
case MAX77686_LDO20 ... MAX77686_LDO22: case MAX77686_LDO20 ... MAX77686_LDO22:
config->ena_gpiod = gpiod_get_from_of_node(np, config->ena_gpiod = gpiod_get_from_of_node(np,
"maxim,ena", "maxim,ena-gpios",
0, 0,
GPIOD_OUT_HIGH | GPIOD_FLAGS_BIT_NONEXCLUSIVE, GPIOD_OUT_HIGH | GPIOD_FLAGS_BIT_NONEXCLUSIVE,
"max77686-regulator"); "max77686-regulator");
......
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