summaryrefslogtreecommitdiff
path: root/goodix_ts_core.h
diff options
context:
space:
mode:
authorWendly Li <wendlyli@google.com>2022-03-01 19:40:37 +0000
committerWendly Li <wendlyli@google.com>2022-03-28 03:37:03 +0000
commit8e96b34084994ee6a085b7be916886ddcbe547b5 (patch)
tree4909adf10715b4c718a5ae6077349d3b24d07d8f /goodix_ts_core.h
parent9d66e88a3704ee82c67c617ec6e7c9cef2403dca (diff)
downloadgoodix_touch-8e96b34084994ee6a085b7be916886ddcbe547b5.tar.gz
Add motion filter mode
Bug: 214118990 Test: Check mf_mode works properly Change-Id: I4dca2a71a396e7cff1cd5b7cc4d728a15312b8a9 Signed-off-by: Wendly Li <wendlyli@google.com>
Diffstat (limited to 'goodix_ts_core.h')
-rw-r--r--goodix_ts_core.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/goodix_ts_core.h b/goodix_ts_core.h
index 6da626a..62a7233 100644
--- a/goodix_ts_core.h
+++ b/goodix_ts_core.h
@@ -43,6 +43,9 @@
#if IS_ENABLED(CONFIG_TOUCHSCREEN_PM)
#include "touch_pm.h"
#endif
+#if IS_ENABLED(CONFIG_TOUCHSCREEN_MOTION_FILTER)
+#include "touch_mf_mode.h"
+#endif
#define GOODIX_CORE_DRIVER_NAME "goodix_ts"
#define GOODIX_PEN_DRIVER_NAME "goodix_ts,pen"
@@ -471,6 +474,8 @@ struct goodix_ts_hw_ops {
struct goodix_ts_core *cd, struct ts_rawdata_info *info);
int (*ping)(struct goodix_ts_core *cd);
int (*set_scan_mode)(struct goodix_ts_core *cd, int mdoe);
+ int (*set_continuously_report_enabled)(
+ struct goodix_ts_core *cd, bool enabled);
};
/*
@@ -537,6 +542,9 @@ struct goodix_ts_core {
#if IS_ENABLED(CONFIG_TOUCHSCREEN_PM)
struct touch_pm tpm;
#endif
+#if IS_ENABLED(CONFIG_TOUCHSCREEN_MOTION_FILTER)
+ struct touch_mf tmf;
+#endif
};
/* external module structures */