linux/drivers/input/touchscreen/cyttsp_spi.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Source for:
 * Cypress TrueTouch(TM) Standard Product (TTSP) SPI touchscreen driver.
 * For use with Cypress Txx3xx parts.
 * Supported parts include:
 * CY8CTST341
 * CY8CTMA340
 *
 * 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 "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();