From 1866b6faa29d7424aeb894b75910f8e0684d41bc Mon Sep 17 00:00:00 2001 From: Thierry Reding Date: Tue, 17 May 2011 09:29:45 -0700 Subject: [PATCH] --- yaml --- r: 250521 b: refs/heads/master c: 4a1a42af0aba011e263098f107a2f45e0de2f279 h: refs/heads/master i: 250519: 369d34bf4d6b1dbfc13373cb2376d48494601cfc v: v3 --- [refs] | 2 +- trunk/drivers/input/touchscreen/tsc2007.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 56a80df446b9..1a5c7ead3e64 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: f1e430e6369f5edac552d99bff15369ef8c6bbd2 +refs/heads/master: 4a1a42af0aba011e263098f107a2f45e0de2f279 diff --git a/trunk/drivers/input/touchscreen/tsc2007.c b/trunk/drivers/input/touchscreen/tsc2007.c index 80467f262331..df4ae354969d 100644 --- a/trunk/drivers/input/touchscreen/tsc2007.c +++ b/trunk/drivers/input/touchscreen/tsc2007.c @@ -156,6 +156,7 @@ static void tsc2007_work(struct work_struct *work) { struct tsc2007 *ts = container_of(to_delayed_work(work), struct tsc2007, work); + bool debounced = false; struct ts_event tc; u32 rt; @@ -191,6 +192,7 @@ static void tsc2007_work(struct work_struct *work) * repeat at least once more the measurement. */ dev_dbg(&ts->client->dev, "ignored pressure %d\n", rt); + debounced = true; goto out; } @@ -225,7 +227,7 @@ static void tsc2007_work(struct work_struct *work) } out: - if (ts->pendown) + if (ts->pendown || debounced) schedule_delayed_work(&ts->work, msecs_to_jiffies(TS_POLL_PERIOD)); else