2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-28 15:13:55 +08:00
linux-next/drivers/input/touchscreen
Mark Brown cd99758ba3 mfd: Convert wm831x to irq_domain
The modern idiom is to use irq_domain to allocate interrupts. This is
useful partly to allow further infrastructure to be based on the domains
and partly because it makes it much easier to allocate virtual interrupts
to devices as we don't need to allocate a contiguous range of interrupt
numbers.

Convert the wm831x driver over to this infrastructure, using a legacy
IRQ mapping if an irq_base is specified in platform data and otherwise
using a linear mapping, always registering the interrupts even if they
won't ever be used. Only boards which need to use the GPIOs as
interrupts should need to use an irq_base.

This means that we can't use the MFD irq_base management since the
unless we're using an explicit irq_base from platform data we can't rely
on a linear mapping of interrupts.  Instead we need to map things via
the irq_domain - provide a conveniencem function wm831x_irq() to save a
small amount of typing when doing so. Looking at this I couldn't clearly
see anything the MFD core could do to make this nicer.

Since we're not supporting device tree yet there's no meaningful
advantage if we don't do this conversion in one, the fact that the
interrupt resources are used for repeated IP blocks makes accessor
functions for the irq_domain more trouble to do than they're worth.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
2012-05-20 17:27:07 +02: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 Input: add driver for Dynapro serial touchscreen 2009-10-26 11:01:30 -07:00
eeti_ts.c Input: convert I2C drivers to use module_i2c_driver() 2012-03-16 23:06:19 -07:00
egalax_ts.c Input: convert I2C drivers to use module_i2c_driver() 2012-03-16 23:06:19 -07:00
elo.c Input: elo - switch to using dev_xxx() when printing messages 2010-01-06 23:54:40 -08:00
fujitsu_ts.c
gunze.c Input: remove CVS keywords 2008-05-20 12:17:39 -04:00
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 Input: Add driver for iNexio serial touchscreen. 2008-06-30 09:37:32 -04:00
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 Input: add driver for Tabletkiosk Sahara TouchIT-213 touchscreen 2008-07-07 12:00:30 -04:00
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 mfd: Convert wm831x to irq_domain 2012-05-20 17:27:07 +02: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