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

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

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