projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5057f66
)
NFC: fdp: make struct nci_ops static
author
Colin Ian King
<colin.king@canonical.com>
Thu, 5 Oct 2017 09:47:12 +0000
(10:47 +0100)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Mon, 6 Nov 2017 00:05:50 +0000
(
01:05
+0100)
The structure nci_ops is local to the source and does not need to
be in global scope, so make it static.
Cleans up sparse warning:
symbol 'nci_ops' was not declared. Should it be static?
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/nfc/fdp/fdp.c
patch
|
blob
|
history
diff --git
a/drivers/nfc/fdp/fdp.c
b/drivers/nfc/fdp/fdp.c
index ec50027b0d8ba327b5b125249e1fdc142426b7e9..d5784a47fc1309387d4862f65840f3b4765f065b 100644
(file)
--- a/
drivers/nfc/fdp/fdp.c
+++ b/
drivers/nfc/fdp/fdp.c
@@
-726,7
+726,7
@@
static struct nci_driver_ops fdp_prop_ops[] = {
},
};
-struct nci_ops nci_ops = {
+st
atic st
ruct nci_ops nci_ops = {
.open = fdp_nci_open,
.close = fdp_nci_close,
.send = fdp_nci_send,