summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Ziswiler <marcel.ziswiler@toradex.com>2012-10-10 22:18:29 +0200
committerMax Krummenacher <max.krummenacher@toradex.com>2014-06-05 13:23:28 +0200
commit5c678f068ad8b4fef733b8f888e9ee308c17242f (patch)
treebdba83c3d8e3fc7cea1fb3d0b0a9f5cf35e5755e
parent299860206da1bf98282f3e71f6004d7e49482b68 (diff)
input: stmpe-ts: fix touch release detection
Previous HZ / 50 calculation allowed for a touch sampling time of 20 ms which is not sufficient if either the touch detect delay or the settling time is longer than 500 us.
-rw-r--r--drivers/input/touchscreen/stmpe-ts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/stmpe-ts.c b/drivers/input/touchscreen/stmpe-ts.c
index 59e81b00f244..89e9d9c8031d 100644
--- a/drivers/input/touchscreen/stmpe-ts.c
+++ b/drivers/input/touchscreen/stmpe-ts.c
@@ -165,7 +165,7 @@ static irqreturn_t stmpe_ts_handler(int irq, void *data)
STMPE_TSC_CTRL_TSC_EN, STMPE_TSC_CTRL_TSC_EN);
/* start polling for touch_det to detect release */
- schedule_delayed_work(&ts->work, HZ / 50);
+ schedule_delayed_work(&ts->work, HZ / 10);
return IRQ_HANDLED;
}