From fb0814d17d7f3fd80a22ecdc7c22bfc58f84261a Mon Sep 17 00:00:00 2001 From: Wendly Li Date: Tue, 15 Feb 2022 15:40:27 +0000 Subject: Register touch power manager Bug: 214118711 Test: Check suspend and resume works when display on/off Signed-off-by: Wendly Li Change-Id: Iff62c310c419891850c25555c238818182ecc010 --- goodix_ts_core.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'goodix_ts_core.h') diff --git a/goodix_ts_core.h b/goodix_ts_core.h index f774f0d..e9143cb 100644 --- a/goodix_ts_core.h +++ b/goodix_ts_core.h @@ -40,6 +40,9 @@ #include #endif #include "touch_apis.h" +#if IS_ENABLED(CONFIG_TOUCHSCREEN_PM) +#include "touch_pm.h" +#endif #define GOODIX_CORE_DRIVER_NAME "goodix_ts" #define GOODIX_PEN_DRIVER_NAME "goodix_ts,pen" @@ -529,6 +532,9 @@ struct goodix_ts_core { #if IS_ENABLED(CONFIG_FB) struct notifier_block fb_notifier; #endif +#if IS_ENABLED(CONFIG_TOUCHSCREEN_PM) + struct touch_pm tpm; +#endif }; /* external module structures */ -- cgit v1.2.3