diff options
author | Semih Hazar <semih.hazar@indefia.com> | 2007-07-18 00:36:04 -0400 |
---|---|---|
committer | Dmitry Torokhov <dtor@insightbb.com> | 2007-07-18 00:36:04 -0400 |
commit | 1d25891f3241103d14ea78236504474a138b8ada (patch) | |
tree | caeef0ea5f41eae2a005b6eab642e823d4791a0f /include | |
parent | e4f48861993294c27849076741eb0c090482560b (diff) | |
download | op-kernel-dev-1d25891f3241103d14ea78236504474a138b8ada.zip op-kernel-dev-1d25891f3241103d14ea78236504474a138b8ada.tar.gz |
Input: ads7846 - re-check pendown status before reporting events
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/spi/ads7846.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/spi/ads7846.h b/include/linux/spi/ads7846.h index a44fa7a..334d314 100644 --- a/include/linux/spi/ads7846.h +++ b/include/linux/spi/ads7846.h @@ -24,6 +24,12 @@ struct ads7846_platform_data { */ u16 settle_delay_usecs; + /* If set to non-zero, after samples are taken this delay is applied + * and penirq is rechecked, to help avoid false events. This value + * is affected by the material used to build the touch layer. + */ + u16 penirq_recheck_delay_usecs; + u16 x_plate_ohms; u16 y_plate_ohms; |