]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
regulator: bd71815: switch to devm_fwnode_gpiod_get_optional
authorMichael Tretter <m.tretter@pengutronix.de>
Mon, 26 Jan 2026 14:27:48 +0000 (15:27 +0100)
committerBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Tue, 27 Jan 2026 09:13:37 +0000 (10:13 +0100)
commit09b174f1a554d69b9f69f3c6c115db12c1f6d29d
treed4d6b6406706ebcc764b1ed1afbcdabf484be475
parent364713741ca19b8f6a506d073af1deff5b2d124a
regulator: bd71815: switch to devm_fwnode_gpiod_get_optional

Use the devm_fwnode_gpiod_get_optional variant to simplify the error
handling code.

Reviewed-by: Matti Vaittinen <mazziesaccount@gmail.com>
Acked-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
Link: https://lore.kernel.org/r/20260126-gpio-devm_fwnode_gpiod_get_optional-v2-2-ec34f8e35077@pengutronix.de
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
drivers/regulator/bd71815-regulator.c