NFC: fix sparse warnings in pn533.c
PATCH 1/1 NFC: fix sparse warnings in pn533.c
these warnings were showed up,drivers/nfc/pn533.c:1410:42: warning: Using plain integer as NULL pointer drivers/nfc/pn533.c:1706:16: warning: symbol 'pn533_nfc_ops' was not declared. Should it be static?
Signed-off-by Devendra Naga <[email protected]>
--- drivers/nfc/pn533.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/nfc/pn533.c +2 -2
@@ -1407,7 +1407,7 @@ out:static int pn533_dep_link_down (struct nfc_dev *nfc_dev) { -pn533_deactivate_target (nfc_dev,0 ); +pn533_deactivate_target (nfc_dev,NULL );return 0 ; }
@@ -1703,7 +1703,7 @@ static int pn533_set_configuration(struct pn533 *dev, u8 cfgitem, u8 *cfgdata,return rc; } -struct nfc_ops pn533_nfc_ops = { +static struct nfc_ops pn533_nfc_ops = { .dev_up =NULL , .dev_down =NULL , .dep_link_up = pn533_dep_link_up,
Signature · 1 line
1.7.9.5