]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: lm363x: Pass descriptor instead of GPIO number
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 14 May 2018 08:06:27 +0000 (10:06 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 24 May 2018 15:50:28 +0000 (16:50 +0100)
commit80c454286505b58499c4c23459d372392ba0d420
tree675da1e01010ec20d169fedb15e269d50e44fe12
parentfdd037c8c234e145c6b980ea9e64b6cd4f1f18e6
regulator: lm363x: Pass descriptor instead of GPIO number

Instead of passing a global GPIO number, pass a descriptor looked
up with the standard devm_gpiod_get_index_optional() call.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/lm363x-regulator.c