mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2024-12-28 16:53:49 +00:00
pinctrl: axp209: 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 <bartosz.golaszewski@linaro.org> Acked-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
ffed728761
commit
36077c86fe
@ -124,11 +124,6 @@ static int axp20x_gpio_get_reg(unsigned int offset)
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
static int axp20x_gpio_input(struct gpio_chip *chip, unsigned int offset)
|
||||
{
|
||||
return pinctrl_gpio_direction_input(chip, offset);
|
||||
}
|
||||
|
||||
static int axp20x_gpio_get(struct gpio_chip *chip, unsigned int offset)
|
||||
{
|
||||
struct axp20x_pctl *pctl = gpiochip_get_data(chip);
|
||||
@ -474,7 +469,7 @@ static int axp20x_pctl_probe(struct platform_device *pdev)
|
||||
pctl->chip.get = axp20x_gpio_get;
|
||||
pctl->chip.get_direction = axp20x_gpio_get_direction;
|
||||
pctl->chip.set = axp20x_gpio_set;
|
||||
pctl->chip.direction_input = axp20x_gpio_input;
|
||||
pctl->chip.direction_input = pinctrl_gpio_direction_input;
|
||||
pctl->chip.direction_output = axp20x_gpio_output;
|
||||
|
||||
pctl->desc = of_device_get_match_data(dev);
|
||||
|
Loading…
Reference in New Issue
Block a user