Skip to content

Commit 22c7203

Browse files
author
Bartosz Golaszewski
committed
pinctrl: ingenic: 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 b6d83d0 commit 22c7203

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

drivers/pinctrl/pinctrl-ingenic.c

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3560,12 +3560,6 @@ static int ingenic_gpio_get(struct gpio_chip *gc, unsigned int offset)
35603560
return (int) ingenic_gpio_get_value(jzgc, offset);
35613561
}
35623562

3563-
static int ingenic_gpio_direction_input(struct gpio_chip *gc,
3564-
unsigned int offset)
3565-
{
3566-
return pinctrl_gpio_direction_input(gc, offset);
3567-
}
3568-
35693563
static int ingenic_gpio_direction_output(struct gpio_chip *gc,
35703564
unsigned int offset, int value)
35713565
{
@@ -3680,7 +3674,7 @@ static int ingenic_gpio_irq_request(struct irq_data *data)
36803674
irq_hw_number_t irq = irqd_to_hwirq(data);
36813675
int ret;
36823676

3683-
ret = ingenic_gpio_direction_input(gpio_chip, irq);
3677+
ret = pinctrl_gpio_direction_input(gpio_chip, irq);
36843678
if (ret)
36853679
return ret;
36863680

@@ -4197,7 +4191,7 @@ static int __init ingenic_gpio_probe(struct ingenic_pinctrl *jzpc,
41974191

41984192
jzgc->gc.set = ingenic_gpio_set;
41994193
jzgc->gc.get = ingenic_gpio_get;
4200-
jzgc->gc.direction_input = ingenic_gpio_direction_input;
4194+
jzgc->gc.direction_input = pinctrl_gpio_direction_input;
42014195
jzgc->gc.direction_output = ingenic_gpio_direction_output;
42024196
jzgc->gc.get_direction = ingenic_gpio_get_direction;
42034197
jzgc->gc.request = gpiochip_generic_request;

0 commit comments

Comments
 (0)