OSDN Git Service

pinctrl: sh-pfc: Rename PINCTRL_PFC_R8A7796 to PINCTRL_PFC_R8A77960
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 23 Oct 2019 12:29:54 +0000 (14:29 +0200)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 1 Nov 2019 12:42:52 +0000 (13:42 +0100)
Rename CONFIG_PINCTRL_PFC_R8A7796 for R-Car M3-W (R8A77960) to
CONFIG_PINCTRL_PFC_R8A77960, to avoid confusion with R-Car M3-W+
(R8A77961), which will use CONFIG_PINCTRL_PFC_R8A77961.

Extend the dependency of CONFIG_PINCTRL_PFC_R8A77960 from
CONFIG_ARCH_R8A7796 to CONFIG_ARCH_R8A77960, to relax dependencies for a
future rename of the SoC configuration symbol.

Rename r8a7796_pinmux_info to r8a77960_pinmux_info, as it contains an
r8a77960-based name.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Link: https://lore.kernel.org/r/20191023122955.12420-3-geert+renesas@glider.be
drivers/pinctrl/sh-pfc/Kconfig
drivers/pinctrl/sh-pfc/Makefile
drivers/pinctrl/sh-pfc/core.c
drivers/pinctrl/sh-pfc/pfc-r8a7796.c
drivers/pinctrl/sh-pfc/sh_pfc.h

index de2a33a..93d6034 100644 (file)
@@ -27,7 +27,7 @@ config PINCTRL_SH_PFC
        select PINCTRL_PFC_R8A7793 if ARCH_R8A7793
        select PINCTRL_PFC_R8A7794 if ARCH_R8A7794
        select PINCTRL_PFC_R8A7795 if ARCH_R8A7795
-       select PINCTRL_PFC_R8A7796 if ARCH_R8A7796
+       select PINCTRL_PFC_R8A77960 if ARCH_R8A77960 || ARCH_R8A7796
        select PINCTRL_PFC_R8A77965 if ARCH_R8A77965
        select PINCTRL_PFC_R8A77970 if ARCH_R8A77970
        select PINCTRL_PFC_R8A77980 if ARCH_R8A77980
@@ -117,7 +117,7 @@ config PINCTRL_PFC_R8A7794
 config PINCTRL_PFC_R8A7795
        bool "R-Car H3 pin control support" if COMPILE_TEST
 
-config PINCTRL_PFC_R8A7796
+config PINCTRL_PFC_R8A77960
        bool "R-Car M3-W pin control support" if COMPILE_TEST
 
 config PINCTRL_PFC_R8A77965
index 00b12af..e3594cd 100644 (file)
@@ -20,7 +20,7 @@ obj-$(CONFIG_PINCTRL_PFC_R8A7793)     += pfc-r8a7791.o
 obj-$(CONFIG_PINCTRL_PFC_R8A7794)      += pfc-r8a7794.o
 obj-$(CONFIG_PINCTRL_PFC_R8A7795)      += pfc-r8a7795.o
 obj-$(CONFIG_PINCTRL_PFC_R8A7795)      += pfc-r8a7795-es1.o
-obj-$(CONFIG_PINCTRL_PFC_R8A7796     += pfc-r8a7796.o
+obj-$(CONFIG_PINCTRL_PFC_R8A77960)     += pfc-r8a7796.o
 obj-$(CONFIG_PINCTRL_PFC_R8A77965)     += pfc-r8a77965.o
 obj-$(CONFIG_PINCTRL_PFC_R8A77970)     += pfc-r8a77970.o
 obj-$(CONFIG_PINCTRL_PFC_R8A77980)     += pfc-r8a77980.o
index fd879a1..3aab444 100644 (file)
@@ -581,10 +581,10 @@ static const struct of_device_id sh_pfc_of_table[] = {
        },
 #endif /* DEBUG */
 #endif
-#ifdef CONFIG_PINCTRL_PFC_R8A7796
+#ifdef CONFIG_PINCTRL_PFC_R8A77960
        {
                .compatible = "renesas,pfc-r8a7796",
-               .data = &r8a7796_pinmux_info,
+               .data = &r8a77960_pinmux_info,
        },
 #endif
 #ifdef CONFIG_PINCTRL_PFC_R8A77965
index 3689f76..9de2909 100644 (file)
@@ -6210,8 +6210,8 @@ const struct sh_pfc_soc_info r8a774a1_pinmux_info = {
 };
 #endif
 
-#ifdef CONFIG_PINCTRL_PFC_R8A7796
-const struct sh_pfc_soc_info r8a7796_pinmux_info = {
+#ifdef CONFIG_PINCTRL_PFC_R8A77960
+const struct sh_pfc_soc_info r8a77960_pinmux_info = {
        .name = "r8a77960_pfc",
        .ops = &r8a7796_pinmux_ops,
        .unlock_reg = 0xe6060000, /* PMMR */
index 12d15b6..a7eb527 100644 (file)
@@ -320,7 +320,7 @@ extern const struct sh_pfc_soc_info r8a7793_pinmux_info;
 extern const struct sh_pfc_soc_info r8a7794_pinmux_info;
 extern const struct sh_pfc_soc_info r8a7795_pinmux_info;
 extern const struct sh_pfc_soc_info r8a7795es1_pinmux_info;
-extern const struct sh_pfc_soc_info r8a7796_pinmux_info;
+extern const struct sh_pfc_soc_info r8a77960_pinmux_info;
 extern const struct sh_pfc_soc_info r8a77965_pinmux_info;
 extern const struct sh_pfc_soc_info r8a77970_pinmux_info;
 extern const struct sh_pfc_soc_info r8a77980_pinmux_info;