Commit fcd9d046 authored by Vincent Cuissard's avatar Vincent Cuissard Committed by Samuel Ortiz

NFC: NCI: move generic spi driver to a module

SPI driver should be a module.
Signed-off-by: default avatarVincent Cuissard <cuissard@marvell.com>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent b5b3e23e
...@@ -12,7 +12,7 @@ config NFC_NCI ...@@ -12,7 +12,7 @@ config NFC_NCI
config NFC_NCI_SPI config NFC_NCI_SPI
depends on NFC_NCI && SPI depends on NFC_NCI && SPI
select CRC_CCITT select CRC_CCITT
bool "NCI over SPI protocol support" tristate "NCI over SPI protocol support"
default n default n
help help
NCI (NFC Controller Interface) is a communication protocol between NCI (NFC Controller Interface) is a communication protocol between
......
...@@ -6,7 +6,8 @@ obj-$(CONFIG_NFC_NCI) += nci.o ...@@ -6,7 +6,8 @@ obj-$(CONFIG_NFC_NCI) += nci.o
nci-objs := core.o data.o lib.o ntf.o rsp.o hci.o nci-objs := core.o data.o lib.o ntf.o rsp.o hci.o
nci-$(CONFIG_NFC_NCI_SPI) += spi.o nci_spi-y += spi.o
obj-$(CONFIG_NFC_NCI_SPI) += nci_spi.o
nci_uart-y += uart.o nci_uart-y += uart.o
obj-$(CONFIG_NFC_NCI_UART) += nci_uart.o obj-$(CONFIG_NFC_NCI_UART) += nci_uart.o
...@@ -18,6 +18,8 @@ ...@@ -18,6 +18,8 @@
#define pr_fmt(fmt) "nci_spi: %s: " fmt, __func__ #define pr_fmt(fmt) "nci_spi: %s: " fmt, __func__
#include <linux/module.h>
#include <linux/export.h> #include <linux/export.h>
#include <linux/spi/spi.h> #include <linux/spi/spi.h>
#include <linux/crc-ccitt.h> #include <linux/crc-ccitt.h>
...@@ -320,3 +322,5 @@ struct sk_buff *nci_spi_read(struct nci_spi *nspi) ...@@ -320,3 +322,5 @@ struct sk_buff *nci_spi_read(struct nci_spi *nspi)
return skb; return skb;
} }
EXPORT_SYMBOL_GPL(nci_spi_read); EXPORT_SYMBOL_GPL(nci_spi_read);
MODULE_LICENSE("GPL");
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment