diff options
author | Wendly Li <wendlyli@google.com> | 2022-05-30 12:22:28 +0000 |
---|---|---|
committer | Wendly Li <wendlyli@google.com> | 2022-06-24 06:00:02 +0000 |
commit | 616086ad731981c95fd01f915538f7a5da60804c (patch) | |
tree | 68bc6d13aa02b3b942301d4e64d8a4268ae2d2ac /goodix_ts_core.h | |
parent | beb4b57d63552662a471943e001286d5f82bee68 (diff) | |
download | goodix_touch-616086ad731981c95fd01f915538f7a5da60804c.tar.gz |
goodix: Support screen protector mode
Bug: 214118813
Bug: 214118988
Test: Be able to set/get screen protector mode
Change-Id: Id9464c4d565f9d104ef8e1a83cb3f80aa17b6828
Signed-off-by: Wendly Li <wendlyli@google.com>
Diffstat (limited to 'goodix_ts_core.h')
-rw-r--r-- | goodix_ts_core.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/goodix_ts_core.h b/goodix_ts_core.h index fb0df20..2992a53 100644 --- a/goodix_ts_core.h +++ b/goodix_ts_core.h @@ -594,6 +594,10 @@ struct goodix_ts_hw_ops { int (*get_palm_enabled)(struct goodix_ts_core *cd, bool* enabled); int (*set_grip_enabled)(struct goodix_ts_core *cd, bool enabled); int (*get_grip_enabled)(struct goodix_ts_core *cd, bool* enabled); + int (*set_screen_protector_mode_enabled)( + struct goodix_ts_core *cd, bool enabled); + int (*get_screen_protector_mode_enabled)( + struct goodix_ts_core *cd, bool* enabled); }; /* @@ -654,6 +658,7 @@ struct goodix_ts_core { atomic_t irq_enabled; atomic_t suspended; + bool screen_protector_mode_enabled; /* when this flag is true, driver should not clean the sync flag */ bool tools_ctrl_sync; |