aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/touchscreen
diff options
context:
space:
mode:
authorDaniel Hillenbrand <daniel.hillenbrand@codeworkx.de>2012-06-16 16:46:27 +0200
committerDaniel Hillenbrand <daniel.hillenbrand@codeworkx.de>2012-06-16 16:46:27 +0200
commit6e3fda02445d8deb384921edeb67582d4af1494d (patch)
tree4cff2501535fb94ec6e31ef2798484ab3016590f /drivers/input/touchscreen
parentce7b762837d2ca191580489dd655f8745cc32547 (diff)
downloadkernel_samsung_smdk4412-6e3fda02445d8deb384921edeb67582d4af1494d.zip
kernel_samsung_smdk4412-6e3fda02445d8deb384921edeb67582d4af1494d.tar.gz
kernel_samsung_smdk4412-6e3fda02445d8deb384921edeb67582d4af1494d.tar.bz2
cypress: user configurable touchled timeout, allow to force disable leds
Diffstat (limited to 'drivers/input/touchscreen')
-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);