Skip to content

Commit

Permalink
NFC: fdp: make struct nci_ops static
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Samuel Ortiz <[email protected]>
  • Loading branch information
Colin Ian King authored and Samuel Ortiz committed Nov 6, 2017
1 parent 5057f66 commit 81ade1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/nfc/fdp/fdp.c
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,7 @@ static struct nci_driver_ops fdp_prop_ops[] = {
},
};

struct nci_ops nci_ops = {
static struct nci_ops nci_ops = {
.open = fdp_nci_open,
.close = fdp_nci_close,
.send = fdp_nci_send,
Expand Down

0 comments on commit 81ade1c

Please sign in to comment.