pinctrl: cy8c95x0: switch to using devm_regulator_get_enable()
authorAndy Shevchenko <andy.shevchenko@gmail.com>
Sun, 10 Nov 2024 20:59:42 +0000 (22:59 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 13 Nov 2024 13:18:06 +0000 (14:18 +0100)
commitc13411c6fae68f8e4b35d111d955eaa1d49a8f5f
tree9fa30a8ad82e98a7cf0f106dfd61cc37e8de44fe
parentb7e9fc3361c3f0836833dc2edba3dfef054a338a
pinctrl: cy8c95x0: switch to using devm_regulator_get_enable()

The driver does not actively manage regulator state past probe() time,
so we can use devm_regulator_get_enable() to simplify the code.

Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/20241110210040.18918-3-andy.shevchenko@gmail.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-cy8c95x0.c