Skip to content

Commit 36077c8

Browse files
author
Bartosz Golaszewski
committed
pinctrl: axp209: 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 ffed728 commit 36077c8

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

drivers/pinctrl/pinctrl-axp209.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,6 @@ static int axp20x_gpio_get_reg(unsigned int offset)
124124
return -EINVAL;
125125
}
126126

127-
static int axp20x_gpio_input(struct gpio_chip *chip, unsigned int offset)
128-
{
129-
return pinctrl_gpio_direction_input(chip, offset);
130-
}
131-
132127
static int axp20x_gpio_get(struct gpio_chip *chip, unsigned int offset)
133128
{
134129
struct axp20x_pctl *pctl = gpiochip_get_data(chip);
@@ -474,7 +469,7 @@ static int axp20x_pctl_probe(struct platform_device *pdev)
474469
pctl->chip.get = axp20x_gpio_get;
475470
pctl->chip.get_direction = axp20x_gpio_get_direction;
476471
pctl->chip.set = axp20x_gpio_set;
477-
pctl->chip.direction_input = axp20x_gpio_input;
472+
pctl->chip.direction_input = pinctrl_gpio_direction_input;
478473
pctl->chip.direction_output = axp20x_gpio_output;
479474

480475
pctl->desc = of_device_get_match_data(dev);

0 commit comments

Comments
 (0)