aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/sh-pfc/sh_pfc.h
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2013-07-15 15:16:25 -0400
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2013-07-29 09:17:45 -0400
commit7cbb0e55e27e6b8134813849f0cb899773d59548 (patch)
tree27ecf884e888730407e4ac108aeedc7b1595e4da /drivers/pinctrl/sh-pfc/sh_pfc.h
parent18dcc58341e4094a2799acfd1e8779a94e97fd13 (diff)
sh-pfc: Don't duplicate argument to PINMUX_GPIO macro
The PINMUX_GPIO macro takes a port name and a data mark, respectively of the form GPIO_name and name_DATA. Modify the macro to take the name as a single argument and derive the port name and data mark from it. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Tested-by: Yusuke Goda <yusuke.goda.sx@renesas.com>
Diffstat (limited to 'drivers/pinctrl/sh-pfc/sh_pfc.h')
-rw-r--r--drivers/pinctrl/sh-pfc/sh_pfc.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/pinctrl/sh-pfc/sh_pfc.h b/drivers/pinctrl/sh-pfc/sh_pfc.h
index 05b905fa93af..61205fbfca5e 100644
--- a/drivers/pinctrl/sh-pfc/sh_pfc.h
+++ b/drivers/pinctrl/sh-pfc/sh_pfc.h
@@ -250,10 +250,10 @@ struct sh_pfc_soc_info {
250#define PORT_ALL(str) CPU_ALL_PORT(_PORT_ALL, PORT, str) 250#define PORT_ALL(str) CPU_ALL_PORT(_PORT_ALL, PORT, str)
251 251
252/* PINMUX_GPIO - Expand to a sh_pfc_pin entry */ 252/* PINMUX_GPIO - Expand to a sh_pfc_pin entry */
253#define PINMUX_GPIO(gpio, data_or_mark) \ 253#define PINMUX_GPIO(pin) \
254 [gpio] = { \ 254 [GPIO_##pin] = { \
255 .name = __stringify(gpio), \ 255 .name = __stringify(name), \
256 .enum_id = data_or_mark, \ 256 .enum_id = pin##_DATA, \
257 } 257 }
258 258
259/* SH_PFC_PIN_CFG - Expand to a sh_pfc_pin entry (named PORT#) with config */ 259/* SH_PFC_PIN_CFG - Expand to a sh_pfc_pin entry (named PORT#) with config */