Skip to content

Commit ffed728

Browse files
author
Bartosz Golaszewski
committed
pinctrl: vt8500: 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 54d9eab commit ffed728

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

drivers/pinctrl/vt8500/pinctrl-wmt.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -526,11 +526,6 @@ static void wmt_gpio_set_value(struct gpio_chip *chip, unsigned offset,
526526
wmt_clearbits(data, reg_data_out, BIT(bit));
527527
}
528528

529-
static int wmt_gpio_direction_input(struct gpio_chip *chip, unsigned offset)
530-
{
531-
return pinctrl_gpio_direction_input(chip, offset);
532-
}
533-
534529
static int wmt_gpio_direction_output(struct gpio_chip *chip, unsigned offset,
535530
int value)
536531
{
@@ -544,7 +539,7 @@ static const struct gpio_chip wmt_gpio_chip = {
544539
.request = gpiochip_generic_request,
545540
.free = gpiochip_generic_free,
546541
.get_direction = wmt_gpio_get_direction,
547-
.direction_input = wmt_gpio_direction_input,
542+
.direction_input = pinctrl_gpio_direction_input,
548543
.direction_output = wmt_gpio_direction_output,
549544
.get = wmt_gpio_get_value,
550545
.set = wmt_gpio_set_value,

0 commit comments

Comments
 (0)