forked from mirror/openwrt
realtek: dsa: Fix name of RTL93xx switch_ops
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>
This commit is contained in:
parent
0eeb8b7da6
commit
6c6a003c7d
2 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue