original_kernel/drivers/input/touchscreen
Arnd Bergmann 4eef6cbfcc Input: eeti_ts: pass gpio value instead of IRQ
The EETI touchscreen asserts its IRQ line as soon as it has data in its
internal buffers. The line is automatically deasserted once all data has
been read via I2C. Hence, the driver has to monitor the GPIO line and
cannot simply rely on the interrupt handler reception.

In the current implementation of the driver, irq_to_gpio() is used to
determine the GPIO number from the i2c_client's IRQ value.

As irq_to_gpio() is not available on all platforms, this patch changes
this and makes the driver ignore the passed in IRQ. Instead, a GPIO is
added to the platform_data struct and gpio_to_irq is used to derive the
IRQ from that GPIO. If this fails, bail out. The driver is only able to
work in environments where the touchscreen GPIO can be mapped to an
IRQ.

Without this patch, building raumfeld_defconfig results in:

drivers/input/touchscreen/eeti_ts.c: In function 'eeti_ts_irq_active':
drivers/input/touchscreen/eeti_ts.c:65:2: error: implicit declaration of function 'irq_to_gpio' [-Werror=implicit-function-declaration]

Signed-off-by: Daniel Mack <zonque@gmail.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: stable@vger.kernel.org (v3.2+)
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Sven Neumann <s.neumann@raumfeld.com>
Cc: linux-input@vger.kernel.org
Cc: Haojian Zhuang <haojian.zhuang@gmail.com>
2012-08-09 15:16:41 +02:00
..
88pm860x-ts.c
Kconfig Input: add driver for FT5x06 based EDT displays 2012-07-24 23:55:03 -07:00
Makefile Input: add driver for FT5x06 based EDT displays 2012-07-24 23:55:03 -07:00
ad7877.c
ad7879-i2c.c
ad7879-spi.c
ad7879.c Merge branch 'for-linus' to bring in change ensuring that drivers that 2012-07-07 16:07:48 -07:00
ad7879.h
ads7846.c
atmel-wm97xx.c
atmel_mxt_ts.c Pull input changes from Henrik Rydberg, including large update to 2012-07-07 16:18:33 -07:00
atmel_tsadcc.c
auo-pixcir-ts.c
bu21013_ts.c Input: request threaded-only IRQs with IRQF_ONESHOT 2012-07-04 13:12:19 -07:00
cy8ctmg110_ts.c Input: request threaded-only IRQs with IRQF_ONESHOT 2012-07-04 13:12:19 -07:00
cyttsp_core.c
cyttsp_core.h
cyttsp_i2c.c
cyttsp_spi.c
da9034-ts.c
da9052_tsi.c Input: add support for DA9052/53 touch screen controller 2012-04-29 23:37:15 -07:00
dynapro.c
edt-ft5x06.c Input: add driver for FT5x06 based EDT displays 2012-07-24 23:55:03 -07:00
eeti_ts.c Input: eeti_ts: pass gpio value instead of IRQ 2012-08-09 15:16:41 +02:00
egalax_ts.c
elo.c
fujitsu_ts.c
gunze.c
h3600_ts_input.c
hampshire.c
hp680_ts_input.c
htcpen.c
ili210x.c
inexio.c
intel-mid-touch.c Input: request threaded-only IRQs with IRQF_ONESHOT 2012-07-04 13:12:19 -07:00
jornada720_ts.c ARM: sa11x0/pxa: convert OS timer registers to IOMEM 2012-07-09 17:37:35 +01:00
lpc32xx_ts.c Input: lpc32xx_ts - fix device tree compatible string 2012-04-23 23:35:59 -07:00
mainstone-wm97xx.c
max11801_ts.c
mc13783_ts.c
mcs5000_ts.c
migor_ts.c
mk712.c
mms114.c Input: add MELFAS mms114 touchscreen driver 2012-07-17 23:16:17 -07:00
mtouch.c
pcap_ts.c
penmount.c
pixcir_i2c_ts.c Input: request threaded-only IRQs with IRQF_ONESHOT 2012-07-04 13:12:19 -07:00
s3c2410_ts.c
st1232.c
stmpe-ts.c
ti_tscadc.c
tnetv107x-ts.c Input: request threaded-only IRQs with IRQF_ONESHOT 2012-07-04 13:12:19 -07:00
touchit213.c
touchright.c
touchwin.c
tps6507x-ts.c
tsc40.c
tsc2005.c Input: request threaded-only IRQs with IRQF_ONESHOT 2012-07-04 13:12:19 -07:00
tsc2007.c
ucb1400_ts.c
usbtouchscreen.c USB: input: usbtouchscreen.c: fix up dev_* messages 2012-05-04 15:33:16 -07:00
w90p910_ts.c
wacom_i2c.c Input: wacom_i2c - fix compiler warning 2012-07-07 16:41:12 -07:00
wacom_w8001.c
wm97xx-core.c
wm831x-ts.c mfd: Convert wm831x to irq_domain 2012-05-20 17:27:07 +02:00
wm9705.c
wm9712.c
wm9713.c
zylonite-wm97xx.c