linux/drivers/input/touchscreen/egalax_ts_serial.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * EETI Egalax serial touchscreen driver
 *
 * Copyright (c) 2015 Zoltán Böszörményi <[email protected]>
 *
 * based on the
 *
 * Hampshire serial touchscreen driver (Copyright (c) 2010 Adam Bennett)
 */


#include <linux/errno.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/input.h>
#include <linux/serio.h>

#define DRIVER_DESC

/*
 * Definitions & global arrays.
 */

#define EGALAX_FORMAT_MAX_LENGTH
#define EGALAX_FORMAT_START_BIT
#define EGALAX_FORMAT_PRESSURE_BIT
#define EGALAX_FORMAT_TOUCH_BIT
#define EGALAX_FORMAT_RESOLUTION_MASK

#define EGALAX_MIN_XC
#define EGALAX_MAX_XC
#define EGALAX_MIN_YC
#define EGALAX_MAX_YC

/*
 * Per-touchscreen data.
 */
struct egalax {};

static void egalax_process_data(struct egalax *egalax)
{}

static irqreturn_t egalax_interrupt(struct serio *serio,
				    unsigned char data, unsigned int flags)
{}

/*
 * egalax_connect() is the routine that is called when someone adds a
 * new serio device that supports egalax protocol and registers it as
 * an input device. This is usually accomplished using inputattach.
 */
static int egalax_connect(struct serio *serio, struct serio_driver *drv)
{}

static void egalax_disconnect(struct serio *serio)
{}

/*
 * The serio driver structure.
 */

static const struct serio_device_id egalax_serio_ids[] =;

MODULE_DEVICE_TABLE(serio, egalax_serio_ids);

static struct serio_driver egalax_drv =;
module_serio_driver();

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