summaryrefslogtreecommitdiffstats
path: root/net/nfc
diff options
context:
space:
mode:
authorlinzhang <xiaolou4617@gmail.com>2017-05-15 10:26:47 +0800
committerDavid S. Miller <davem@davemloft.net>2017-05-16 11:54:07 -0400
commit173e7837a20a4cb26d6097f6b968c17344b5189c (patch)
tree14fb6490d49b530234ea5f748b1d68bec8a0ee8b /net/nfc
parent9aef88ec85258ef958d0732c2622959f934882d2 (diff)
downloadlinux-stable-173e7837a20a4cb26d6097f6b968c17344b5189c.tar.gz
linux-stable-173e7837a20a4cb26d6097f6b968c17344b5189c.tar.bz2
linux-stable-173e7837a20a4cb26d6097f6b968c17344b5189c.zip
net: socket: mark socket protocol handler structs as const
Signed-off-by: linzhang <xiaolou4617@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/nfc')
-rw-r--r--net/nfc/af_nfc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/nfc/af_nfc.c b/net/nfc/af_nfc.c
index 54e40fa47822..d3e594eb36d0 100644
--- a/net/nfc/af_nfc.c
+++ b/net/nfc/af_nfc.c
@@ -48,7 +48,7 @@ static int nfc_sock_create(struct net *net, struct socket *sock, int proto,
return rc;
}
-static struct net_proto_family nfc_sock_family_ops = {
+static const struct net_proto_family nfc_sock_family_ops = {
.owner = THIS_MODULE,
.family = PF_NFC,
.create = nfc_sock_create,