mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-30 15:44:13 +08:00
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 <bartosz.golaszewski@linaro.org> Acked-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
6042aaef31
commit
b6d83d010d
@ -717,13 +717,6 @@ static void st_gpio_set(struct gpio_chip *chip, unsigned offset, int value)
|
||||
__st_gpio_set(bank, offset, value);
|
||||
}
|
||||
|
||||
static int st_gpio_direction_input(struct gpio_chip *chip, unsigned offset)
|
||||
{
|
||||
pinctrl_gpio_direction_input(chip, offset);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int st_gpio_direction_output(struct gpio_chip *chip,
|
||||
unsigned offset, int value)
|
||||
{
|
||||
@ -1330,7 +1323,7 @@ static int st_gpio_irq_request_resources(struct irq_data *d)
|
||||
{
|
||||
struct gpio_chip *gc = irq_data_get_irq_chip_data(d);
|
||||
|
||||
st_gpio_direction_input(gc, d->hwirq);
|
||||
pinctrl_gpio_direction_input(gc, d->hwirq);
|
||||
|
||||
return gpiochip_reqres_irq(gc, d->hwirq);
|
||||
}
|
||||
@ -1488,7 +1481,7 @@ static const struct gpio_chip st_gpio_template = {
|
||||
.free = gpiochip_generic_free,
|
||||
.get = st_gpio_get,
|
||||
.set = st_gpio_set,
|
||||
.direction_input = st_gpio_direction_input,
|
||||
.direction_input = pinctrl_gpio_direction_input,
|
||||
.direction_output = st_gpio_direction_output,
|
||||
.get_direction = st_gpio_get_direction,
|
||||
.ngpio = ST_GPIO_PINS_PER_BANK,
|
||||
|
Loading…
Reference in New Issue
Block a user