OSDN Git Service

regulator: max77686: Pass descriptor instead of GPIO number
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 14 May 2018 08:06:26 +0000 (10:06 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 17 May 2018 06:43:00 +0000 (15:43 +0900)
commitc89c00e2b8f034891d2550df5ba6fae39f3bf563
tree2f7eaa01fcaa9ff66614107f7b4689560729d7c3
parente1739e86f0cb9c48e8745a610e6981a4e24cadad
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.

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/max77686-regulator.c