forked from luck/tmp_suning_uos_patched
cd99758ba3
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> |
||
---|---|---|
.. | ||
88pm860x-core.c | ||
88pm860x-i2c.c | ||
aat2870-core.c | ||
ab3100-core.c | ||
ab3100-otp.c | ||
ab5500-core.c | ||
ab5500-core.h | ||
ab5500-debugfs.c | ||
ab5500-debugfs.h | ||
ab8500-core.c | ||
ab8500-debugfs.c | ||
ab8500-gpadc.c | ||
ab8500-i2c.c | ||
ab8500-sysctrl.c | ||
abx500-core.c | ||
adp5520.c | ||
anatop-mfd.c | ||
asic3.c | ||
cs5535-mfd.c | ||
da903x.c | ||
da9052-core.c | ||
da9052-i2c.c | ||
da9052-spi.c | ||
davinci_voicecodec.c | ||
db5500-prcmu.c | ||
db8500-prcmu.c | ||
dbx500-prcmu-regs.h | ||
dm355evm_msp.c | ||
ezx-pcap.c | ||
htc-egpio.c | ||
htc-i2cpld.c | ||
htc-pasic3.c | ||
intel_msic.c | ||
janz-cmodio.c | ||
jz4740-adc.c | ||
Kconfig | ||
lm3533-core.c | ||
lm3533-ctrlbank.c | ||
lpc_ich.c | ||
lpc_sch.c | ||
Makefile | ||
max8925-core.c | ||
max8925-i2c.c | ||
max8997-irq.c | ||
max8997.c | ||
max8998-irq.c | ||
max8998.c | ||
max77693-irq.c | ||
max77693.c | ||
mc13xxx-core.c | ||
mc13xxx-i2c.c | ||
mc13xxx-spi.c | ||
mc13xxx.h | ||
mcp-core.c | ||
mcp-sa11x0.c | ||
menelaus.c | ||
mfd-core.c | ||
omap-usb-host.c | ||
pcf50633-adc.c | ||
pcf50633-core.c | ||
pcf50633-gpio.c | ||
pcf50633-irq.c | ||
pm8xxx-irq.c | ||
pm8921-core.c | ||
rc5t583-irq.c | ||
rc5t583.c | ||
rdc321x-southbridge.c | ||
s5m-core.c | ||
s5m-irq.c | ||
sm501.c | ||
sta2x11-mfd.c | ||
stmpe-i2c.c | ||
stmpe-spi.c | ||
stmpe.c | ||
stmpe.h | ||
t7l66xb.c | ||
tc3589x.c | ||
tc6387xb.c | ||
tc6393xb.c | ||
ti-ssp.c | ||
timberdale.c | ||
timberdale.h | ||
tmio_core.c | ||
tps6105x.c | ||
tps6507x.c | ||
tps6586x.c | ||
tps65010.c | ||
tps65090.c | ||
tps65217.c | ||
tps65910-irq.c | ||
tps65910.c | ||
tps65911-comparator.c | ||
tps65912-core.c | ||
tps65912-i2c.c | ||
tps65912-irq.c | ||
tps65912-spi.c | ||
twl-core.c | ||
twl-core.h | ||
twl4030-audio.c | ||
twl4030-irq.c | ||
twl4030-madc.c | ||
twl4030-power.c | ||
twl6030-irq.c | ||
twl6030-pwm.c | ||
twl6040-core.c | ||
twl6040-irq.c | ||
ucb1x00-assabet.c | ||
ucb1x00-core.c | ||
ucb1x00-ts.c | ||
ucb1400_core.c | ||
vx855.c | ||
wl1273-core.c | ||
wm831x-auxadc.c | ||
wm831x-core.c | ||
wm831x-i2c.c | ||
wm831x-irq.c | ||
wm831x-otp.c | ||
wm831x-spi.c | ||
wm8350-core.c | ||
wm8350-gpio.c | ||
wm8350-i2c.c | ||
wm8350-irq.c | ||
wm8350-regmap.c | ||
wm8400-core.c | ||
wm8994-core.c | ||
wm8994-irq.c | ||
wm8994-regmap.c | ||
wm8994.h |