Input: ads7846 - re-check pendown status before reporting events
authorSemih Hazar <semih.hazar@indefia.com>
Wed, 18 Jul 2007 04:36:04 +0000 (00:36 -0400)
committerDmitry Torokhov <dtor@insightbb.com>
Wed, 18 Jul 2007 04:36:04 +0000 (00:36 -0400)
Pendown status from the PENIRQ pin is currently read only at the beginning
of a sample set. If the pen is lifted just after sampling has began then
sampled values become wrong.

This patch adds an optional platform penirq_recheck_delay attribute.  If
non-zero, samples are only reported to the input subsystem if PENIRQ is
still active that long after the samples taken.

Signed-off-by: Semih Hazar <semih.hazar@indefia.com>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>

No differences found