Skip to content

Commit 3242956

Browse files
committed
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>
2 parents 9b1b31d + 097f024 commit 3242956

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

net/dsa/tag_ocelot.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ static struct sk_buff *ocelot_rcv(struct sk_buff *skb,
228228
return skb;
229229
}
230230

231-
static struct dsa_device_ops ocelot_netdev_ops = {
231+
static const struct dsa_device_ops ocelot_netdev_ops = {
232232
.name = "ocelot",
233233
.proto = DSA_TAG_PROTO_OCELOT,
234234
.xmit = ocelot_xmit,

net/dsa/tag_sja1105.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ static struct sk_buff *sja1105_rcv(struct sk_buff *skb,
304304
is_meta);
305305
}
306306

307-
static struct dsa_device_ops sja1105_netdev_ops = {
307+
static const struct dsa_device_ops sja1105_netdev_ops = {
308308
.name = "sja1105",
309309
.proto = DSA_TAG_PROTO_SJA1105,
310310
.xmit = sja1105_xmit,

0 commit comments

Comments
 (0)