#include "xilinx-core.h"
#include <linux/module.h>
#include <linux/mod_devicetable.h>
#include <linux/of.h>
#include <linux/spi/spi.h>
static int xilinx_spi_write(struct xilinx_fpga_core *core, const char *buf,
size_t count)
{ … }
static int xilinx_spi_probe(struct spi_device *spi)
{ … }
#ifdef CONFIG_OF
static const struct of_device_id xlnx_spi_of_match[] = …;
MODULE_DEVICE_TABLE(of, xlnx_spi_of_match);
#endif
static struct spi_driver xilinx_slave_spi_driver = …;
module_spi_driver(…) …
MODULE_LICENSE(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;