Skip to content

Commit

Permalink
gpio: rockchip: use new pinctrl GPIO helpers
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Heiko Stuebner <[email protected]>
Acked-by: Linus Walleij <[email protected]>
  • Loading branch information
Bartosz Golaszewski committed Nov 4, 2023
1 parent 566e684 commit 7233d90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/gpio/gpio-rockchip.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,9 @@ static int rockchip_gpio_set_direction(struct gpio_chip *chip,


if (input)
pinctrl_gpio_direction_input(bank->pin_base + offset);
pinctrl_gpio_direction_input_new(chip, offset);
else
pinctrl_gpio_direction_output(bank->pin_base + offset);
pinctrl_gpio_direction_output_new(chip, offset);

raw_spin_lock_irqsave(&bank->slock, flags);
rockchip_gpio_writel_bit(bank, offset, data, bank->gpio_regs->port_ddr);
Expand Down

0 comments on commit 7233d90

Please sign in to comment.