pinctrl: sh-pfc: Add PORT_GP_24 helper macro
authorSimon Horman <horms+renesas@verge.net.au>
Mon, 12 Sep 2016 07:36:33 +0000 (09:36 +0200)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 14 Sep 2016 07:26:35 +0000 (09:26 +0200)
This follows the style of existing PORT_GP_X macros and
will be used by a follow-up patch for the r8a7791 SoC.

Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
drivers/pinctrl/sh-pfc/sh_pfc.h

index c24067edcec467acb0fc5843c2d9521cb4e993b7..2345421103db342e537187380f088240e3b1bf59 100644 (file)
@@ -422,9 +422,13 @@ extern const struct sh_pfc_soc_info shx3_pinmux_info;
        PORT_GP_CFG_1(bank, 22, fn, sfx, cfg)
 #define PORT_GP_23(bank, fn, sfx)      PORT_GP_CFG_23(bank, fn, sfx, 0)
 
-#define PORT_GP_CFG_26(bank, fn, sfx, cfg)                             \
+#define PORT_GP_CFG_24(bank, fn, sfx, cfg)                             \
        PORT_GP_CFG_23(bank, fn, sfx, cfg),                             \
-       PORT_GP_CFG_1(bank, 23, fn, sfx, cfg),                          \
+       PORT_GP_CFG_1(bank, 23, fn, sfx, cfg)
+#define PORT_GP_24(bank, fn, sfx)      PORT_GP_CFG_24(bank, fn, sfx, 0)
+
+#define PORT_GP_CFG_26(bank, fn, sfx, cfg)                             \
+       PORT_GP_CFG_24(bank, fn, sfx, cfg),                             \
        PORT_GP_CFG_1(bank, 24, fn, sfx, cfg),                          \
        PORT_GP_CFG_1(bank, 25, fn, sfx, cfg)
 #define PORT_GP_26(bank, fn, sfx)      PORT_GP_CFG_26(bank, fn, sfx, 0)