Skip to content

Commit 54d9eab

Browse files
author
Bartosz Golaszewski
committed
pinctrl: as3722: 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 22c7203 commit 54d9eab

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

drivers/pinctrl/pinctrl-as3722.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -500,11 +500,6 @@ static void as3722_gpio_set(struct gpio_chip *chip, unsigned offset,
500500
"GPIO_SIGNAL_OUT_REG update failed: %d\n", ret);
501501
}
502502

503-
static int as3722_gpio_direction_input(struct gpio_chip *chip, unsigned offset)
504-
{
505-
return pinctrl_gpio_direction_input(chip, offset);
506-
}
507-
508503
static int as3722_gpio_direction_output(struct gpio_chip *chip,
509504
unsigned offset, int value)
510505
{
@@ -526,7 +521,7 @@ static const struct gpio_chip as3722_gpio_chip = {
526521
.free = gpiochip_generic_free,
527522
.get = as3722_gpio_get,
528523
.set = as3722_gpio_set,
529-
.direction_input = as3722_gpio_direction_input,
524+
.direction_input = pinctrl_gpio_direction_input,
530525
.direction_output = as3722_gpio_direction_output,
531526
.to_irq = as3722_gpio_to_irq,
532527
.can_sleep = true,

0 commit comments

Comments
 (0)