]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
realtek: dsa: Fix name of RTL93xx switch_ops
authorSven Eckelmann <se@simonwunderlich.de>
Fri, 10 Oct 2025 09:49:56 +0000 (11:49 +0200)
committerRobert Marko <robimarko@gmail.com>
Sun, 12 Oct 2025 10:49:49 +0000 (12:49 +0200)
The RTL930x and the RTL931x SoC families share the same struct
dsa_switch_ops. This should be represented in the name of the object.

Suggested-by: Felix Baumann <felix.bau@gmx.de>
Signed-off-by: Sven Eckelmann <se@simonwunderlich.de>
Link: https://github.com/openwrt/openwrt/pull/20360
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/common.c
target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/dsa.c

index a7f7e43d0e76c0a9a9833569c09826f127a8f711..aae66b78cdea98aada9dbb19845688a224d81892 100644 (file)
@@ -24,7 +24,7 @@ extern const struct rtl838x_reg rtl930x_reg;
 extern const struct rtl838x_reg rtl931x_reg;
 
 extern const struct dsa_switch_ops rtl83xx_switch_ops;
-extern const struct dsa_switch_ops rtl930x_switch_ops;
+extern const struct dsa_switch_ops rtl93xx_switch_ops;
 
 extern struct phylink_pcs *rtpcs_create(struct device *dev, struct device_node *np, int port);
 
@@ -1591,7 +1591,7 @@ static int __init rtl83xx_sw_probe(struct platform_device *pdev)
                priv->n_counters = 1024;
                break;
        case RTL9300_FAMILY_ID:
-               priv->ds->ops = &rtl930x_switch_ops;
+               priv->ds->ops = &rtl93xx_switch_ops;
                priv->cpu_port = RTL930X_CPU_PORT;
                priv->port_mask = 0x1f;
                priv->port_width = 1;
@@ -1611,7 +1611,7 @@ static int __init rtl83xx_sw_probe(struct platform_device *pdev)
                priv->n_counters = 2048;
                break;
        case RTL9310_FAMILY_ID:
-               priv->ds->ops = &rtl930x_switch_ops;
+               priv->ds->ops = &rtl93xx_switch_ops;
                priv->cpu_port = RTL931X_CPU_PORT;
                priv->port_mask = 0x3f;
                priv->port_width = 2;
index bc8f9b656268c11ef01886ea9cf4583b7ef37f46..217c11387646d55a409b9c96f382063639cb5a4c 100644 (file)
@@ -2614,7 +2614,7 @@ const struct dsa_switch_ops rtl83xx_switch_ops = {
        .port_bridge_flags      = rtl83xx_port_bridge_flags,
 };
 
-const struct dsa_switch_ops rtl930x_switch_ops = {
+const struct dsa_switch_ops rtl93xx_switch_ops = {
        .get_tag_protocol       = rtl83xx_get_tag_protocol,
        .setup                  = rtl93xx_setup,