]> git.karo-electronics.de Git - linux-beck.git/blobdiff - include/linux/mfd/wm8350/core.h
mfd: Allow platforms to specify an IRQ base for WM8350
[linux-beck.git] / include / linux / mfd / wm8350 / core.h
index 1d595de6a055d80962226f2b04ebe5ac8c18ceee..ffce508a910955aaf406de414ace08b20c92f0cc 100644 (file)
@@ -646,10 +646,12 @@ struct wm8350 {
  * @init: Function called during driver initialisation.  Should be
  *        used by the platform to configure GPIO functions and similar.
  * @irq_high: Set if WM8350 IRQ is active high.
+ * @irq_base: Base IRQ for genirq (not currently used).
  */
 struct wm8350_platform_data {
        int (*init)(struct wm8350 *wm8350);
        int irq_high;
+       int irq_base;
 };
 
 
@@ -681,6 +683,8 @@ int wm8350_register_irq(struct wm8350 *wm8350, int irq,
 int wm8350_free_irq(struct wm8350 *wm8350, int irq);
 int wm8350_mask_irq(struct wm8350 *wm8350, int irq);
 int wm8350_unmask_irq(struct wm8350 *wm8350, int irq);
-
+int wm8350_irq_init(struct wm8350 *wm8350, int irq,
+                   struct wm8350_platform_data *pdata);
+int wm8350_irq_exit(struct wm8350 *wm8350);
 
 #endif