]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite5fdfc6da14fcd4f67d50a48cec00afc9ca4efd7
tree61e26a5c3ef3706ac9a127d9daa6109f46aa882d
parent075260e7882a9a760b3e9fa5d7837d8b493797d6
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