projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
944f8a1
)
nfc: add dummy nfc_llc_shdlc_register definition
author
John W. Linville
<linville@tuxdriver.com>
Wed, 26 Sep 2012 17:30:16 +0000
(13:30 -0400)
committer
John W. Linville
<linville@tuxdriver.com>
Wed, 26 Sep 2012 17:38:48 +0000
(13:38 -0400)
This is used when CONFIG_NFC_SHDLC is disabled.
Reported-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/nfc/hci/llc.h
patch
|
blob
|
blame
|
history
diff --git
a/net/nfc/hci/llc.h
b/net/nfc/hci/llc.h
index c7014fdfc8c969779030a6f19d66aff3a9488384..7be0b7f3ceb6aa34ec3adfa5f6b077c79cef3b24 100644
(file)
--- a/
net/nfc/hci/llc.h
+++ b/
net/nfc/hci/llc.h
@@
-56,6
+56,14
@@
int nfc_llc_register(const char *name, struct nfc_llc_ops *ops);
void nfc_llc_unregister(const char *name);
int nfc_llc_nop_register(void);
+
+#if defined(CONFIG_NFC_SHDLC)
int nfc_llc_shdlc_register(void);
+#else
+static inline int nfc_llc_shdlc_register(void)
+{
+ return 0;
+}
+#endif
#endif /* __LOCAL_LLC_H_ */