diff options
Diffstat (limited to 'drivers/nfc/st-nci/core.c')
| -rw-r--r-- | drivers/nfc/st-nci/core.c | 7 | 
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/nfc/st-nci/core.c b/drivers/nfc/st-nci/core.c index 110ff1281e5f..a367136d4330 100644 --- a/drivers/nfc/st-nci/core.c +++ b/drivers/nfc/st-nci/core.c @@ -9,8 +9,6 @@  #include <linux/nfc.h>  #include <net/nfc/nci.h>  #include <net/nfc/nci_core.h> -#include <linux/gpio.h> -#include <linux/delay.h>  #include "st-nci.h" @@ -86,7 +84,7 @@ static int st_nci_prop_rsp_packet(struct nci_dev *ndev,  	return 0;  } -static struct nci_driver_ops st_nci_prop_ops[] = { +static const struct nci_driver_ops st_nci_prop_ops[] = {  	{  		.opcode = nci_opcode_pack(NCI_GID_PROPRIETARY,  					  ST_NCI_CORE_PROP), @@ -94,7 +92,7 @@ static struct nci_driver_ops st_nci_prop_ops[] = {  	},  }; -static struct nci_ops st_nci_ops = { +static const struct nci_ops st_nci_ops = {  	.init = st_nci_init,  	.open = st_nci_open,  	.close = st_nci_close, @@ -131,6 +129,7 @@ int st_nci_probe(struct llt_ndlc *ndlc, int phy_headroom,  		| NFC_PROTO_ISO15693_MASK  		| NFC_PROTO_NFC_DEP_MASK; +	BUILD_BUG_ON(ARRAY_SIZE(st_nci_prop_ops) > NCI_MAX_PROPRIETARY_CMD);  	ndlc->ndev = nci_allocate_device(&st_nci_ops, protocols,  					phy_headroom, phy_tailroom);  	if (!ndlc->ndev) {  | 
