linux/drivers/input/touchscreen/goodix_berlin_spi.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Goodix Berlin Touchscreen Driver
 *
 * Copyright (C) 2020 - 2021 Goodix, Inc.
 * Copyright (C) 2023 Linaro Ltd.
 *
 * Based on goodix_ts_berlin driver.
 */
#include <linux/unaligned.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/regmap.h>
#include <linux/spi/spi.h>
#include <linux/input.h>

#include "goodix_berlin.h"

#define GOODIX_BERLIN_SPI_TRANS_PREFIX_LEN
#define GOODIX_BERLIN_REGISTER_WIDTH
#define GOODIX_BERLIN_SPI_READ_DUMMY_LEN
#define GOODIX_BERLIN_SPI_READ_PREFIX_LEN
#define GOODIX_BERLIN_SPI_WRITE_PREFIX_LEN

#define GOODIX_BERLIN_SPI_WRITE_FLAG
#define GOODIX_BERLIN_SPI_READ_FLAG

static int goodix_berlin_spi_read(void *context, const void *reg_buf,
				  size_t reg_size, void *val_buf,
				  size_t val_size)
{}

static int goodix_berlin_spi_write(void *context, const void *data,
				   size_t count)
{}

static const struct regmap_config goodix_berlin_spi_regmap_conf =;

/* vendor & product left unassigned here, should probably be updated from fw info */
static const struct input_id goodix_berlin_spi_input_id =;

static int goodix_berlin_spi_probe(struct spi_device *spi)
{}

static const struct spi_device_id goodix_berlin_spi_ids[] =;
MODULE_DEVICE_TABLE(spi, goodix_berlin_spi_ids);

static const struct of_device_id goodix_berlin_spi_of_match[] =;
MODULE_DEVICE_TABLE(of, goodix_berlin_spi_of_match);

static struct spi_driver goodix_berlin_spi_driver =;
module_spi_driver();

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