Skip to content

Commit

Permalink
NFC: NCI: move generic spi driver to a module
Browse files Browse the repository at this point in the history
SPI driver should be a module.

Signed-off-by: Vincent Cuissard <cuissard@marvell.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
  • Loading branch information
Vincent Cuissard authored and Samuel Ortiz committed Oct 27, 2015
1 parent b5b3e23 commit fcd9d04
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion net/nfc/nci/Kconfig
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ config NFC_NCI
config NFC_NCI_SPI
depends on NFC_NCI && SPI
select CRC_CCITT
bool "NCI over SPI protocol support"
tristate "NCI over SPI protocol support"
default n
help
NCI (NFC Controller Interface) is a communication protocol between
3 changes: 2 additions & 1 deletion net/nfc/nci/Makefile
Original file line number Diff line number Diff line change
@@ -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-$(CONFIG_NFC_NCI_SPI) += spi.o
nci_spi-y += spi.o
obj-$(CONFIG_NFC_NCI_SPI) += nci_spi.o

nci_uart-y += uart.o
obj-$(CONFIG_NFC_NCI_UART) += nci_uart.o
4 changes: 4 additions & 0 deletions net/nfc/nci/spi.c
Original file line number Diff line number Diff line change
@@ -18,6 +18,8 @@

#define pr_fmt(fmt) "nci_spi: %s: " fmt, __func__

#include <linux/module.h>

#include <linux/export.h>
#include <linux/spi/spi.h>
#include <linux/crc-ccitt.h>
@@ -320,3 +322,5 @@ struct sk_buff *nci_spi_read(struct nci_spi *nspi)
return skb;
}
EXPORT_SYMBOL_GPL(nci_spi_read);

MODULE_LICENSE("GPL");

0 comments on commit fcd9d04

Please sign in to comment.