regulator: s2mps11: Pass descriptor instead of GPIO number
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 14 May 2018 08:06:31 +0000 (10:06 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 17 May 2018 06:43:27 +0000 (15:43 +0900)
commit0369e02b75e6381f892e3bd45f1d8d6330d855fb
tree09cfdb3683e450cdacb304cb000a649d81e31ea7
parentc89c00e2b8f034891d2550df5ba6fae39f3bf563
regulator: s2mps11: Pass descriptor instead of GPIO number

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

This regulator supports passing platform data, but enable/sleep
regulators are looked up from the device tree exclusively, so
we can need not touch other files.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Tested-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/s2mps11.c