]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
gpio: renesas: Simplify .request/.rfree callbacks
authorPali Rohár <pali@kernel.org>
Tue, 2 Aug 2022 10:06:55 +0000 (12:06 +0200)
committerMarek Vasut <marek.vasut+renesas@mailbox.org>
Tue, 16 May 2023 20:24:24 +0000 (22:24 +0200)
Remove identify wrapper functions.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
Reviewed-by: Marek Vasut <marex@denx.de>
drivers/gpio/gpio-rcar.c

index 9ffb4a56258ebf8159aff41f9614a5f7ae068270..d6cfbd231a8796fe5c632c3d70a784a4bc1ad747 100644 (file)
@@ -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,