From dd6f6f0e7cf4af62cdd3b8098a56930dfa7632fc Mon Sep 17 00:00:00 2001 From: wengjun1 Date: Tue, 21 Apr 2020 16:56:49 +0800 Subject: [PATCH] dlkm: Himax: Apply for new interface for single tap - Since now display has updated new interface for wakeup gesture, apply the new interface to implement single tap for TDDI. Change-Id: I0ee716b60cd1ef244d645a4a6735ad454288b98f Signed-off-by: wengjun1 Reviewed-on: https://gerrit.mot.com/1538941 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Jianqiu Huang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- .../touchscreen/himax_0flash_mmi/himax_platform_QCT_SPI.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/himax_0flash_mmi/himax_platform_QCT_SPI.c b/drivers/input/touchscreen/himax_0flash_mmi/himax_platform_QCT_SPI.c index e4e58bf980b2..76918e88cb75 100755 --- a/drivers/input/touchscreen/himax_0flash_mmi/himax_platform_QCT_SPI.c +++ b/drivers/input/touchscreen/himax_0flash_mmi/himax_platform_QCT_SPI.c @@ -1060,7 +1060,9 @@ int panel_notifier_callback(struct notifier_block *self, unsigned long event, vo #ifdef HIMAX_V2_SENSOR_EN if (ts->SMWP_enable) { I("%s: tap detection is enabled", __func__); - return 1; + touch_set_state(TOUCH_LOW_POWER_STATE, TOUCH_PANEL_IDX_PRIMARY); + } else { + touch_set_state(TOUCH_DEEP_SLEEP_STATE, TOUCH_PANEL_IDX_PRIMARY); } #endif break;