Skip to content

Commit b2979a1

Browse files
author
Bartosz Golaszewski
committed
pinctrl: cy8c95x0: 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: Linus Walleij <linus.walleij@linaro.org>
1 parent f7fdb23 commit b2979a1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/pinctrl/pinctrl-cy8c95x0.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ static int cy8c95x0_read_regs_mask(struct cy8c95x0_pinctrl *chip, int reg,
554554

555555
static int cy8c95x0_gpio_direction_input(struct gpio_chip *gc, unsigned int off)
556556
{
557-
return pinctrl_gpio_direction_input(gc->base + off);
557+
return pinctrl_gpio_direction_input_new(gc, off);
558558
}
559559

560560
static int cy8c95x0_gpio_direction_output(struct gpio_chip *gc,
@@ -571,7 +571,7 @@ static int cy8c95x0_gpio_direction_output(struct gpio_chip *gc,
571571
if (ret)
572572
return ret;
573573

574-
return pinctrl_gpio_direction_output(gc->base + off);
574+
return pinctrl_gpio_direction_output_new(gc, off);
575575
}
576576

577577
static int cy8c95x0_gpio_get_value(struct gpio_chip *gc, unsigned int off)

0 commit comments

Comments
 (0)