Skip to content

Commit 588ad2b

Browse files
author
Bartosz Golaszewski
committed
pinctrl: cherryview: 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 7832986 commit 588ad2b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/pinctrl/intel/pinctrl-cherryview.c

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

11491149
static int chv_gpio_direction_input(struct gpio_chip *chip, unsigned int offset)
11501150
{
1151-
return pinctrl_gpio_direction_input(chip->base + offset);
1151+
return pinctrl_gpio_direction_input_new(chip, offset);
11521152
}
11531153

11541154
static int chv_gpio_direction_output(struct gpio_chip *chip, unsigned int offset,
11551155
int value)
11561156
{
11571157
chv_gpio_set(chip, offset, value);
1158-
return pinctrl_gpio_direction_output(chip->base + offset);
1158+
return pinctrl_gpio_direction_output_new(chip, offset);
11591159
}
11601160

11611161
static const struct gpio_chip chv_gpio_chip = {

0 commit comments

Comments
 (0)