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)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 10 Sep 2008 16:13:28 +0000 (12:13 -0400)
commit4d5975e5016a9025814b92981de21eaf9203caa6
treed1bc92acac3db21a5e92795ed7802f3776acb0bd
parent0d46ed1c747edfe6476961d4d9f732ceb7a29074
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