From: "Pali Rohár" <pali@kernel.org>
To: Stefan Roese <sr@denx.de>
Cc: u-boot@lists.denx.de
Subject: Re: [PATCH] gpio: renesas: Simplify .request/.rfree callbacks
Date: Fri, 2 Sep 2022 21:56:07 +0200 [thread overview]
Message-ID: <20220902195607.shanguavmr43psy3@pali> (raw)
In-Reply-To: <442ade87-f39e-1194-a4d8-266d1cd023fc@denx.de>
On Wednesday 03 August 2022 08:48:39 Stefan Roese wrote:
> On 02.08.22 12:06, Pali Rohár wrote:
> > Remove identify wrapper functions.
> >
> > Signed-off-by: Pali Rohár <pali@kernel.org>
>
> Reviewed-by: Stefan Roese <sr@denx.de>
Any more comments? Or could it be merged?
> Thanks,
> Stefan
>
> > ---
> > drivers/gpio/gpio-rcar.c | 15 ++-------------
> > 1 file changed, 2 insertions(+), 13 deletions(-)
> >
> > diff --git a/drivers/gpio/gpio-rcar.c b/drivers/gpio/gpio-rcar.c
> > index 138801850d3e..ba00bb459679 100644
> > --- a/drivers/gpio/gpio-rcar.c
> > +++ b/drivers/gpio/gpio-rcar.c
> > @@ -130,20 +130,9 @@ static int rcar_gpio_get_function(struct udevice *dev, unsigned offset)
> > return GPIOF_INPUT;
> > }
> > -static int rcar_gpio_request(struct udevice *dev, unsigned offset,
> > - const char *label)
> > -{
> > - return pinctrl_gpio_request(dev, offset, label);
> > -}
> > -
> > -static int rcar_gpio_free(struct udevice *dev, unsigned offset)
> > -{
> > - return pinctrl_gpio_free(dev, offset);
> > -}
> > -
> > static const struct dm_gpio_ops rcar_gpio_ops = {
> > - .request = rcar_gpio_request,
> > - .rfree = rcar_gpio_free,
> > + .request = pinctrl_gpio_request,
> > + .rfree = pinctrl_gpio_free,
> > .direction_input = rcar_gpio_direction_input,
> > .direction_output = rcar_gpio_direction_output,
> > .get_value = rcar_gpio_get_value,
>
> Viele Grüße,
> Stefan Roese
>
> --
> DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
> HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
> Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr@denx.de
next prev parent reply other threads:[~2022-09-02 19:56 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-02 10:06 [PATCH] gpio: renesas: Simplify .request/.rfree callbacks Pali Rohár
2022-08-03 6:48 ` Stefan Roese
2022-09-02 19:56 ` Pali Rohár [this message]
2022-10-09 12:34 ` Pali Rohár
2022-11-01 22:57 ` Pali Rohár
2022-11-02 8:58 ` Stefan Roese
2022-11-21 17:39 ` Pali Rohár
2022-11-25 21:31 ` Marek Vasut
2023-05-16 19:03 ` Pali Rohár
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=20220902195607.shanguavmr43psy3@pali \
--to=pali@kernel.org \
--cc=sr@denx.de \
--cc=u-boot@lists.denx.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