public inbox for linux-gpio@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] gpiolib: introduce devm_fwnode_gpiod_get_optional
@ 2026-01-23  9:51 Michael Tretter
  2026-01-23  9:51 ` [PATCH 1/2] gpiolib: introduce devm_fwnode_gpiod_get_optional() wrapper Michael Tretter
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Michael Tretter @ 2026-01-23  9:51 UTC (permalink / raw)
  To: Linus Walleij, Bartosz Golaszewski, Matti Vaittinen,
	Liam Girdwood, Mark Brown
  Cc: linux-gpio, kernel, Michael Tretter, Stefan Kerkmann

There are various helpers to simplify the handling of optional gpios.
The devm_fwnode_gpiod_get() lacks the _optional variant, and drivers
have to explicitly handle the error for optional gpios.

Introduce a devm_fwnode_gpiod_get_optional helper and simplify the
BD71815 voltage regulator driver by using this helper.

Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
---
Michael Tretter (1):
      regulator: bd71815: switch to devm_fwnode_gpiod_get_optional

Stefan Kerkmann (1):
      gpiolib: introduce devm_fwnode_gpiod_get_optional() wrapper

 drivers/regulator/bd71815-regulator.c | 15 ++++++---------
 include/linux/gpio/consumer.h         | 17 +++++++++++++++++
 2 files changed, 23 insertions(+), 9 deletions(-)
---
base-commit: c072629f05d7bca1148ab17690d7922a31423984
change-id: 20260123-gpio-devm_fwnode_gpiod_get_optional-e96227cd393b

Best regards,
-- 
Michael Tretter <m.tretter@pengutronix.de>


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2026-01-27  9:13 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-23  9:51 [PATCH 0/2] gpiolib: introduce devm_fwnode_gpiod_get_optional Michael Tretter
2026-01-23  9:51 ` [PATCH 1/2] gpiolib: introduce devm_fwnode_gpiod_get_optional() wrapper Michael Tretter
2026-01-26  7:17   ` Matti Vaittinen
2026-01-23  9:51 ` [PATCH 2/2] regulator: bd71815: switch to devm_fwnode_gpiod_get_optional Michael Tretter
2026-01-26  7:18   ` Matti Vaittinen
2026-01-26 12:08   ` Mark Brown
2026-01-26 13:50 ` [PATCH 0/2] gpiolib: introduce devm_fwnode_gpiod_get_optional Bartosz Golaszewski
2026-01-26 14:01   ` Mark Brown
2026-01-26 15:14     ` Bartosz Golaszewski
2026-01-26 15:20       ` Mark Brown
2026-01-27  9:13         ` Bartosz Golaszewski
2026-01-26 14:30   ` Michael Tretter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox