mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
ili9882_mmi:gesture mode improve
devon: set touch state when enable gesture to avoid panel reset when suspend Change-Id: I874c9d7b8e5f7bb98afe38393bdd37c120260ba8 Signed-off-by: hujing3 <hujing3@lenovo.com> Reviewed-on: https://gerrit.mot.com/2265698 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
2496d8de1f
commit
491f4e4523
1 changed files with 2 additions and 2 deletions
|
|
@ -446,7 +446,7 @@ static int ilitek_plat_notifier_fb(struct notifier_block *self, unsigned long ev
|
|||
{
|
||||
int *blank;
|
||||
struct drm_panel_notifier *evdata = data;
|
||||
#if defined(ILI_SENSOR_EN) && defined(ILI_SET_TOUCH_STATE)
|
||||
#if defined(ILI_SENSOR_EN) && (defined(ILI_SET_TOUCH_STATE) || defined(ILI_CONFIG_PANEL_NOTIFICATIONS))
|
||||
struct ilitek_ts_data *ts =
|
||||
container_of(self, struct ilitek_ts_data, notifier_fb);
|
||||
#endif
|
||||
|
|
@ -485,7 +485,7 @@ static int ilitek_plat_notifier_fb(struct notifier_block *self, unsigned long ev
|
|||
else
|
||||
ILI_INFO("TP in deep sleep!\n");
|
||||
}
|
||||
#elif defined(ILI_SENSOR_EN) && defined(ILI_SET_TOUCH_STATE)
|
||||
#elif defined(ILI_SENSOR_EN) && (defined(ILI_SET_TOUCH_STATE) || defined(ILI_CONFIG_PANEL_NOTIFICATIONS))
|
||||
if (ts->should_enable_gesture) {
|
||||
ILI_INFO("double tap gesture suspend\n");
|
||||
if (ili_sleep_handler(TP_SUSPEND) < 0)
|
||||
|
|
|
|||
Loading…
Reference in a new issue