]> www.infradead.org Git - linux-platform-drivers-x86.git/commitdiff
pinctrl: sh-pfc: Rename 2-parameter CPU_ALL_PORT() variant
authorGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 21 Mar 2019 15:17:47 +0000 (16:17 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 21 May 2019 09:07:29 +0000 (11:07 +0200)
There are two variants of the CPU_ALL_PORT() macro in use:
  1. A three-parameter variant, to be provided for SoCs with a linear
     GPIO pin space ("PORT style"),
  2. A two-parameter variant, to be provided for SoCs with 32-port GPIO
     banks ("GP port style").

Rename the 2-parameter variant to CPU_ALL_GP(), to avoid confusion, and
to increase naming consistency.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
17 files changed:
drivers/pinctrl/sh-pfc/pfc-r8a77470.c
drivers/pinctrl/sh-pfc/pfc-r8a7778.c
drivers/pinctrl/sh-pfc/pfc-r8a7779.c
drivers/pinctrl/sh-pfc/pfc-r8a7790.c
drivers/pinctrl/sh-pfc/pfc-r8a7791.c
drivers/pinctrl/sh-pfc/pfc-r8a7792.c
drivers/pinctrl/sh-pfc/pfc-r8a7794.c
drivers/pinctrl/sh-pfc/pfc-r8a7795-es1.c
drivers/pinctrl/sh-pfc/pfc-r8a7795.c
drivers/pinctrl/sh-pfc/pfc-r8a7796.c
drivers/pinctrl/sh-pfc/pfc-r8a77965.c
drivers/pinctrl/sh-pfc/pfc-r8a77970.c
drivers/pinctrl/sh-pfc/pfc-r8a77980.c
drivers/pinctrl/sh-pfc/pfc-r8a77990.c
drivers/pinctrl/sh-pfc/pfc-r8a77995.c
drivers/pinctrl/sh-pfc/pfc-sh7734.c
drivers/pinctrl/sh-pfc/sh_pfc.h

index c05dc149048612850952565c21ed59edc799af25..b3b116da1bb0dd3521fa2a619133e776079d6d2e 100644 (file)
@@ -10,7 +10,7 @@
 
 #include "sh_pfc.h"
 
-#define CPU_ALL_PORT(fn, sfx)                                          \
+#define CPU_ALL_GP(fn, sfx)                                            \
        PORT_GP_4(0, fn, sfx),                                          \
        PORT_GP_1(0, 4, fn, sfx),                                       \
        PORT_GP_CFG_1(0,  5, fn, sfx, SH_PFC_PIN_CFG_IO_VOLTAGE),       \
index 49fe52d35f30eebf34af2498c924e9f739157fec..bed067b3019892fd1777dd03665486a1fd01bf07 100644 (file)
@@ -38,7 +38,7 @@
        PORT_GP_PUP_1(bank, 24, fn, sfx), PORT_GP_PUP_1(bank, 25, fn, sfx),     \
        PORT_GP_PUP_1(bank, 26, fn, sfx)
 
-#define CPU_ALL_PORT(fn, sfx)          \
+#define CPU_ALL_GP(fn, sfx)            \
        PORT_GP_CFG_32(0, fn, sfx, SH_PFC_PIN_CFG_PULL_UP),             \
        PORT_GP_CFG_32(1, fn, sfx, SH_PFC_PIN_CFG_PULL_UP),             \
        PORT_GP_CFG_32(2, fn, sfx, SH_PFC_PIN_CFG_PULL_UP),             \
index 0c121b28ec3fe6ff2b2e193b01fb7b63b198eaca..3e47cdc1411d507f7c5febaa8be74286241cd003 100644 (file)
@@ -11,7 +11,7 @@
 
 #include "sh_pfc.h"
 
-#define CPU_ALL_PORT(fn, sfx)                                          \
+#define CPU_ALL_GP(fn, sfx)                                            \
        PORT_GP_32(0, fn, sfx),                                         \
        PORT_GP_32(1, fn, sfx),                                         \
        PORT_GP_32(2, fn, sfx),                                         \
index c41a6761cf9d4352a37366edc4099ea8e19d6aeb..80d33c7398df43881b3a2b6557a0ffe47d0ad73d 100644 (file)
@@ -20,7 +20,7 @@
  * All pins assigned to GPIO bank 3 can be used for SD interfaces in
  * which case they support both 3.3V and 1.8V signalling.
  */
-#define CPU_ALL_PORT(fn, sfx)                                          \
+#define CPU_ALL_GP(fn, sfx)                                            \
        PORT_GP_32(0, fn, sfx),                                         \
        PORT_GP_30(1, fn, sfx),                                         \
        PORT_GP_30(2, fn, sfx),                                         \
index 1292ec8d268fc41f2a9285051243a862647131a6..bc9caf812fc1b3a3c9d33c851eafee5ebdcc5fa0 100644 (file)
@@ -15,7 +15,7 @@
  * Pins 0-23 assigned to GPIO bank 6 can be used for SD interfaces in
  * which case they support both 3.3V and 1.8V signalling.
  */
-#define CPU_ALL_PORT(fn, sfx)                                          \
+#define CPU_ALL_GP(fn, sfx)                                            \
        PORT_GP_32(0, fn, sfx),                                         \
        PORT_GP_26(1, fn, sfx),                                         \
        PORT_GP_32(2, fn, sfx),                                         \
index bbace1478613f93c815f813e4ac0a27710727c29..258f82fb31c0ec104e5aa7a2bcf2c4e2f7f4db9a 100644 (file)
@@ -11,7 +11,7 @@
 #include "core.h"
 #include "sh_pfc.h"
 
-#define CPU_ALL_PORT(fn, sfx)                                          \
+#define CPU_ALL_GP(fn, sfx)                                            \
        PORT_GP_29(0, fn, sfx),                                         \
        PORT_GP_23(1, fn, sfx),                                         \
        PORT_GP_32(2, fn, sfx),                                         \
index 1ff4969d8381fff413a32301c45e0e4a9fe8daf7..34481b6c432807086c262c9ea9ed94dfcbbab6b7 100644 (file)
@@ -14,7 +14,7 @@
 #include "core.h"
 #include "sh_pfc.h"
 
-#define CPU_ALL_PORT(fn, sfx)                                          \
+#define CPU_ALL_GP(fn, sfx)                                            \
        PORT_GP_32(0, fn, sfx),                                         \
        PORT_GP_26(1, fn, sfx),                                         \
        PORT_GP_32(2, fn, sfx),                                         \
index f16dfbad3f17988c2792d9948fc9236281d4e065..93fb950753c2310f57e0692740b31165892fd45a 100644 (file)
@@ -15,7 +15,7 @@
                   SH_PFC_PIN_CFG_PULL_UP | \
                   SH_PFC_PIN_CFG_PULL_DOWN)
 
-#define CPU_ALL_PORT(fn, sfx)                                          \
+#define CPU_ALL_GP(fn, sfx)                                            \
        PORT_GP_CFG_16(0, fn, sfx, CFG_FLAGS),  \
        PORT_GP_CFG_28(1, fn, sfx, CFG_FLAGS),  \
        PORT_GP_CFG_15(2, fn, sfx, CFG_FLAGS),  \
index 68bcb8980b1675d3ebcb17d54096dd13e4b09aae..28ad4bfdc74a9a9bbdd37a8e572256622b4e33da 100644 (file)
@@ -16,7 +16,7 @@
                   SH_PFC_PIN_CFG_PULL_UP | \
                   SH_PFC_PIN_CFG_PULL_DOWN)
 
-#define CPU_ALL_PORT(fn, sfx)                                          \
+#define CPU_ALL_GP(fn, sfx)                                            \
        PORT_GP_CFG_16(0, fn, sfx, CFG_FLAGS),  \
        PORT_GP_CFG_29(1, fn, sfx, CFG_FLAGS),  \
        PORT_GP_CFG_15(2, fn, sfx, CFG_FLAGS),  \
index 38cce690db7044438a25dee2f6004e0b7b85a41d..41a12118d4b2b581f2db4cbbcf829ba545eb2f7c 100644 (file)
@@ -21,7 +21,7 @@
                   SH_PFC_PIN_CFG_PULL_UP | \
                   SH_PFC_PIN_CFG_PULL_DOWN)
 
-#define CPU_ALL_PORT(fn, sfx)                                          \
+#define CPU_ALL_GP(fn, sfx)                                            \
        PORT_GP_CFG_16(0, fn, sfx, CFG_FLAGS),  \
        PORT_GP_CFG_29(1, fn, sfx, CFG_FLAGS),  \
        PORT_GP_CFG_15(2, fn, sfx, CFG_FLAGS),  \
index 090024355eba4307b1bbf5c15c3c53ea5746ce44..0e9d5008dda66417b25c5224d6696ebeab0da36d 100644 (file)
@@ -22,7 +22,7 @@
                   SH_PFC_PIN_CFG_PULL_UP | \
                   SH_PFC_PIN_CFG_PULL_DOWN)
 
-#define CPU_ALL_PORT(fn, sfx)                                          \
+#define CPU_ALL_GP(fn, sfx)                                            \
        PORT_GP_CFG_16(0, fn, sfx, CFG_FLAGS),  \
        PORT_GP_CFG_29(1, fn, sfx, CFG_FLAGS),  \
        PORT_GP_CFG_15(2, fn, sfx, CFG_FLAGS),  \
index 2d76b548b9421378d9d0196e5f259be5c5739c4a..8473a83bd4ca6570f1c0cf0eb37cfe5b9a8312ef 100644 (file)
@@ -19,7 +19,7 @@
 #include "core.h"
 #include "sh_pfc.h"
 
-#define CPU_ALL_PORT(fn, sfx)                                          \
+#define CPU_ALL_GP(fn, sfx)                                            \
        PORT_GP_CFG_22(0, fn, sfx, SH_PFC_PIN_CFG_IO_VOLTAGE),          \
        PORT_GP_28(1, fn, sfx),                                         \
        PORT_GP_CFG_17(2, fn, sfx, SH_PFC_PIN_CFG_IO_VOLTAGE),          \
index 473da65890a7086c840e6cf53311e35a2a9548b9..9d7eb6aca0f4bb1e4d6ba4c5a23307645cc6b2bd 100644 (file)
@@ -19,7 +19,7 @@
 #include "core.h"
 #include "sh_pfc.h"
 
-#define CPU_ALL_PORT(fn, sfx)  \
+#define CPU_ALL_GP(fn, sfx)    \
        PORT_GP_CFG_22(0, fn, sfx, SH_PFC_PIN_CFG_IO_VOLTAGE),  \
        PORT_GP_28(1, fn, sfx), \
        PORT_GP_CFG_30(2, fn, sfx, SH_PFC_PIN_CFG_IO_VOLTAGE),  \
index 91a837b02a3661224c72cbf935477fbb0836ca46..2ffa8a2cbd9f14be27624b2a366c37da56eb74b3 100644 (file)
@@ -20,7 +20,7 @@
 #define CFG_FLAGS (SH_PFC_PIN_CFG_PULL_UP | \
                   SH_PFC_PIN_CFG_PULL_DOWN)
 
-#define CPU_ALL_PORT(fn, sfx) \
+#define CPU_ALL_GP(fn, sfx) \
        PORT_GP_CFG_18(0, fn, sfx, CFG_FLAGS), \
        PORT_GP_CFG_23(1, fn, sfx, CFG_FLAGS), \
        PORT_GP_CFG_26(2, fn, sfx, CFG_FLAGS), \
index dd87085d48cb87985cb476940bacad7e33d270fe..c10b756476b142e6487d3b9a3449f70ff29fad4f 100644 (file)
@@ -17,7 +17,7 @@
 #include "core.h"
 #include "sh_pfc.h"
 
-#define CPU_ALL_PORT(fn, sfx)                  \
+#define CPU_ALL_GP(fn, sfx)                    \
                PORT_GP_9(0,  fn, sfx),         \
                PORT_GP_32(1, fn, sfx),         \
                PORT_GP_32(2, fn, sfx),         \
index fac7b4699121efde7a59a5fc462bd62f59878f16..5dfd991ffdaab6e9737a3e54f5e809cb94700673 100644 (file)
@@ -11,7 +11,7 @@
 
 #include "sh_pfc.h"
 
-#define CPU_ALL_PORT(fn, sfx)                                          \
+#define CPU_ALL_GP(fn, sfx)                                            \
        PORT_GP_32(0, fn, sfx),                                         \
        PORT_GP_32(1, fn, sfx),                                         \
        PORT_GP_32(2, fn, sfx),                                         \
index 7db5819eea7e6e0df34d92605309638e01ee87cd..9e6a83b4996e63339a70c657b3755c9d6766bbde 100644 (file)
@@ -584,7 +584,7 @@ extern const struct sh_pfc_soc_info shx3_pinmux_info;
 
 /* GP_ALL(suffix) - Expand to a list of GP_#_#_suffix */
 #define _GP_ALL(bank, pin, name, sfx, cfg)     name##_##sfx
-#define GP_ALL(str)                    CPU_ALL_PORT(_GP_ALL, str)
+#define GP_ALL(str)                    CPU_ALL_GP(_GP_ALL, str)
 
 /* PINMUX_GPIO_GP_ALL - Expand to a list of sh_pfc_pin entries */
 #define _GP_GPIO(bank, _pin, _name, sfx, cfg)                          \
@@ -594,11 +594,11 @@ extern const struct sh_pfc_soc_info shx3_pinmux_info;
                .enum_id = _name##_DATA,                                \
                .configs = cfg,                                         \
        }
-#define PINMUX_GPIO_GP_ALL()           CPU_ALL_PORT(_GP_GPIO, unused)
+#define PINMUX_GPIO_GP_ALL()           CPU_ALL_GP(_GP_GPIO, unused)
 
 /* PINMUX_DATA_GP_ALL -  Expand to a list of name_DATA, name_FN marks */
 #define _GP_DATA(bank, pin, name, sfx, cfg)    PINMUX_DATA(name##_DATA, name##_FN)
-#define PINMUX_DATA_GP_ALL()           CPU_ALL_PORT(_GP_DATA, unused)
+#define PINMUX_DATA_GP_ALL()           CPU_ALL_GP(_GP_DATA, unused)
 
 /*
  * PORT style (linear pin space)