Skip to content

Commit 6523b14

Browse files
Graeme GregorySamuel Ortiz
authored andcommitted
mfd: Fix twl6030 irq definitions
The charger fault IRQs from the twl will in future patches be handled by a seperate IRQ handler in the charger driver than the general charger IRQ. Give them different IRQ numbers now to allow the charger driver to be merged in the future. Signed-off-by: Graeme Gregory <gg@slimlogic.co.uk> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
1 parent 521d8ec commit 6523b14

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎drivers/mfd/twl6030-irq.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ static int twl6030_interrupt_mapping[24] = {
7676
USBOTG_INTR_OFFSET, /* Bit 18 ID */
7777
USB_PRES_INTR_OFFSET, /* Bit 19 VBUS */
7878
CHARGER_INTR_OFFSET, /* Bit 20 CHRG_CTRL */
79-
CHARGER_INTR_OFFSET, /* Bit 21 EXT_CHRG */
80-
CHARGER_INTR_OFFSET, /* Bit 22 INT_CHRG */
79+
CHARGERFAULT_INTR_OFFSET, /* Bit 21 EXT_CHRG */
80+
CHARGERFAULT_INTR_OFFSET, /* Bit 22 INT_CHRG */
8181
RSV_INTR_OFFSET, /* Bit 23 Reserved */
8282
};
8383
/*----------------------------------------------------------------------*/

‎include/linux/i2c/twl.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@
9191
#define BCI_INTR_OFFSET 2
9292
#define MADC_INTR_OFFSET 3
9393
#define USB_INTR_OFFSET 4
94+
#define CHARGERFAULT_INTR_OFFSET 5
9495
#define BCI_PRES_INTR_OFFSET 9
9596
#define USB_PRES_INTR_OFFSET 10
9697
#define RTC_INTR_OFFSET 11

0 commit comments

Comments
 (0)