Skip to content

Commit 653e95f

Browse files
author
Bartosz Golaszewski
committed
pinctrl: ocelot: drop the wrapper around pinctrl_gpio_direction_input()
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]>
1 parent d35e579 commit 653e95f

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

drivers/pinctrl/pinctrl-ocelot.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1776,12 +1776,6 @@ static int ocelot_gpio_get_direction(struct gpio_chip *chip,
17761776
return GPIO_LINE_DIRECTION_IN;
17771777
}
17781778

1779-
static int ocelot_gpio_direction_input(struct gpio_chip *chip,
1780-
unsigned int offset)
1781-
{
1782-
return pinctrl_gpio_direction_input(chip, offset);
1783-
}
1784-
17851779
static int ocelot_gpio_direction_output(struct gpio_chip *chip,
17861780
unsigned int offset, int value)
17871781
{
@@ -1804,7 +1798,7 @@ static const struct gpio_chip ocelot_gpiolib_chip = {
18041798
.set = ocelot_gpio_set,
18051799
.get = ocelot_gpio_get,
18061800
.get_direction = ocelot_gpio_get_direction,
1807-
.direction_input = ocelot_gpio_direction_input,
1801+
.direction_input = pinctrl_gpio_direction_input,
18081802
.direction_output = ocelot_gpio_direction_output,
18091803
.owner = THIS_MODULE,
18101804
};

0 commit comments

Comments
 (0)