Skip to content

Commit b6d83d0

Browse files
author
Bartosz Golaszewski
committed
pinctrl: st: 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 it. Signed-off-by: Bartosz Golaszewski <[email protected]> Acked-by: Linus Walleij <[email protected]>
1 parent 6042aae commit b6d83d0

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

drivers/pinctrl/pinctrl-st.c

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -717,13 +717,6 @@ static void st_gpio_set(struct gpio_chip *chip, unsigned offset, int value)
717717
__st_gpio_set(bank, offset, value);
718718
}
719719

720-
static int st_gpio_direction_input(struct gpio_chip *chip, unsigned offset)
721-
{
722-
pinctrl_gpio_direction_input(chip, offset);
723-
724-
return 0;
725-
}
726-
727720
static int st_gpio_direction_output(struct gpio_chip *chip,
728721
unsigned offset, int value)
729722
{
@@ -1330,7 +1323,7 @@ static int st_gpio_irq_request_resources(struct irq_data *d)
13301323
{
13311324
struct gpio_chip *gc = irq_data_get_irq_chip_data(d);
13321325

1333-
st_gpio_direction_input(gc, d->hwirq);
1326+
pinctrl_gpio_direction_input(gc, d->hwirq);
13341327

13351328
return gpiochip_reqres_irq(gc, d->hwirq);
13361329
}
@@ -1488,7 +1481,7 @@ static const struct gpio_chip st_gpio_template = {
14881481
.free = gpiochip_generic_free,
14891482
.get = st_gpio_get,
14901483
.set = st_gpio_set,
1491-
.direction_input = st_gpio_direction_input,
1484+
.direction_input = pinctrl_gpio_direction_input,
14921485
.direction_output = st_gpio_direction_output,
14931486
.get_direction = st_gpio_get_direction,
14941487
.ngpio = ST_GPIO_PINS_PER_BANK,

0 commit comments

Comments
 (0)