summaryrefslogtreecommitdiff
path: root/goodix_ts_core.h
diff options
context:
space:
mode:
authorWendly Li <wendlyli@google.com>2022-03-02 12:20:36 +0000
committerWendly Li <wendlyli@google.com>2022-03-28 03:37:11 +0000
commit38edba55c1917241b0dabff069082a3b5f48d5bc (patch)
tree1f8d88d30bb3a39cbb6f5dc728df30be11729672 /goodix_ts_core.h
parent8e96b34084994ee6a085b7be916886ddcbe547b5 (diff)
downloadgoodix_touch-38edba55c1917241b0dabff069082a3b5f48d5bc.tar.gz
Support reporting timestamp
Bug: 214118926 Test: Check timestamp is correct Change-Id: Ia296c41eb35f029f1098d75cff738675b1cbf06b Signed-off-by: Wendly Li <wendlyli@google.com>
Diffstat (limited to 'goodix_ts_core.h')
-rw-r--r--goodix_ts_core.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/goodix_ts_core.h b/goodix_ts_core.h
index 62a7233..db366eb 100644
--- a/goodix_ts_core.h
+++ b/goodix_ts_core.h
@@ -545,6 +545,12 @@ struct goodix_ts_core {
#if IS_ENABLED(CONFIG_TOUCHSCREEN_MOTION_FILTER)
struct touch_mf tmf;
#endif
+
+ /* Time that the event was first received from the touch IC,
+ * acquired during hard interrupt, in CLOCK_MONOTONIC.
+ */
+ ktime_t isr_timestamp;
+ ktime_t coords_timestamp;
};
/* external module structures */