Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 345034
b: refs/heads/master
c: 3f9be35
h: refs/heads/master
v: v3
  • Loading branch information
Axel Lin authored and Samuel Ortiz committed Nov 26, 2012
1 parent 8b2172b commit 16c1afb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 302b95621dc96651187c21fd66e5a44860e4c3b1
refs/heads/master: 3f9be35bd9090eaa2f68ed9b24efdbf3abcf4b28
2 changes: 1 addition & 1 deletion trunk/drivers/mfd/rc5t583-irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ int rc5t583_irq_init(struct rc5t583 *rc5t583, int irq, int irq_base)
mutex_init(&rc5t583->irq_lock);

/* Initailize all int register to 0 */
for (i = 0; i < RC5T583_MAX_INTERRUPT_MASK_REGS; i++) {
for (i = 0; i < RC5T583_MAX_INTERRUPT_EN_REGS; i++) {
ret = rc5t583_write(rc5t583->dev, irq_en_add[i],
rc5t583->irq_en_reg[i]);
if (ret < 0)
Expand Down
3 changes: 2 additions & 1 deletion trunk/include/linux/mfd/rc5t583.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
/* Maximum number of main interrupts */
#define MAX_MAIN_INTERRUPT 5
#define RC5T583_MAX_GPEDGE_REG 2
#define RC5T583_MAX_INTERRUPT_EN_REGS 8
#define RC5T583_MAX_INTERRUPT_MASK_REGS 9

/* Interrupt enable register */
Expand Down Expand Up @@ -304,7 +305,7 @@ struct rc5t583 {
uint8_t intc_inten_reg;

/* For group interrupt bits and address */
uint8_t irq_en_reg[RC5T583_MAX_INTERRUPT_MASK_REGS];
uint8_t irq_en_reg[RC5T583_MAX_INTERRUPT_EN_REGS];

/* For gpio edge */
uint8_t gpedge_reg[RC5T583_MAX_GPEDGE_REG];
Expand Down

0 comments on commit 16c1afb

Please sign in to comment.