Skip to contentSkip to conversation

NFC: pn533: Staticize local symbols

PATCH New Jingoo Han 1 participant 1 message Aug 12, 2013 NFC

lore
Share & tools
lore

Jingoo Han

author
#0 lore raw

PATCH 2/2 NFC: pn533: Staticize local symbols

These local symbols are used only in this file.
Fix the following sparse warnings:

drivers/nfc/pn533.c:2576:5: warning: symbol 'pn533_dev_up' was not declared. Should it be static? drivers/nfc/pn533.c:2581:5: warning: symbol 'pn533_dev_down' was not declared. Should it be static?

---
 drivers/nfc/pn533.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/nfc/pn533.c +2 -2
index daf92ac..1746225 100644
@@ -2573,12 +2573,12 @@ static int pn533_rf_field(struct nfc_dev *nfc_dev, u8 rf)
 	return rc;
 }
 
-int pn533_dev_up(struct nfc_dev *nfc_dev)
+static int pn533_dev_up(struct nfc_dev *nfc_dev)
 {
 	return pn533_rf_field(nfc_dev, 1);
 }
 
-int pn533_dev_down(struct nfc_dev *nfc_dev)
+static int pn533_dev_down(struct nfc_dev *nfc_dev)
 {
 	return pn533_rf_field(nfc_dev, 0);
 }
Signature · 1 line
1.7.10.4