summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorIgor Grinberg <grinberg@compulab.co.il>2012-11-20 23:00:10 -0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2012-11-21 13:09:56 -0800
commitc4f4925439f13a243aecfb36c693613603c0bfbd (patch)
treeaa8bc2513739c4729300d8c7dcf86184d9708d99 /include
parentc91cb7a75eaf65358aac5ea2b512ac60a9437ff4 (diff)
downloadlwn-c4f4925439f13a243aecfb36c693613603c0bfbd.tar.gz
lwn-c4f4925439f13a243aecfb36c693613603c0bfbd.zip
Input: ads7846 - enable pendown GPIO debounce time setting
Some platforms need the pendown GPIO debounce time setting programmed. Since the pendown GPIO is handled by the driver, the debounce time should also be handled along with the pendown GPIO request. Signed-off-by: Igor Grinberg <grinberg@compulab.co.il> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/spi/ads7846.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/spi/ads7846.h b/include/linux/spi/ads7846.h
index c64de9dd7631..2f694f3846a9 100644
--- a/include/linux/spi/ads7846.h
+++ b/include/linux/spi/ads7846.h
@@ -46,8 +46,9 @@ struct ads7846_platform_data {
u16 debounce_rep; /* additional consecutive good readings
* required after the first two */
int gpio_pendown; /* the GPIO used to decide the pendown
- * state if get_pendown_state == NULL
- */
+ * state if get_pendown_state == NULL */
+ int gpio_pendown_debounce; /* platform specific debounce time for
+ * the gpio_pendown */
int (*get_pendown_state)(void);
int (*filter_init) (const struct ads7846_platform_data *pdata,
void **filter_data);