Skip to content

Commit

Permalink
Merge branch 'net-dsa-Constify-two-tagger-ops'
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David S. Miller committed May 11, 2020
2 parents 9b1b31d + 097f024 commit 3242956
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion net/dsa/tag_ocelot.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion net/dsa/tag_sja1105.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3242956

Please sign in to comment.