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