linux/drivers/input/touchscreen/ts4800-ts.c

/*
 * Touchscreen driver for the TS-4800 board
 *
 * Copyright (c) 2015 - Savoir-faire Linux
 *
 * This file is licensed under the terms of the GNU General Public
 * License version 2. This program is licensed "as is" without any
 * warranty of any kind, whether express or implied.
 */

#include <linux/bitops.h>
#include <linux/input.h>
#include <linux/io.h>
#include <linux/kernel.h>
#include <linux/mfd/syscon.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/regmap.h>

/* polling interval in ms */
#define POLL_INTERVAL

#define DEBOUNCE_COUNT

/* sensor values are 12-bit wide */
#define MAX_12BIT

#define PENDOWN_MASK

#define X_OFFSET
#define Y_OFFSET

struct ts4800_ts {};

static int ts4800_ts_open(struct input_dev *input_dev)
{}

static void ts4800_ts_close(struct input_dev *input_dev)
{}

static void ts4800_ts_poll(struct input_dev *input_dev)
{}

static int ts4800_parse_dt(struct platform_device *pdev,
			   struct ts4800_ts *ts)
{}

static int ts4800_ts_probe(struct platform_device *pdev)
{}

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

static struct platform_driver ts4800_ts_driver =;
module_platform_driver();

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