From 201e47d7b6d8eb85ab864bdead085fab8cbec1e2 Mon Sep 17 00:00:00 2001 From: Marcel Ziswiler Date: Wed, 10 Oct 2012 22:18:29 +0200 Subject: 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. --- drivers/input/touchscreen/stmpe-ts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3