Skip to content

Commit 262abd2

Browse files
author
Bartosz Golaszewski
committed
pinctrl: intel: 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 588ad2b commit 262abd2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/pinctrl/intel/pinctrl-intel.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -992,14 +992,14 @@ static int intel_gpio_get_direction(struct gpio_chip *chip, unsigned int offset)
992992

993993
static int intel_gpio_direction_input(struct gpio_chip *chip, unsigned int offset)
994994
{
995-
return pinctrl_gpio_direction_input(chip->base + offset);
995+
return pinctrl_gpio_direction_input_new(chip, offset);
996996
}
997997

998998
static int intel_gpio_direction_output(struct gpio_chip *chip, unsigned int offset,
999999
int value)
10001000
{
10011001
intel_gpio_set(chip, offset, value);
1002-
return pinctrl_gpio_direction_output(chip->base + offset);
1002+
return pinctrl_gpio_direction_output_new(chip, offset);
10031003
}
10041004

10051005
static const struct gpio_chip intel_gpio_chip = {

0 commit comments

Comments
 (0)