summaryrefslogtreecommitdiff
path: root/touch_apis.h
diff options
context:
space:
mode:
Diffstat (limited to 'touch_apis.h')
-rw-r--r--touch_apis.h2
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);