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)
commite7d2be696faa3c8add5b21006ad8fec6b6ed85f1
tree13a8e25768aba026af97574d41b5bf41630362f2
parent910adc0e1bf50cc4c9eddf1d8764e6fe4055adf4
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