linux/drivers/input/touchscreen/cyttsp4_spi.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Source for:
 * Cypress TrueTouch(TM) Standard Product (TTSP) SPI touchscreen driver.
 * For use with Cypress Txx4xx parts.
 * Supported parts include:
 * TMA4XX
 * TMA1036
 *
 * Copyright (C) 2009, 2010, 2011 Cypress Semiconductor, Inc.
 * Copyright (C) 2012 Javier Martinez Canillas <[email protected]>
 * Copyright (C) 2013 Cypress Semiconductor
 *
 * Contact Cypress Semiconductor at www.cypress.com <[email protected]>
 */

#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();