]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: da9211: fix obtaining "enable" GPIO
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 10 Sep 2019 17:02:46 +0000 (10:02 -0700)
committerMark Brown <broonie@kernel.org>
Wed, 11 Sep 2019 10:17:07 +0000 (11:17 +0100)
commitc2f0c3737f362320e85249c11abe01825eda18d9
tree1cd2331d8a270e3c32fc7881b5b891a2ce34e666
parent1f0b069a4b4d3d6b6a7a8ff08ad8c5776fd61018
regulator: da9211: fix obtaining "enable" GPIO

This fixes 9e29bf25750f, 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: 9e29bf25750f ("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>
drivers/regulator/da9211-regulator.c