public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH] gpio: renesas: Simplify .request/.rfree callbacks
@ 2022-08-02 10:06 Pali Rohár
  2022-08-03  6:48 ` Stefan Roese
  2023-05-16 19:03 ` Pali Rohár
  0 siblings, 2 replies; 9+ messages in thread
From: Pali Rohár @ 2022-08-02 10:06 UTC (permalink / raw)
  To: Stefan Roese; +Cc: u-boot

Remove identify wrapper functions.

Signed-off-by: Pali Rohár <pali@kernel.org>
---
 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,
-- 
2.20.1


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

end of thread, other threads:[~2023-05-16 19:03 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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