Skip to content

Commit

Permalink
net: dsa: tag_sja1105: Constify dsa_device_ops
Browse files Browse the repository at this point in the history
sja1105_netdev_ops should be const since that is what the DSA layer
expects.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Florian Fainelli authored and David S. Miller committed May 11, 2020
1 parent 2fa3888 commit 097f024
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/dsa/tag_sja1105.c
Original file line number Diff line number Diff line change
@@ -304,7 +304,7 @@ static struct sk_buff *sja1105_rcv(struct sk_buff *skb,
is_meta);
}

static struct dsa_device_ops sja1105_netdev_ops = {
static const struct dsa_device_ops sja1105_netdev_ops = {
.name = "sja1105",
.proto = DSA_TAG_PROTO_SJA1105,
.xmit = sja1105_xmit,

0 comments on commit 097f024

Please sign in to comment.