diff options
author | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2012-10-10 22:18:29 +0200 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2012-10-10 22:18:29 +0200 |
commit | 201e47d7b6d8eb85ab864bdead085fab8cbec1e2 (patch) | |
tree | fcc5253ecc7b23af6a5e59aa6abf80d8e22cedc0 | |
parent | 14e0d1fb0cd224dfcf33e153325ccc2a9361d490 (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.c | 2 |
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; } |