]> Git Repo - linux.git/commitdiff
pinctrl: ocelot: drop the wrapper around pinctrl_gpio_direction_input()
authorBartosz Golaszewski <[email protected]>
Tue, 10 Oct 2023 10:09:17 +0000 (12:09 +0200)
committerBartosz Golaszewski <[email protected]>
Sat, 4 Nov 2023 09:23:23 +0000 (10:23 +0100)
pinctrl_gpio_direction_input() now has the same signature as the
wrapper around it so we can drop them.

Signed-off-by: Bartosz Golaszewski <[email protected]>
Acked-by: Linus Walleij <[email protected]>
drivers/pinctrl/pinctrl-ocelot.c

index 96b4e9fceb78060601b4a0f2b0230a280e1bf5ac..52aadd6d72a80f74011efe30b309eea19fd55903 100644 (file)
@@ -1776,12 +1776,6 @@ static int ocelot_gpio_get_direction(struct gpio_chip *chip,
        return GPIO_LINE_DIRECTION_IN;
 }
 
-static int ocelot_gpio_direction_input(struct gpio_chip *chip,
-                                      unsigned int offset)
-{
-       return pinctrl_gpio_direction_input(chip, offset);
-}
-
 static int ocelot_gpio_direction_output(struct gpio_chip *chip,
                                        unsigned int offset, int value)
 {
@@ -1804,7 +1798,7 @@ static const struct gpio_chip ocelot_gpiolib_chip = {
        .set = ocelot_gpio_set,
        .get = ocelot_gpio_get,
        .get_direction = ocelot_gpio_get_direction,
-       .direction_input = ocelot_gpio_direction_input,
+       .direction_input = pinctrl_gpio_direction_input,
        .direction_output = ocelot_gpio_direction_output,
        .owner = THIS_MODULE,
 };
This page took 0.050004 seconds and 4 git commands to generate.