Skip to content

Commit c1649a7

Browse files
author
Bartosz Golaszewski
committed
pinctrl: mediatek: common: 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 f00f921 commit c1649a7

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

drivers/pinctrl/mediatek/pinctrl-mtk-common.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -808,12 +808,6 @@ static const struct pinmux_ops mtk_pmx_ops = {
808808
.gpio_request_enable = mtk_pmx_gpio_request_enable,
809809
};
810810

811-
static int mtk_gpio_direction_input(struct gpio_chip *chip,
812-
unsigned offset)
813-
{
814-
return pinctrl_gpio_direction_input(chip, offset);
815-
}
816-
817811
static int mtk_gpio_direction_output(struct gpio_chip *chip,
818812
unsigned offset, int value)
819813
{
@@ -898,7 +892,7 @@ static const struct gpio_chip mtk_gpio_chip = {
898892
.request = gpiochip_generic_request,
899893
.free = gpiochip_generic_free,
900894
.get_direction = mtk_gpio_get_direction,
901-
.direction_input = mtk_gpio_direction_input,
895+
.direction_input = pinctrl_gpio_direction_input,
902896
.direction_output = mtk_gpio_direction_output,
903897
.get = mtk_gpio_get,
904898
.set = mtk_gpio_set,

0 commit comments

Comments
 (0)