aboutsummaryrefslogtreecommitdiffstats
path: root/net/dsa/dsa.c
diff options
context:
space:
mode:
authorTristram Ha <Tristram.Ha@microchip.com>2018-12-14 19:58:04 -0500
committerDavid S. Miller <davem@davemloft.net>2018-12-16 17:23:33 -0500
commit39d6b96f9fc2d99c4619954f462ba32e5d48502e (patch)
tree124968c3318bbbc13e1218817a18fd37990bfb7f /net/dsa/dsa.c
parent036b9e7caeb09598afb297a6d4fb36b477a4f6b2 (diff)
net: dsa: ksz: Rename NET_DSA_TAG_KSZ to _KSZ9477
Rename the tag Kconfig option and related macros in preparation for addition of new KSZ family switches with different tag formats. Signed-off-by: Tristram Ha <Tristram.Ha@microchip.com> Signed-off-by: Marek Vasut <marex@denx.de> Cc: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Cc: Woojung Huh <woojung.huh@microchip.com> Cc: David S. Miller <davem@davemloft.net> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa/dsa.c')
-rw-r--r--net/dsa/dsa.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/dsa/dsa.c b/net/dsa/dsa.c
index a69c1790bbfc..aee909bcddc4 100644
--- a/net/dsa/dsa.c
+++ b/net/dsa/dsa.c
@@ -55,8 +55,8 @@ const struct dsa_device_ops *dsa_device_ops[DSA_TAG_LAST] = {
55#ifdef CONFIG_NET_DSA_TAG_GSWIP 55#ifdef CONFIG_NET_DSA_TAG_GSWIP
56 [DSA_TAG_PROTO_GSWIP] = &gswip_netdev_ops, 56 [DSA_TAG_PROTO_GSWIP] = &gswip_netdev_ops,
57#endif 57#endif
58#ifdef CONFIG_NET_DSA_TAG_KSZ 58#ifdef CONFIG_NET_DSA_TAG_KSZ9477
59 [DSA_TAG_PROTO_KSZ] = &ksz_netdev_ops, 59 [DSA_TAG_PROTO_KSZ9477] = &ksz9477_netdev_ops,
60#endif 60#endif
61#ifdef CONFIG_NET_DSA_TAG_LAN9303 61#ifdef CONFIG_NET_DSA_TAG_LAN9303
62 [DSA_TAG_PROTO_LAN9303] = &lan9303_netdev_ops, 62 [DSA_TAG_PROTO_LAN9303] = &lan9303_netdev_ops,
@@ -91,8 +91,8 @@ const char *dsa_tag_protocol_to_str(const struct dsa_device_ops *ops)
91#ifdef CONFIG_NET_DSA_TAG_GSWIP 91#ifdef CONFIG_NET_DSA_TAG_GSWIP
92 [DSA_TAG_PROTO_GSWIP] = "gswip", 92 [DSA_TAG_PROTO_GSWIP] = "gswip",
93#endif 93#endif
94#ifdef CONFIG_NET_DSA_TAG_KSZ 94#ifdef CONFIG_NET_DSA_TAG_KSZ9477
95 [DSA_TAG_PROTO_KSZ] = "ksz", 95 [DSA_TAG_PROTO_KSZ9477] = "ksz9477",
96#endif 96#endif
97#ifdef CONFIG_NET_DSA_TAG_LAN9303 97#ifdef CONFIG_NET_DSA_TAG_LAN9303
98 [DSA_TAG_PROTO_LAN9303] = "lan9303", 98 [DSA_TAG_PROTO_LAN9303] = "lan9303",