#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/kernel.h>
#include <linux/input.h>
#include <linux/interrupt.h>
#include <linux/i2c.h>
#include <linux/timer.h>
#include <linux/gpio.h>
#include <linux/input/eeti_ts.h>
#include <linux/slab.h>
Go to the source code of this file.
| #define EETI_TS_BITDEPTH (11) |
| #define REPORT_BIT_AD0 (1 << 1) |
| #define REPORT_BIT_AD1 (1 << 2) |
| #define REPORT_BIT_HAS_PRESSURE (1 << 6) |
| #define REPORT_BIT_PRESSED (1 << 0) |
| MODULE_DESCRIPTION |
( |
"EETI Touchscreen driver" |
| ) |
|
| MODULE_DEVICE_TABLE |
( |
i2c |
, |
|
|
eeti_ts_id |
|
|
) |
| |
| module_i2c_driver |
( |
eeti_ts_driver |
| ) |
|
| module_param |
( |
flip_x |
, |
|
|
bool |
, |
|
|
0644 |
|
|
) |
| |
| module_param |
( |
flip_y |
, |
|
|
bool |
, |
|
|
0644 |
|
|
) |
| |
| MODULE_PARM_DESC |
( |
flip_x |
, |
|
|
"flip x coordinate" |
|
|
) |
| |
| MODULE_PARM_DESC |
( |
flip_y |
, |
|
|
"flip y coordinate" |
|
|
) |
| |