projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2fa3888
)
net: dsa: tag_sja1105: Constify dsa_device_ops
author
Florian Fainelli
<f.fainelli@gmail.com>
Mon, 11 May 2020 23:47:15 +0000
(16:47 -0700)
committer
David S. Miller
<davem@davemloft.net>
Mon, 11 May 2020 23:50:45 +0000
(16:50 -0700)
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>
net/dsa/tag_sja1105.c
patch
|
blob
|
history
diff --git
a/net/dsa/tag_sja1105.c
b/net/dsa/tag_sja1105.c
index d553bf36bd412964382794e6d64818d5e39906a0..5ecac5921a7d793984ed1dd6e8def451a55b6a30 100644
(file)
--- 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,