diff --git a/drivers/input/touchscreen/ili9882_mmi/ili9882_qcom.c b/drivers/input/touchscreen/ili9882_mmi/ili9882_qcom.c index 7a0ae39a3ea8..c78642676504 100755 --- a/drivers/input/touchscreen/ili9882_mmi/ili9882_qcom.c +++ b/drivers/input/touchscreen/ili9882_mmi/ili9882_qcom.c @@ -443,6 +443,7 @@ static int ilitek_plat_notifier_fb(struct notifier_block *self, unsigned long ev */ if (event == DRM_PANEL_EARLY_EVENT_BLANK) { +#if ENABLE_GESTURE if (ilits->tp_module == MODEL_TM) { if (ili_sleep_handler(TP_DEEP_SLEEP) < 0) ILI_ERR("TP deep sleep in failed\n"); @@ -450,6 +451,16 @@ static int ilitek_plat_notifier_fb(struct notifier_block *self, unsigned long ev if (ili_sleep_handler(TP_SUSPEND) < 0) ILI_ERR("TP suspend failed\n"); } +#else + //enter deep sleep when not enable gesture + if (ili_sleep_handler(TP_DEEP_SLEEP) < 0) + { + ILI_ERR("TP deep sleep in failed\n"); + } else { + ILI_INFO("TP in deep sleep\n"); + } +#endif + #ifdef ILI_CONFIG_GESTURE touch_set_state(TOUCH_LOW_POWER_STATE, TOUCH_PANEL_IDX_PRIMARY); #endif