regulator: s5m8767: Convert to GPIO descriptors
authorPeng Fan <peng.fan@nxp.com>
Thu, 27 Mar 2025 00:49:45 +0000 (08:49 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 7 Apr 2025 11:53:34 +0000 (12:53 +0100)
commitce2eadc6f99263dd200e52f692dc7a22698c99f3
tree6a62a8d763c0bf26f01554cc22e13a8a006bcb1f
parent4e310626eb4df52a31a142c1360fead0fcbd3793
regulator: s5m8767: Convert to GPIO descriptors

Update the driver to fetch buck_gpio and buck_ds as GPIO descriptors.
Then drop the usage of 'of_gpio.h' which should be deprecated.
Based on commit 84618d5e31cf ("regulator: max8997:
Convert to GPIO descriptors") as a reference to make the changes.

With the quirk fix for s5m8767 in of_gpio_try_fixup_polarity,
the polarity will be active-high, even if exynos5250 spring DTS
wrongly use active-low polarity. So using GPIO descriptors,
it should work as before.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Acked-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://patch.msgid.link/20250327004945.563765-2-peng.fan@oss.nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/s5m8767.c