Commit ddfba5bd authored by Bartosz Golaszewski's avatar Bartosz Golaszewski
Browse files

pinctrl: axp209: use new pinctrl GPIO helpers



Replace the pinctrl helpers taking the global GPIO number as argument
with the improved variants that instead take a pointer to the GPIO chip
and the controller-relative offset.

Signed-off-by: default avatarBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 47ad5c97
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -126,7 +126,7 @@ static int axp20x_gpio_get_reg(unsigned int offset)

static int axp20x_gpio_input(struct gpio_chip *chip, unsigned int offset)
{
	return pinctrl_gpio_direction_input(chip->base + offset);
	return pinctrl_gpio_direction_input_new(chip, offset);
}

static int axp20x_gpio_get(struct gpio_chip *chip, unsigned int offset)