linux/drivers/input/touchscreen/touchright.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Touchright serial touchscreen driver
 *
 * Copyright (c) 2006 Rick Koch <[email protected]>
 *
 * Based on MicroTouch driver (drivers/input/touchscreen/mtouch.c)
 * Copyright (c) 2004 Vojtech Pavlik
 * and Dan Streetman <[email protected]>
 */


#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

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

/*
 * Definitions & global arrays.
 */

#define TR_FORMAT_TOUCH_BIT
#define TR_FORMAT_STATUS_BYTE
#define TR_FORMAT_STATUS_MASK

#define TR_LENGTH

#define TR_MIN_XC
#define TR_MAX_XC
#define TR_MIN_YC
#define TR_MAX_YC

/*
 * Per-touchscreen data.
 */

struct tr {};

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

/*
 * tr_disconnect() is the opposite of tr_connect()
 */

static void tr_disconnect(struct serio *serio)
{}

/*
 * tr_connect() is the routine that is called when someone adds a
 * new serio device that supports the Touchright protocol and registers it as
 * an input device.
 */

static int tr_connect(struct serio *serio, struct serio_driver *drv)
{}

/*
 * The serio driver structure.
 */

static const struct serio_device_id tr_serio_ids[] =;

MODULE_DEVICE_TABLE(serio, tr_serio_ids);

static struct serio_driver tr_drv =;

module_serio_driver();