sh-pfc: Remove unused GPIO_PORT_ALL macro
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Mon, 15 Jul 2013 13:21:28 +0000 (15:21 +0200)
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Mon, 29 Jul 2013 13:17:40 +0000 (15:17 +0200)
The macro isn't used, remove it.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Tested-by: Yusuke Goda <yusuke.goda.sx@renesas.com>
drivers/pinctrl/sh-pfc/pfc-r8a7740.c
drivers/pinctrl/sh-pfc/pfc-sh7372.c
drivers/pinctrl/sh-pfc/sh_pfc.h

index f6ea47c433b388cb2018ab42c96b6dc1890f975f..3fb1e0b40d90cdf0335a830f45a89c957eb9b39d 100644 (file)
        PORT_10(fn, pfx##20, sfx),                                      \
        PORT_1(fn, pfx##210, sfx),      PORT_1(fn, pfx##211, sfx)
 
-#undef _GPIO_PORT
-#define _GPIO_PORT(gpio, sfx)                                          \
-       [gpio] = {                                                      \
-               .name = __stringify(PORT##gpio),                        \
-               .enum_id = PORT##gpio##_DATA,                           \
-       }
-
 #define IRQC_PIN_MUX(irq, pin)                                         \
 static const unsigned int intc_irq##irq##_pins[] = {                   \
        pin,                                                            \
index 6dfb18772574bba8d7c1da9bc4f5c8ecf950b72e..cd431e45c15dd6e47fa7456b3e6ce9c6447bd3ad 100644 (file)
        PORT_10(fn, pfx##16, sfx),      PORT_10(fn, pfx##17, sfx), \
        PORT_10(fn, pfx##18, sfx),      PORT_1(fn, pfx##190, sfx)
 
-#undef _GPIO_PORT
-#define _GPIO_PORT(gpio, sfx)                                          \
-       [gpio] = {                                                      \
-               .name = __stringify(PORT##gpio),                        \
-               .enum_id = PORT##gpio##_DATA,                           \
-       }
-
 #define IRQC_PIN_MUX(irq, pin)                                         \
 static const unsigned int intc_irq##irq##_pins[] = {                   \
        pin,                                                            \
index 2105487dd1b6b937543a6ce683a65f2e0cebc566..363ea8cb3be6ac4afef5f9f50c70f5611e7f50db 100644 (file)
@@ -196,9 +196,7 @@ struct sh_pfc_soc_info {
        PORT_10(fn, pfx##9, sfx)
 
 #define _PORT_ALL(pfx, sfx) pfx##_##sfx
-#define _GPIO_PORT(pfx, sfx) PINMUX_GPIO(GPIO_PORT##pfx, PORT##pfx##_DATA)
 #define PORT_ALL(str)  CPU_ALL_PORT(_PORT_ALL, PORT, str)
-#define GPIO_PORT_ALL()        CPU_ALL_PORT(_GPIO_PORT, , unused)
 #define GPIO_FN(str) PINMUX_GPIO_FN(GPIO_FN_##str, PINMUX_FN_BASE, str##_MARK)
 
 /* helper macro for pinmux_enum_t */