]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: max77686: fix obtaining "maxim,ena" GPIO
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 10 Sep 2019 17:00:50 +0000 (10:00 -0700)
committerMark Brown <broonie@kernel.org>
Wed, 11 Sep 2019 10:16:51 +0000 (11:16 +0100)
commit2a90a6929f4f640d4d71d2f698ee146ab7873b6e
tree14881429041599b5d8d3cb9bbb4e0c0758f2e818
parenta269e3e6b8c2ec300c085f7ea3f5634eb71e1eff
regulator: max77686: fix obtaining "maxim,ena" GPIO

This fixes c70f3c9bb9a8, 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: c70f3c9bb9a8 ("regulator: max77686: Pass descriptor instead of GPIO number")
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Link: https://lore.kernel.org/r/20190910170050.GA55530@dtor-ws
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/max77686-regulator.c