From 205560bc4d37b75a7a327ba712a15c5becafa2aa Mon Sep 17 00:00:00 2001 From: Ravi Jain Date: Mon, 12 Sep 2022 14:51:39 +0800 Subject: touch: goodix: Resolve compilation issues when disabling GTI features. Test: Compiled locally with GTI disabled. Bug: 246200605 Signed-off-by: Ravi Jain Change-Id: I96841d5aa95af7a42902da168cd55d0a64f7cfde --- touch_apis.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'touch_apis.h') 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); -- cgit v1.2.3