aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorImre Deak <imre.deak@nokia.com>2006-04-26 00:13:18 -0400
committerDmitry Torokhov <dtor_core@ameritech.net>2006-04-26 00:13:18 -0400
commitd5b415c95f0e6510451f1446cea832c1f77bd7ea (patch)
tree39bd4140c5e80082c20a1a6a4a0bad1df83b63ca /include
parentae82d5ab05068fccef2329f4607670f24c41606f (diff)
Input: ads7846 - improve filtering for thumb press accuracy
Providing more accurate coordinates for thumb press requires additional steps in the filtering logic: - Ignore samples found invalid by the debouncing logic, or the ones that have out of bound pressure value. - Add a parameter to repeat debouncing, so that more then two consecutive good readings are required for a valid sample. Signed-off-by: Imre Deak <imre.deak@nokia.com> Acked-by: Juha Yrjola <juha.yrjola@nokia.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'include')
-rw-r--r--include/linux/spi/ads7846.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/spi/ads7846.h b/include/linux/spi/ads7846.h
index d8823e237e0b..adb3dafd33e9 100644
--- a/include/linux/spi/ads7846.h
+++ b/include/linux/spi/ads7846.h
@@ -15,9 +15,11 @@ struct ads7846_platform_data {
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 17
18 u16 debounce_max; /* max number of readings per sample */ 18 u16 debounce_max; /* max number of additional readings
19 * per sample */
19 u16 debounce_tol; /* tolerance used for filtering */ 20 u16 debounce_tol; /* tolerance used for filtering */
20 21 u16 debounce_rep; /* additional consecutive good readings
22 * required after the first two */
21 int (*get_pendown_state)(void); 23 int (*get_pendown_state)(void);
22}; 24};
23 25