NFC: fdp: make struct nci_ops static
authorColin Ian King <colin.king@canonical.com>
Thu, 5 Oct 2017 09:47:12 +0000 (10:47 +0100)
committerSamuel 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

index ec50027b0d8ba327b5b125249e1fdc142426b7e9..d5784a47fc1309387d4862f65840f3b4765f065b 100644 (file)
@@ -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,