#include <linux/module.h>
#include <linux/slab.h>
#include <linux/gpio/consumer.h>
#include <linux/input.h>
#include <linux/interrupt.h>
#include <linux/i2c.h>
#include <linux/mod_devicetable.h>
#include <linux/property.h>
#include <linux/platform_data/tsc2007.h>
#include "tsc2007.h"
int tsc2007_xfer(struct tsc2007 *tsc, u8 cmd)
{ … }
static void tsc2007_read_values(struct tsc2007 *tsc, struct ts_event *tc)
{ … }
u32 tsc2007_calculate_resistance(struct tsc2007 *tsc, struct ts_event *tc)
{ … }
bool tsc2007_is_pen_down(struct tsc2007 *ts)
{ … }
static irqreturn_t tsc2007_soft_irq(int irq, void *handle)
{ … }
static void tsc2007_stop(struct tsc2007 *ts)
{ … }
static int tsc2007_open(struct input_dev *input_dev)
{ … }
static void tsc2007_close(struct input_dev *input_dev)
{ … }
static int tsc2007_get_pendown_state_gpio(struct device *dev)
{ … }
static int tsc2007_probe_properties(struct device *dev, struct tsc2007 *ts)
{ … }
static int tsc2007_probe_pdev(struct device *dev, struct tsc2007 *ts,
const struct tsc2007_platform_data *pdata,
const struct i2c_device_id *id)
{ … }
static void tsc2007_call_exit_platform_hw(void *data)
{ … }
static int tsc2007_probe(struct i2c_client *client)
{ … }
static const struct i2c_device_id tsc2007_idtable[] = …;
MODULE_DEVICE_TABLE(i2c, tsc2007_idtable);
static const struct of_device_id tsc2007_of_match[] = …;
MODULE_DEVICE_TABLE(of, tsc2007_of_match);
static struct i2c_driver tsc2007_driver = …;
module_i2c_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;