diff options
-rw-r--r-- | drivers/mfd/twl-core.h | 10 | ||||
-rw-r--r-- | drivers/mfd/twl4030-irq.c | 1 | ||||
-rw-r--r-- | drivers/mfd/twl6030-irq.c | 2 |
3 files changed, 13 insertions, 0 deletions
diff --git a/drivers/mfd/twl-core.h b/drivers/mfd/twl-core.h new file mode 100644 index 000000000000..8c50a556e986 --- /dev/null +++ b/drivers/mfd/twl-core.h | |||
@@ -0,0 +1,10 @@ | |||
1 | #ifndef __TWL_CORE_H__ | ||
2 | #define __TWL_CORE_H__ | ||
3 | |||
4 | extern int twl6030_init_irq(int irq_num, unsigned irq_base, unsigned irq_end); | ||
5 | extern int twl6030_exit_irq(void); | ||
6 | extern int twl4030_init_irq(int irq_num, unsigned irq_base, unsigned irq_end); | ||
7 | extern int twl4030_exit_irq(void); | ||
8 | extern int twl4030_init_chip_irq(const char *chip); | ||
9 | |||
10 | #endif /* __TWL_CORE_H__ */ | ||
diff --git a/drivers/mfd/twl4030-irq.c b/drivers/mfd/twl4030-irq.c index 381ab26e92a3..5d3a1478004b 100644 --- a/drivers/mfd/twl4030-irq.c +++ b/drivers/mfd/twl4030-irq.c | |||
@@ -35,6 +35,7 @@ | |||
35 | 35 | ||
36 | #include <linux/i2c/twl.h> | 36 | #include <linux/i2c/twl.h> |
37 | 37 | ||
38 | #include "twl-core.h" | ||
38 | 39 | ||
39 | /* | 40 | /* |
40 | * TWL4030 IRQ handling has two stages in hardware, and thus in software. | 41 | * TWL4030 IRQ handling has two stages in hardware, and thus in software. |
diff --git a/drivers/mfd/twl6030-irq.c b/drivers/mfd/twl6030-irq.c index 2d3bb82dbf24..aaedb11d9d2c 100644 --- a/drivers/mfd/twl6030-irq.c +++ b/drivers/mfd/twl6030-irq.c | |||
@@ -38,6 +38,8 @@ | |||
38 | #include <linux/i2c/twl.h> | 38 | #include <linux/i2c/twl.h> |
39 | #include <linux/platform_device.h> | 39 | #include <linux/platform_device.h> |
40 | 40 | ||
41 | #include "twl-core.h" | ||
42 | |||
41 | /* | 43 | /* |
42 | * TWL6030 (unlike its predecessors, which had two level interrupt handling) | 44 | * TWL6030 (unlike its predecessors, which had two level interrupt handling) |
43 | * three interrupt registers INT_STS_A, INT_STS_B and INT_STS_C. | 45 | * three interrupt registers INT_STS_A, INT_STS_B and INT_STS_C. |