diff options
author | Ravi Jain <raviajain@google.com> | 2022-09-12 14:51:39 +0800 |
---|---|---|
committer | Ravi Jain <raviajain@google.com> | 2022-09-12 16:03:05 +0800 |
commit | 205560bc4d37b75a7a327ba712a15c5becafa2aa (patch) | |
tree | e259925ea4bb3d8758611de50d15706c68cb9bee /touch_apis.h | |
parent | 95b57280ad938e7916da9af53985cac9f3cb9787 (diff) | |
download | goodix_touch-205560bc4d37b75a7a327ba712a15c5becafa2aa.tar.gz |
touch: goodix: Resolve compilation issues when disabling GTI features.
Test: Compiled locally with GTI disabled.
Bug: 246200605
Signed-off-by: Ravi Jain <raviajain@google.com>
Change-Id: I96841d5aa95af7a42902da168cd55d0a64f7cfde
Diffstat (limited to 'touch_apis.h')
-rw-r--r-- | touch_apis.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/touch_apis.h b/touch_apis.h index 1633211..c7aa20d 100644 --- a/touch_apis.h +++ b/touch_apis.h @@ -48,10 +48,12 @@ struct touch_apis_data { int (*software_reset)(struct device *dev); int (*set_scan_mode)(struct device *dev, enum scan_mode mode); int (*set_sensing_enabled)(struct device *dev, bool enabled); +#if IS_ENABLED(CONFIG_GTI_PM) bool (*get_wake_lock_state)( struct device *dev, enum gti_pm_wakelock_type type); int (*set_wake_lock_state)( struct device *dev, enum gti_pm_wakelock_type type, bool locked); +#endif }; extern int touch_apis_init(struct device *dev, struct touch_apis_data *data); |