Commit 5eda8e95b7922cb9dd1343f7beece3cd78565216

Authored by Dmitry Torokhov
Committed by Mark Brown
1 parent 2418f74964

regulator: da9211: fix obtaining "enable" GPIO

This fixes 11da04af0d3b, 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 "enable"
when moving to using devm_gpiod_get_from_of_node().

Fixes: 11da04af0d3b ("regulator: da9211: Pass descriptors instead of GPIO numbers")
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Link: https://lore.kernel.org/r/20190910170246.GA56792@dtor-ws
Signed-off-by: Mark Brown <broonie@kernel.org>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/regulator/da9211-regulator.c
... ... @@ -285,7 +285,7 @@
285 285 pdata->reg_node[n] = da9211_matches[i].of_node;
286 286 pdata->gpiod_ren[n] = devm_gpiod_get_from_of_node(dev,
287 287 da9211_matches[i].of_node,
288   - "enable",
  288 + "enable-gpios",
289 289 0,
290 290 GPIOD_OUT_HIGH | GPIOD_FLAGS_BIT_NONEXCLUSIVE,
291 291 "da9211-enable");