summaryrefslogtreecommitdiffstats
path: root/include/linux/mfd/wm8994/pdata.h
diff options
context:
space:
mode:
authorMark Brown2010-03-26 17:49:15 +0100
committerMark Brown2010-04-05 20:18:07 +0200
commitc9fbf7e070bbf9cc7adc1420df87706c62cb04ed (patch)
tree38770c150750f3f11b59643302312762494b546e /include/linux/mfd/wm8994/pdata.h
parentmfd: update gfp/slab.h includes (diff)
downloadkernel-qcow2-linux-c9fbf7e070bbf9cc7adc1420df87706c62cb04ed.tar.gz
kernel-qcow2-linux-c9fbf7e070bbf9cc7adc1420df87706c62cb04ed.tar.xz
kernel-qcow2-linux-c9fbf7e070bbf9cc7adc1420df87706c62cb04ed.zip
mfd: Add WM8994 interrupt controller support
The WM8994 has an interrupt controller which supports interrupts for both CODEC and GPIO portions of the chip. Support this using genirq, while allowing for systems that do not have an interrupt hooked up. Wrapper functions are provided for the IRQ request and free to simplify the code in consumer drivers when handling cases where IRQs are not set up. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include/linux/mfd/wm8994/pdata.h')
-rw-r--r--include/linux/mfd/wm8994/pdata.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mfd/wm8994/pdata.h b/include/linux/mfd/wm8994/pdata.h
index 70d6a8687dc5..5c51f367c061 100644
--- a/include/linux/mfd/wm8994/pdata.h
+++ b/include/linux/mfd/wm8994/pdata.h
@@ -70,6 +70,7 @@ struct wm8994_pdata {
struct wm8994_ldo_pdata ldo[WM8994_NUM_LDO];
+ int irq_base; /** Base IRQ number for WM8994, required for IRQs */
int num_drc_cfgs;
struct wm8994_drc_cfg *drc_cfgs;