Skip to content

Commit

Permalink
sh-pfc: Fix PINMUX_GPIO macro
Browse files Browse the repository at this point in the history
Commit 7cbb0e5 ("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: [email protected]
Signed-off-by: Laurent Pinchart <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
  • Loading branch information
Laurent Pinchart authored and linusw committed Dec 10, 2013
1 parent f2fa75c commit 8620f39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pinctrl/sh-pfc/sh_pfc.h
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ struct sh_pfc_soc_info {
#define PINMUX_GPIO(_pin) \
[GPIO_##_pin] = { \
.pin = (u16)-1, \
.name = __stringify(name), \
.name = __stringify(GPIO_##_pin), \
.enum_id = _pin##_DATA, \
}

Expand Down

0 comments on commit 8620f39

Please sign in to comment.