Skip to content

Commit 578d009

Browse files
author
Bartosz Golaszewski
committed
pinctrl: lynxpoint: 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> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com> Acked-by: Linus Walleij <linus.walleij@linaro.org>
1 parent 262abd2 commit 578d009

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/pinctrl/intel/pinctrl-lynxpoint.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -541,15 +541,15 @@ static void lp_gpio_set(struct gpio_chip *chip, unsigned int offset, int value)
541541

542542
static int lp_gpio_direction_input(struct gpio_chip *chip, unsigned int offset)
543543
{
544-
return pinctrl_gpio_direction_input(chip->base + offset);
544+
return pinctrl_gpio_direction_input_new(chip, offset);
545545
}
546546

547547
static int lp_gpio_direction_output(struct gpio_chip *chip, unsigned int offset,
548548
int value)
549549
{
550550
lp_gpio_set(chip, offset, value);
551551

552-
return pinctrl_gpio_direction_output(chip->base + offset);
552+
return pinctrl_gpio_direction_output_new(chip, offset);
553553
}
554554

555555
static int lp_gpio_get_direction(struct gpio_chip *chip, unsigned int offset)

0 commit comments

Comments
 (0)