aboutsummaryrefslogtreecommitdiffstats
path: root/net/dsa
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2020-05-11 16:47:15 -0700
committerDavid S. Miller <davem@davemloft.net>2020-05-11 16:50:45 -0700
commit097f024454fca0e13bbba0ab54dfe63ac5610953 (patch)
treee949f4dad0c7ac15c6ddd9660a2acbdf35643667 /net/dsa
parentnet: dsa: ocelot: Constify dsa_device_ops (diff)
downloadlinux-dev-097f024454fca0e13bbba0ab54dfe63ac5610953.tar.xz
linux-dev-097f024454fca0e13bbba0ab54dfe63ac5610953.zip
net: dsa: tag_sja1105: Constify dsa_device_ops
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>
Diffstat (limited to 'net/dsa')
-rw-r--r--net/dsa/tag_sja1105.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dsa/tag_sja1105.c b/net/dsa/tag_sja1105.c
index d553bf36bd41..5ecac5921a7d 100644
--- a/net/dsa/tag_sja1105.c
+++ b/net/dsa/tag_sja1105.c
@@ -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,