#include "cyttsp_core.h"
#include <linux/delay.h>
#include <linux/input.h>
#include <linux/spi/spi.h>
#define CY_SPI_NAME …
#define CY_SPI_WR_OP …
#define CY_SPI_RD_OP …
#define CY_SPI_CMD_BYTES …
#define CY_SPI_SYNC_BYTE …
#define CY_SPI_SYNC_ACK1 …
#define CY_SPI_SYNC_ACK2 …
#define CY_SPI_DATA_SIZE …
#define CY_SPI_DATA_BUF_SIZE …
#define CY_SPI_BITS_PER_WORD …
static int cyttsp_spi_xfer(struct device *dev, u8 *xfer_buf,
u8 op, u16 reg, u8 *buf, int length)
{ … }
static int cyttsp_spi_read_block_data(struct device *dev, u8 *xfer_buf,
u16 addr, u8 length, void *data)
{ … }
static int cyttsp_spi_write_block_data(struct device *dev, u8 *xfer_buf,
u16 addr, u8 length, const void *data)
{ … }
static const struct cyttsp_bus_ops cyttsp_spi_bus_ops = …;
static int cyttsp_spi_probe(struct spi_device *spi)
{ … }
static const struct of_device_id cyttsp_of_spi_match[] = …;
MODULE_DEVICE_TABLE(of, cyttsp_of_spi_match);
static struct spi_driver cyttsp_spi_driver = …;
module_spi_driver(…) …;
MODULE_LICENSE(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;
MODULE_ALIAS(…) …;