aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/touchscreen/mms_ts.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/input/touchscreen/mms_ts.c')
-rw-r--r--drivers/input/touchscreen/mms_ts.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/input/touchscreen/mms_ts.c b/drivers/input/touchscreen/mms_ts.c
index 19a5490..3a7070d 100644
--- a/drivers/input/touchscreen/mms_ts.c
+++ b/drivers/input/touchscreen/mms_ts.c
@@ -51,6 +51,8 @@
#include <asm/unaligned.h>
//#include "mms_ts_fw.h"
+#include "../keyboard/cypress/cypress-touchkey.h"
+
#ifdef CONFIG_INPUT_FBSUSPEND
#ifdef CONFIG_DRM
#include <drm/drm_backlight.h>
@@ -891,6 +893,10 @@ static irqreturn_t mms_ts_interrupt(int irq, void *dev_id)
, angle, palm);
#else
if (info->finger_state[id] != 0) {
+
+ // report state to cypress-touchkey for backlight timeout
+ touchscreen_state_report(0);
+
#if defined(SEC_TSP_EVENT_DEBUG) && defined(CONFIG_TARGET_LOCALE_KOR)
printk(KERN_DEBUG "[TSP] POS[%d](%4d,%4d)[U] tp = %d\n",
id, x, y, touch_is_pressed);
@@ -936,6 +942,10 @@ static irqreturn_t mms_ts_interrupt(int irq, void *dev_id)
#else
if (info->finger_state[id] == 0) {
info->finger_state[id] = 1;
+
+ // report state to cypress-touchkey for backlight timeout
+ touchscreen_state_report(1);
+
#if defined(SEC_TSP_EVENT_DEBUG) && defined(CONFIG_TARGET_LOCALE_KOR)
printk(KERN_DEBUG "[TSP] POS[%d](%4d,%4d)[D] tp = %d\n",
id, x, y, touch_is_pressed);