diff options
author | Imre Deak <imre.deak@nokia.com> | 2006-04-11 23:42:03 -0400 |
---|---|---|
committer | Dmitry Torokhov <dtor_core@ameritech.net> | 2006-04-11 23:42:03 -0400 |
commit | 0b7018aae7e1798f55f736b9a77c201708aa0e33 (patch) | |
tree | b561dbcdb07540ffc76616894dddfa8f787f9202 /include | |
parent | 53a0ef89e95c725f3faab98573770aeb7429c1a3 (diff) | |
download | op-kernel-dev-0b7018aae7e1798f55f736b9a77c201708aa0e33.zip op-kernel-dev-0b7018aae7e1798f55f736b9a77c201708aa0e33.tar.gz |
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')
-rw-r--r-- | include/linux/spi/ads7846.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/spi/ads7846.h b/include/linux/spi/ads7846.h index 72261e0..3f76649 100644 --- a/include/linux/spi/ads7846.h +++ b/include/linux/spi/ads7846.h @@ -14,5 +14,8 @@ struct ads7846_platform_data { u16 x_min, x_max; u16 y_min, y_max; u16 pressure_min, pressure_max; + + u16 debounce_max; /* max number of readings per sample */ + u16 debounce_tol; /* tolerance used for filtering */ }; |