summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorEric Miao <eric.y.miao@gmail.com>2008-09-10 12:06:15 -0400
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2008-09-10 12:13:28 -0400
commit4d5975e5016a9025814b92981de21eaf9203caa6 (patch)
treed1bc92acac3db21a5e92795ed7802f3776acb0bd /include
parent0d46ed1c747edfe6476961d4d9f732ceb7a29074 (diff)
downloadop-kernel-dev-4d5975e5016a9025814b92981de21eaf9203caa6.zip
op-kernel-dev-4d5975e5016a9025814b92981de21eaf9203caa6.tar.gz
Input: ads7846 - introduce .gpio_pendown to get pendown state
The GPIO connected to ADS7846 nPENIRQ signal is usually used to get the pendown state as well. Introduce a .gpio_pendown, and use this to decide the pendown state if .get_pendown_state is NULL. Signed-off-by: Eric Miao <eric.miao@marvell.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'include')
-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 daf7440..05eab2f 100644
--- a/include/linux/spi/ads7846.h
+++ b/include/linux/spi/ads7846.h
@@ -43,6 +43,9 @@ struct ads7846_platform_data {
u16 debounce_tol; /* tolerance used for filtering */
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
+ */
int (*get_pendown_state)(void);
int (*filter_init) (struct ads7846_platform_data *pdata,
void **filter_data);
OpenPOWER on IntegriCloud