]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
gpiolib: introduce devm_fwnode_gpiod_get_optional() wrapper
authorStefan Kerkmann <s.kerkmann@pengutronix.de>
Mon, 26 Jan 2026 14:27:47 +0000 (15:27 +0100)
committerBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Tue, 27 Jan 2026 09:13:37 +0000 (10:13 +0100)
commit364713741ca19b8f6a506d073af1deff5b2d124a
tree5a6aba2d180cc5b41c2a88f899d78b157eeb22a7
parent3a6a36a3fc4e18e202eaf6c258553b5a17b91677
gpiolib: introduce devm_fwnode_gpiod_get_optional() wrapper

The helper makes it easier to handle optional GPIOs and simplifies the
error handling code.

Signed-off-by: Stefan Kerkmann <s.kerkmann@pengutronix.de>
Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
Reviewed-by: Matti Vaittinen <mazziesaccount@gmail.com>
Link: https://lore.kernel.org/r/20260126-gpio-devm_fwnode_gpiod_get_optional-v2-1-ec34f8e35077@pengutronix.de
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
include/linux/gpio/consumer.h