All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] NFC: fix sparse warnings in pn533.c
@ 2012-06-14 20:07 Devendra Naga
  0 siblings, 0 replies; only message in thread
From: Devendra Naga @ 2012-06-14 20:07 UTC (permalink / raw)
  To: Lauro Ramos Venancio, Aloisio Almeida Jr, Samuel Ortiz,
	linux-wireless
  Cc: Devendra Naga

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 <devendra.aaru@gmail.com>
---
 drivers/nfc/pn533.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/nfc/pn533.c b/drivers/nfc/pn533.c
index 19110f0..9025708 100644
--- a/drivers/nfc/pn533.c
+++ b/drivers/nfc/pn533.c
@@ -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,
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-06-14 20:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-14 20:07 [PATCH] NFC: fix sparse warnings in pn533.c Devendra Naga

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.