regulator: max77686: Pass descriptor instead of GPIO number
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 15 Nov 2018 08:01:19 +0000 (09:01 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 15 Nov 2018 19:42:27 +0000 (11:42 -0800)
commit96392c3d8ca47f6654dfa40680c926b1a3419754
tree61e26a5c3ef3706ac9a127d9daa6109f46aa882d
parent1d2f46814d20a55c45ac171739b6885826e0c793
regulator: max77686: Pass descriptor instead of GPIO number

Instead of passing a global GPIO number, pass a descriptor looked
up from the device tree configuration node.

Tested on Odroid U3 (with max77686 although not using any GPIOs
for regulators, so at least default paths are not broken).

Cc: Chanwoo Choi <cw00.choi@samsung.com>
Cc: Krzysztof Kozlowski <krzk@kernel.org>
Cc: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Tested-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/max77686-regulator.c