regulator: richtek,rt4801: parse GPIOs per regulator
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Mon, 25 Apr 2022 07:24:55 +0000 (09:24 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 25 Apr 2022 13:00:47 +0000 (14:00 +0100)
commit6963569103c02b22076da245b19bd081d8da8f9e
tree112148943823e5e15e210858d90459805dc3bedd
parenta498db69dc6d7511d76a4f04ec19c5e378db1c3b
regulator: richtek,rt4801: parse GPIOs per regulator

Having one enable-gpios property for all regulators is discouraged and
instead, similarly to regulator core ena_gpiod feature, each GPIO should
be present in each regulator node.  Add support for parsing such GPIOs,
keeping backwards compatibility.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Tested-by: ChiYuan Huang <cy_huang@richtek.com>
Link: https://lore.kernel.org/r/20220425072455.27356-3-krzysztof.kozlowski@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/rt4801-regulator.c