public inbox for linux-gpio@vger.kernel.org
 help / color / mirror / Atom feed
From: Michael Tretter <m.tretter@pengutronix.de>
To: Bartosz Golaszewski <brgl@kernel.org>
Cc: Linus Walleij <linusw@kernel.org>,
	Matti Vaittinen <mazziesaccount@gmail.com>,
	Liam Girdwood <lgirdwood@gmail.com>,
	Mark Brown <broonie@kernel.org>,
	linux-gpio@vger.kernel.org, kernel@pengutronix.de,
	Stefan Kerkmann <s.kerkmann@pengutronix.de>
Subject: Re: [PATCH 0/2] gpiolib: introduce devm_fwnode_gpiod_get_optional
Date: Mon, 26 Jan 2026 15:30:03 +0100	[thread overview]
Message-ID: <aXd6ayOa4d4mi61h@pengutronix.de> (raw)
In-Reply-To: <CAMRc=MebQF3P=Tp+65A6o4TDz2txYH0c832mbTV+250-6JRi=g@mail.gmail.com>

On Mon, 26 Jan 2026 14:50:27 +0100, Bartosz Golaszewski wrote:
> On Fri, Jan 23, 2026 at 10:51 AM Michael Tretter
> <m.tretter@pengutronix.de> wrote:
> >
> > 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>
> >
> 
> If you can send a v2 with added kerneldoc, I can queue this up for
> v7.0 and Mark can then queue patch 2 in the next cycle. Unless it's
> urgent, let me know if it is.

The patch isn't urgent. I just sent v2 with added kerneldoc, anyway.

Thanks!

Michael

      parent reply	other threads:[~2026-01-26 14:30 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aXd6ayOa4d4mi61h@pengutronix.de \
    --to=m.tretter@pengutronix.de \
    --cc=brgl@kernel.org \
    --cc=broonie@kernel.org \
    --cc=kernel@pengutronix.de \
    --cc=lgirdwood@gmail.com \
    --cc=linusw@kernel.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=mazziesaccount@gmail.com \
    --cc=s.kerkmann@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox