linux/drivers/input/touchscreen/ad7879-spi.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * AD7879/AD7889 touchscreen (SPI bus)
 *
 * Copyright (C) 2008-2010 Michael Hennerich, Analog Devices Inc.
 */

#include <linux/input.h>	/* BUS_SPI */
#include <linux/pm.h>
#include <linux/spi/spi.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/regmap.h>

#include "ad7879.h"

#define AD7879_DEVID

#define MAX_SPI_FREQ_HZ

#define AD7879_CMD_MAGIC
#define AD7879_CMD_READ

static const struct regmap_config ad7879_spi_regmap_config =;

static int ad7879_spi_probe(struct spi_device *spi)
{}

#ifdef CONFIG_OF
static const struct of_device_id ad7879_spi_dt_ids[] =;
MODULE_DEVICE_TABLE(of, ad7879_spi_dt_ids);
#endif

static struct spi_driver ad7879_spi_driver =;

module_spi_driver();

MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_LICENSE();
MODULE_ALIAS();