summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMarcel Ziswiler <marcel.ziswiler@toradex.com>2012-10-10 22:18:29 +0200
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2012-10-10 22:18:29 +0200
commit201e47d7b6d8eb85ab864bdead085fab8cbec1e2 (patch)
treefcc5253ecc7b23af6a5e59aa6abf80d8e22cedc0 /drivers
parent14e0d1fb0cd224dfcf33e153325ccc2a9361d490 (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.
Diffstat (limited to 'drivers')
-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 5831318c4718..5ee159a3df5b 100644
--- a/drivers/input/touchscreen/stmpe-ts.c
+++ b/drivers/input/touchscreen/stmpe-ts.c
@@ -163,7 +163,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;
}