summaryrefslogtreecommitdiff
path: root/goodix_ts_core.h
diff options
context:
space:
mode:
authorWendly Li <wendlyli@google.com>2022-02-08 02:12:25 +0000
committerWendly Li <wendlyli@google.com>2022-02-11 11:06:50 +0000
commite286e1f6629672757861e310ec65f10181be865e (patch)
tree1d80f2ea7858f0676b468269634eea76b6e13ea9 /goodix_ts_core.h
parent31f49bb87d1d5e7d7085ac5bb5460914cc675086 (diff)
downloadgoodix_touch-e286e1f6629672757861e310ec65f10181be865e.tar.gz
Add APIs for factory
Bug: 214118886 Bug: 216386146 Bug: 216578458 Test: check sysfs works properly Change-Id: I51f83d192a9068ec2cdb93300a5834b839839aa1 Signed-off-by: Wendly Li <wendlyli@google.com>
Diffstat (limited to 'goodix_ts_core.h')
-rw-r--r--goodix_ts_core.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/goodix_ts_core.h b/goodix_ts_core.h
index 92d12a7..f774f0d 100644
--- a/goodix_ts_core.h
+++ b/goodix_ts_core.h
@@ -39,6 +39,7 @@
#include <linux/fb.h>
#include <linux/notifier.h>
#endif
+#include "touch_apis.h"
#define GOODIX_CORE_DRIVER_NAME "goodix_ts"
#define GOODIX_PEN_DRIVER_NAME "goodix_ts,pen"
@@ -464,6 +465,7 @@ struct goodix_ts_hw_ops {
int (*after_event_handler)(struct goodix_ts_core *cd);
int (*get_capacitance_data)(
struct goodix_ts_core *cd, struct ts_rawdata_info *info);
+ int (*ping)(struct goodix_ts_core *cd);
};
/*
@@ -499,6 +501,7 @@ struct goodix_ts_core {
struct goodix_ic_info ic_info;
struct goodix_bus_interface *bus;
struct goodix_ts_board_data board_data;
+ struct touch_apis_data apis_data;
struct goodix_ts_hw_ops *hw_ops;
struct input_dev *input_dev;
struct input_dev *pen_dev;