aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/spi/ads7846.h
diff options
context:
space:
mode:
authorImre Deak <imre.deak@nokia.com>2006-04-11 23:42:03 -0400
committerDmitry Torokhov <dtor_core@ameritech.net>2006-04-11 23:42:03 -0400
commit0b7018aae7e1798f55f736b9a77c201708aa0e33 (patch)
treeb561dbcdb07540ffc76616894dddfa8f787f9202 /include/linux/spi/ads7846.h
parent53a0ef89e95c725f3faab98573770aeb7429c1a3 (diff)
Input: ads7846 - debouncing and rudimentary sample filtering
Some touchscreens seem to oscillate heavily for a while after touching the screen.  Implement support for sampling the screen until we get two consecutive values that are close enough. Signed-off-by: Imre Deak <imre.deak@nokia.com> Signed-off-by: Juha Yrjola <juha.yrjola@nokia.com> Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'include/linux/spi/ads7846.h')
-rw-r--r--include/linux/spi/ads7846.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/spi/ads7846.h b/include/linux/spi/ads7846.h
index 72261e0f2ac1..3f7664951256 100644
--- a/include/linux/spi/ads7846.h
+++ b/include/linux/spi/ads7846.h
@@ -14,5 +14,8 @@ struct ads7846_platform_data {
14 u16 x_min, x_max; 14 u16 x_min, x_max;
15 u16 y_min, y_max; 15 u16 y_min, y_max;
16 u16 pressure_min, pressure_max; 16 u16 pressure_min, pressure_max;
17
18 u16 debounce_max; /* max number of readings per sample */
19 u16 debounce_tol; /* tolerance used for filtering */
17}; 20};
18 21