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