diff options
author | Wendly Li <wendlyli@google.com> | 2022-05-16 17:22:03 +0000 |
---|---|---|
committer | Wendly Li <wendlyli@google.com> | 2022-05-24 13:08:50 +0000 |
commit | 6afb5c204b55caaa2c87d5600b285c26bc61670f (patch) | |
tree | caf80fa97efedf7b8bd0e820b840fdd395a4bc96 /touch_apis.h | |
parent | 0a2c9717c36396bf882e2d8ac48b72309f20a458 (diff) | |
download | goodix_touch-6afb5c204b55caaa2c87d5600b285c26bc61670f.tar.gz |
goodix: Switch to GTI's motion filter
Bug: 214118837
Test: Check mf_mode node exists
Change-Id: I0337aaa8633e786c2cbd571179a2b4adb5d48a06
Signed-off-by: Wendly Li <wendlyli@google.com>
Diffstat (limited to 'touch_apis.h')
-rw-r--r-- | touch_apis.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/touch_apis.h b/touch_apis.h index d1a501f..18b7528 100644 --- a/touch_apis.h +++ b/touch_apis.h @@ -8,7 +8,9 @@ #ifndef _TOUCH_APIS_H_ #define _TOUCH_APIS_H_ +#if IS_ENABLED(CONFIG_TOUCHSCREEN_MOTION_FILTER) #include "touch_mf_mode.h" +#endif #include "touch_pm.h" enum scan_mode { @@ -30,8 +32,10 @@ enum reset_result { struct touch_apis_data { int reset_result; int scan_mode; +#if IS_ENABLED(CONFIG_TOUCHSCREEN_MOTION_FILTER) struct touch_mf *tmf; enum touch_mf_mode mf_mode; +#endif int (*get_fw_version)(struct device *dev, char *buf, size_t buf_size); int (*get_irq_enabled)(struct device *dev); |