]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: dsa: realtek: rtl8365mb: rename macro RTL8367RB -> RTL8367RB_VB
authorAlvin Šipraga <alsi@bang-olufsen.dk>
Wed, 15 Jun 2022 22:51:11 +0000 (00:51 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 17 Jun 2022 03:44:46 +0000 (20:44 -0700)
The official name of this switch is RTL8367RB-VB, not RTL8367RB. There
is also an RTL8367RB-VC which is rather different. Change the name of
the CHIP_ID/_VER macros for reasons of consistency.

Signed-off-by: Alvin Šipraga <alsi@bang-olufsen.dk>
Reviewed-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/realtek/rtl8365mb.c

index 769f672e9128448741e60ed60eb722ecf2adb762..905056250b880c70b767cd6dac743ef48798cd7f 100644 (file)
 #define RTL8365MB_CHIP_ID_8367S                0x6367
 #define RTL8365MB_CHIP_VER_8367S       0x00A0
 
-#define RTL8365MB_CHIP_ID_8367RB       0x6367
-#define RTL8365MB_CHIP_VER_8367RB      0x0020
+#define RTL8365MB_CHIP_ID_8367RB_VB    0x6367
+#define RTL8365MB_CHIP_VER_8367RB_VB   0x0020
 
 /* Family-specific data and limits */
 #define RTL8365MB_PHYADDRMAX           7
@@ -1988,7 +1988,7 @@ static int rtl8365mb_detect(struct realtek_priv *priv)
                                 "found an RTL8365MB-VC switch (ver=0x%04x)\n",
                                 chip_ver);
                        break;
-               case RTL8365MB_CHIP_VER_8367RB:
+               case RTL8365MB_CHIP_VER_8367RB_VB:
                        dev_info(priv->dev,
                                 "found an RTL8367RB-VB switch (ver=0x%04x)\n",
                                 chip_ver);