Skip to content

Commit f00f921

Browse files
author
Bartosz Golaszewski
committed
pinctrl: mediatek: moore: drop the wrappers around pinctrl_gpio_direction_input()
pinctrl_gpio_direction_input() now has the same signature as the wrappers around it so we can drop them. Signed-off-by: Bartosz Golaszewski <[email protected]> Acked-by: Linus Walleij <[email protected]>
1 parent 5835b3f commit f00f921

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

drivers/pinctrl/mediatek/pinctrl-moore.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -510,11 +510,6 @@ static void mtk_gpio_set(struct gpio_chip *chip, unsigned int gpio, int value)
510510
mtk_hw_set_value(hw, desc, PINCTRL_PIN_REG_DO, !!value);
511511
}
512512

513-
static int mtk_gpio_direction_input(struct gpio_chip *chip, unsigned int gpio)
514-
{
515-
return pinctrl_gpio_direction_input(chip, gpio);
516-
}
517-
518513
static int mtk_gpio_direction_output(struct gpio_chip *chip, unsigned int gpio,
519514
int value)
520515
{
@@ -569,7 +564,7 @@ static int mtk_build_gpiochip(struct mtk_pinctrl *hw)
569564
chip->parent = hw->dev;
570565
chip->request = gpiochip_generic_request;
571566
chip->free = gpiochip_generic_free;
572-
chip->direction_input = mtk_gpio_direction_input;
567+
chip->direction_input = pinctrl_gpio_direction_input;
573568
chip->direction_output = mtk_gpio_direction_output;
574569
chip->get = mtk_gpio_get;
575570
chip->set = mtk_gpio_set;

0 commit comments

Comments
 (0)