diff options
author | David S. Miller <davem@davemloft.net> | 2020-05-11 16:50:45 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-05-11 16:50:45 -0700 |
commit | 3242956bd610af40e884b530b6c6f76f5bf85f3b (patch) | |
tree | e949f4dad0c7ac15c6ddd9660a2acbdf35643667 | |
parent | 9b1b31d5d4ac7d931c3d7e0e8114ff9d4fbd0c28 (diff) | |
parent | 097f024454fca0e13bbba0ab54dfe63ac5610953 (diff) | |
download | linux-3242956bd610af40e884b530b6c6f76f5bf85f3b.tar.bz2 |
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: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/dsa/tag_ocelot.c | 2 | ||||
-rw-r--r-- | net/dsa/tag_sja1105.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/net/dsa/tag_ocelot.c b/net/dsa/tag_ocelot.c index 59de1315100f..b0c98ee4e13b 100644 --- a/net/dsa/tag_ocelot.c +++ b/net/dsa/tag_ocelot.c @@ -228,7 +228,7 @@ static struct sk_buff *ocelot_rcv(struct sk_buff *skb, return skb; } -static struct dsa_device_ops ocelot_netdev_ops = { +static const struct dsa_device_ops ocelot_netdev_ops = { .name = "ocelot", .proto = DSA_TAG_PROTO_OCELOT, .xmit = ocelot_xmit, 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, |