Skip to content

Commit 4125651

Browse files
author
Bartosz Golaszewski
committed
pinctrl: as3722: 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: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Acked-by: Linus Walleij <linus.walleij@linaro.org>
1 parent b2979a1 commit 4125651

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/pinctrl/pinctrl-as3722.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -502,14 +502,14 @@ static void as3722_gpio_set(struct gpio_chip *chip, unsigned offset,
502502

503503
static int as3722_gpio_direction_input(struct gpio_chip *chip, unsigned offset)
504504
{
505-
return pinctrl_gpio_direction_input(chip->base + offset);
505+
return pinctrl_gpio_direction_input_new(chip, offset);
506506
}
507507

508508
static int as3722_gpio_direction_output(struct gpio_chip *chip,
509509
unsigned offset, int value)
510510
{
511511
as3722_gpio_set(chip, offset, value);
512-
return pinctrl_gpio_direction_output(chip->base + offset);
512+
return pinctrl_gpio_direction_output_new(chip, offset);
513513
}
514514

515515
static int as3722_gpio_to_irq(struct gpio_chip *chip, unsigned offset)

0 commit comments

Comments
 (0)