aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Greer <mgreer@animalcreek.com>2017-06-15 09:41:26 -0700
committerSamuel Ortiz <sameo@linux.intel.com>2017-11-10 00:23:57 +0100
commitb6950690fa624d7ae17bbb70644b0c653df8044a (patch)
tree19d6344b4d62cdc9fbe29a7f4ae28ca87504a9c9
parent80f5a9cf13529c3f33353e7014270469a722b479 (diff)
downloadneard-b6950690fa624d7ae17bbb70644b0c653df8044a.tar.gz
nfctools: Move nciattach macros & enums to nciattach.c
Some header file macros and an enum were copied from Linux and placed in neard's include/nfc_copy.h file. That isn't the proper place as nfc_copy.h is supposed to be a pristine copy of the Linux nfc.h file. Move those header file definitions into tools/nciattach.c since that is the only file that uses them. Signed-off-by: Mark Greer <mgreer@animalcreek.com>
-rw-r--r--include/nfc_copy.h12
-rw-r--r--tools/nciattach.c12
2 files changed, 12 insertions, 12 deletions
diff --git a/include/nfc_copy.h b/include/nfc_copy.h
index 9e21738..0b25f5c 100644
--- a/include/nfc_copy.h
+++ b/include/nfc_copy.h
@@ -287,16 +287,4 @@ struct sockaddr_nfc_llcp {
#define NFC_LLCP_REMOTE_LTO 3
#define NFC_LLCP_REMOTE_RW 4
-#ifndef N_NCI
-#define N_NCI 25
-#endif
-
-/* Ioctl */
-#define NCIUARTSETDRIVER _IOW('U', 0, char *)
-
-enum nci_uart_driver {
- NCI_UART_DRIVER_MARVELL = 0,
- NCI_UART_DRIVER_MAX
-};
-
#endif /*__LINUX_NFC_H */
diff --git a/tools/nciattach.c b/tools/nciattach.c
index c71d9c7..370f98b 100644
--- a/tools/nciattach.c
+++ b/tools/nciattach.c
@@ -50,6 +50,18 @@
#define ENABLE_PM 1
#define DISABLE_PM 0
+#ifndef N_NCI
+#define N_NCI 25
+#endif
+
+/* Ioctl */
+#define NCIUARTSETDRIVER _IOW('U', 0, char *)
+
+enum nci_uart_driver {
+ NCI_UART_DRIVER_MARVELL = 0,
+ NCI_UART_DRIVER_MAX
+};
+
struct nci_driver_info {
const char *name;
enum nci_uart_driver driver_id;