]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
pinctrl: aw9523: use enable for regulator
authorRosen Penev <rosenp@gmail.com>
Tue, 1 Oct 2024 21:27:23 +0000 (14:27 -0700)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 2 Oct 2024 13:50:00 +0000 (15:50 +0200)
commit38e2d33f134055ce377b69fe5ae181881d73d415
tree3ac5acee24accc16d9b213155116ae6661e5596f
parentd1c7bf9cb31a8e3868c5eaf3ec05b79aba4d2e33
pinctrl: aw9523: use enable for regulator

devm_regulator_get_enable_optional can be used to simplify the logic
here.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://lore.kernel.org/20241001212724.309320-2-rosenp@gmail.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-aw9523.c