input: touchscreen: add gt1x driver

Change-Id: Ic4c5abf51c3dd5383bdc91029afbc7c903c2093a
Signed-off-by: Weixin Zhou <zwx@rock-chips.com>
This commit is contained in:
Weixin Zhou 2018-01-16 16:07:44 +08:00 committed by Tao Huang
parent eb72037e1a
commit e58b8f0d41
4 changed files with 10 additions and 6 deletions

View File

@ -404,6 +404,9 @@ config TOUCHSCREEN_GOODIX
To compile this driver as a module, choose M here: the
module will be called goodix.
config TOUCHSCREEN_GT1X
tristate "GT1X touchscreens support"
config TOUCHSCREEN_HIDEEP
tristate "HiDeep Touch IC"
depends on I2C

View File

@ -45,6 +45,7 @@ obj-$(CONFIG_TOUCHSCREEN_EGALAX_SERIAL) += egalax_ts_serial.o
obj-$(CONFIG_TOUCHSCREEN_EXC3000) += exc3000.o
obj-$(CONFIG_TOUCHSCREEN_FUJITSU) += fujitsu_ts.o
obj-$(CONFIG_TOUCHSCREEN_GOODIX) += goodix.o
obj-$(CONFIG_TOUCHSCREEN_GT1X) += gt1x/
obj-$(CONFIG_TOUCHSCREEN_HIDEEP) += hideep.o
obj-$(CONFIG_TOUCHSCREEN_ILI210X) += ili210x.o
obj-$(CONFIG_TOUCHSCREEN_IMX6UL_TSC) += imx6ul_tsc.o

View File

@ -17,6 +17,7 @@
* Release Date: 2015/07/10
*/
#include <linux/compat.h>
#include <linux/interrupt.h>
#include <linux/i2c.h>
#include <linux/sched.h>

View File

@ -60,12 +60,11 @@ s8 IC_TYPE[16] = "GT1X";
static char procname[20] = { 0 };
static struct proc_dir_entry *gt1x_tool_proc_entry;
static struct file_operations gt1x_tool_fops = {
.read = gt1x_tool_read,
.write = gt1x_tool_write,
.open = gt1x_tool_open,
.release = gt1x_tool_release,
.owner = THIS_MODULE,
static const struct proc_ops gt1x_tool_fops = {
.proc_read = gt1x_tool_read,
.proc_write = gt1x_tool_write,
.proc_open = gt1x_tool_open,
.proc_release = gt1x_tool_release,
};
static void set_tool_node_name(char *procname)