Commit 3242956b authored by David S. Miller's avatar David S. Miller

Merge branch 'net-dsa-Constify-two-tagger-ops'

Florian Fainelli says:

====================
net: dsa: Constify two tagger ops

This patch series constifies the dsa_device_ops for ocelot and sja1105
====================
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parents 9b1b31d5 097f0244
...@@ -228,7 +228,7 @@ static struct sk_buff *ocelot_rcv(struct sk_buff *skb, ...@@ -228,7 +228,7 @@ static struct sk_buff *ocelot_rcv(struct sk_buff *skb,
return skb; return skb;
} }
static struct dsa_device_ops ocelot_netdev_ops = { static const struct dsa_device_ops ocelot_netdev_ops = {
.name = "ocelot", .name = "ocelot",
.proto = DSA_TAG_PROTO_OCELOT, .proto = DSA_TAG_PROTO_OCELOT,
.xmit = ocelot_xmit, .xmit = ocelot_xmit,
......
...@@ -304,7 +304,7 @@ static struct sk_buff *sja1105_rcv(struct sk_buff *skb, ...@@ -304,7 +304,7 @@ static struct sk_buff *sja1105_rcv(struct sk_buff *skb,
is_meta); is_meta);
} }
static struct dsa_device_ops sja1105_netdev_ops = { static const struct dsa_device_ops sja1105_netdev_ops = {
.name = "sja1105", .name = "sja1105",
.proto = DSA_TAG_PROTO_SJA1105, .proto = DSA_TAG_PROTO_SJA1105,
.xmit = sja1105_xmit, .xmit = sja1105_xmit,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment