diff options
author | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2012-10-10 22:18:29 +0200 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2014-04-02 15:20:05 +0200 |
commit | b4f7fa9f273625ee630199f5c9209ae5d46a4de3 (patch) | |
tree | dceb02a27356023d324cd7193cf01cf2612384ea | |
parent | d41e5d7891eb8b501e4690fea1e31974d445af2b (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 15a4794204cf..afb030a89c75 100644 --- a/drivers/input/touchscreen/stmpe-ts.c +++ b/drivers/input/touchscreen/stmpe-ts.c @@ -152,7 +152,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; } |