#include "cyttsp4_core.h"
#include <linux/delay.h>
#include <linux/input.h>
#include <linux/spi/spi.h>
#define CY_SPI_WR_OP …
#define CY_SPI_RD_OP …
#define CY_SPI_BITS_PER_WORD …
#define CY_SPI_A8_BIT …
#define CY_SPI_WR_HEADER_BYTES …
#define CY_SPI_RD_HEADER_BYTES …
#define CY_SPI_CMD_BYTES …
#define CY_SPI_SYNC_BYTE …
#define CY_SPI_SYNC_ACK …
#define CY_SPI_DATA_SIZE …
#define CY_SPI_DATA_BUF_SIZE …
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 cyttsp4_bus_ops cyttsp_spi_bus_ops = …;
static int cyttsp4_spi_probe(struct spi_device *spi)
{ … }
static void cyttsp4_spi_remove(struct spi_device *spi)
{ … }
static struct spi_driver cyttsp4_spi_driver = …;
module_spi_driver(…) …;
MODULE_LICENSE(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;
MODULE_ALIAS(…) …;