Input: ads7846 - introduce .gpio_pendown to get pendown state
authorEric Miao <eric.y.miao@gmail.com>
Wed, 10 Sep 2008 16:06:15 +0000 (12:06 -0400)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 17 Sep 2008 16:33:37 +0000 (17:33 +0100)
commit6ae19b04ab41a4db0f0c48ec0b78950f6b028823
tree9a9c38bc7be0741b19abbb345f5bd001bfc0ab97
parentadee14b2e1557d0a8559f29681732d05a89dfc35
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>
drivers/input/touchscreen/ads7846.c
include/linux/spi/ads7846.h