Commit 8620f394 authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Linus Walleij

sh-pfc: Fix PINMUX_GPIO macro

Commit 7cbb0e55 ("sh-pfc: Don't duplicate argument to PINMUX_GPIO
macro") erronesouly modified the PINMUX_GPIO macro in a way that
resulted in all pins being named "name". Fix the macro to name the pins
correctly.

Cc: stable@vger.kernel.org
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent f2fa75cd
...@@ -254,7 +254,7 @@ struct sh_pfc_soc_info { ...@@ -254,7 +254,7 @@ struct sh_pfc_soc_info {
#define PINMUX_GPIO(_pin) \ #define PINMUX_GPIO(_pin) \
[GPIO_##_pin] = { \ [GPIO_##_pin] = { \
.pin = (u16)-1, \ .pin = (u16)-1, \
.name = __stringify(name), \ .name = __stringify(GPIO_##_pin), \
.enum_id = _pin##_DATA, \ .enum_id = _pin##_DATA, \
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment