linux/drivers/input/touchscreen
Arnd Bergmann 95c92481f6 Input: eeti_ts: pass gpio value instead of IRQ
commit 4eef6cbfcc upstream.

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: 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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-08-15 08:10:33 -07:00
..
88pm860x-ts.c Input: touchscreen - use macro module_platform_driver() 2011-11-30 23:41:43 -08:00
ad7877.c Input: convert SPI drivers to use module_spi_driver() 2012-03-16 23:06:11 -07:00
ad7879-i2c.c Input: convert I2C drivers to use module_i2c_driver() 2012-03-16 23:06:19 -07:00
ad7879-spi.c Input: convert SPI drivers to use module_spi_driver() 2012-03-16 23:06:11 -07:00
ad7879.c Merge commit 'v3.2-rc3' into next 2011-11-29 01:51:07 -08:00
ad7879.h Input: ad7879 - consolidate PM methods 2011-11-15 22:24:22 -08:00
ads7846.c Input: convert SPI drivers to use module_spi_driver() 2012-03-16 23:06:11 -07:00
atmel_mxt_ts.c Input: convert I2C drivers to use module_i2c_driver() 2012-03-16 23:06:19 -07:00
atmel_tsadcc.c Input: touchscreen - use macro module_platform_driver() 2011-11-30 23:41:43 -08:00
atmel-wm97xx.c Merge commit 'v3.3-rc6' into next 2012-03-09 10:55:17 -08:00
auo-pixcir-ts.c Input: synaptics_usb - switch to module_usb_driver() 2012-03-16 23:06:34 -07:00
bu21013_ts.c Input: convert I2C drivers to use module_i2c_driver() 2012-03-16 23:06:19 -07:00
cy8ctmg110_ts.c Input: convert I2C drivers to use module_i2c_driver() 2012-03-16 23:06:19 -07:00
cyttsp_core.c Input: cyttsp - remove useless checks in cyttsp_probe() 2012-03-04 10:49:27 -08:00
cyttsp_core.h Input: add Cypress TTSP capacitive multi-touch screen support 2012-01-31 00:18:36 -08:00
cyttsp_i2c.c Input: synaptics_usb - switch to module_usb_driver() 2012-03-16 23:06:34 -07:00
cyttsp_spi.c Input: convert SPI drivers to use module_spi_driver() 2012-03-16 23:06:11 -07:00
da9034-ts.c Input: touchscreen - use macro module_platform_driver() 2011-11-30 23:41:43 -08:00
dynapro.c
eeti_ts.c Input: eeti_ts: pass gpio value instead of IRQ 2012-08-15 08:10:33 -07:00
egalax_ts.c Input: convert I2C drivers to use module_i2c_driver() 2012-03-16 23:06:19 -07:00
elo.c
fujitsu_ts.c
gunze.c
h3600_ts_input.c Input: remove IRQF_DISABLED from drivers 2011-09-07 14:19:11 -07:00
hampshire.c Input: add driver for hampshire serial touchscreens 2010-04-13 23:27:41 -07:00
hp680_ts_input.c Input: hp680_ts_input - ensure arguments to request_irq and free_irq are compatible 2012-03-12 22:17:56 -07:00
htcpen.c module_param: make bool parameters really bool (drivers & misc) 2012-01-13 09:32:20 +10:30
ili210x.c Input: ili210x - add support for Ilitek ILI210x based touchscreens 2012-03-17 12:20:44 -07:00
inexio.c
intel-mid-touch.c Input: touchscreen - use macro module_platform_driver() 2011-11-30 23:41:43 -08:00
jornada720_ts.c ARM: 7341/1: input: prepare jornada720 keyboard and ts for sa11x0 sparse irq 2012-03-25 23:57:19 +01:00
Kconfig ARM: global cleanups 2012-03-27 16:03:32 -07:00
lpc32xx_ts.c Input: touchscreen - use macro module_platform_driver() 2011-11-30 23:41:43 -08:00
mainstone-wm97xx.c Input: touchscreen - use macro module_platform_driver() 2011-11-30 23:41:43 -08:00
Makefile Input: ili210x - add support for Ilitek ILI210x based touchscreens 2012-03-17 12:20:44 -07:00
max11801_ts.c Input: convert I2C drivers to use module_i2c_driver() 2012-03-16 23:06:19 -07:00
mc13783_ts.c mfd: Add pdata to set mc13783-ts conversion delay 2012-03-06 18:46:30 +01:00
mcs5000_ts.c Input: convert I2C drivers to use module_i2c_driver() 2012-03-16 23:06:19 -07:00
migor_ts.c Input: convert I2C drivers to use module_i2c_driver() 2012-03-16 23:06:19 -07:00
mk712.c Update broken web addresses in the kernel. 2010-10-18 11:03:14 +02:00
mtouch.c
pcap_ts.c Input: touchscreen - use macro module_platform_driver() 2011-11-30 23:41:43 -08:00
penmount.c Input: penmount - simplify unregister procedure 2011-09-20 22:46:31 -07:00
pixcir_i2c_ts.c Input: synaptics_usb - switch to module_usb_driver() 2012-03-16 23:06:34 -07:00
s3c2410_ts.c Input: touchscreen - use macro module_platform_driver() 2011-11-30 23:41:43 -08:00
st1232.c Input: convert I2C drivers to use module_i2c_driver() 2012-03-16 23:06:19 -07:00
stmpe-ts.c Input: touchscreen - use macro module_platform_driver() 2011-11-30 23:41:43 -08:00
ti_tscadc.c Input: add support for TI Touchscreen controller 2012-03-04 08:45:00 -08:00
tnetv107x-ts.c Input: touchscreen - use macro module_platform_driver() 2011-11-30 23:41:43 -08:00
touchit213.c
touchright.c
touchwin.c
tps6507x-ts.c Input: tps6507x-ts - fix MODULE_ALIAS to match driver name 2012-04-03 09:55:45 -07:00
tsc40.c Input: add a driver for TSC-40 serial touchscreen 2011-09-28 10:24:14 -07:00
tsc2005.c Input: convert SPI drivers to use module_spi_driver() 2012-03-16 23:06:11 -07:00
tsc2007.c Input: convert I2C drivers to use module_i2c_driver() 2012-03-16 23:06:19 -07:00
ucb1400_ts.c module_param: make bool parameters really bool (drivers & misc) 2012-01-13 09:32:20 +10:30
usbtouchscreen.c Merge commit 'v3.3-rc6' into next 2012-03-09 10:55:17 -08:00
w90p910_ts.c Input: touchscreen - use macro module_platform_driver() 2011-11-30 23:41:43 -08:00
wacom_w8001.c Merge branch 'next' into for-linus 2011-10-26 21:46:20 -07:00
wm97xx-core.c Fix common misspellings 2011-03-31 11:26:23 -03:00
wm831x-ts.c Input: touchscreen - use macro module_platform_driver() 2011-11-30 23:41:43 -08:00
wm9705.c Input: wm97xx - mark channels which need pen_down 2011-07-04 19:31:47 -07:00
wm9712.c Input: wm97xx - mark channels which need pen_down 2011-07-04 19:31:47 -07:00
wm9713.c Input: wm97xx - mark channels which need pen_down 2011-07-04 19:31:47 -07:00
zylonite-wm97xx.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input 2012-01-10 10:55:52 -08:00