Axel Lin 3f9be35bd9 mfd: rc5t583: Fix array subscript is above array bounds
I got below build warning while compiling this driver.
It's obviously RC5T583_MAX_INTERRUPT_MASK_REGS is 9 but irq_en_add
array only has 8 elements.

  CC      drivers/mfd/rc5t583-irq.o
drivers/mfd/rc5t583-irq.c: In function 'rc5t583_irq_sync_unlock':
drivers/mfd/rc5t583-irq.c:227: warning: array subscript is above array bounds
drivers/mfd/rc5t583-irq.c: In function 'rc5t583_irq_init':
drivers/mfd/rc5t583-irq.c:349: warning: array subscript is above array bounds

Since the number of interrupt enable registers is 8, this patch adds
define for RC5T583_MAX_INTERRUPT_EN_REGS to fix this bug.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
2012-11-26 12:10:51 +01:00
..
2012-10-05 12:01:30 +09:00
2012-07-16 14:31:59 +02:00
2012-10-07 17:29:24 +09:00
2012-11-23 12:09:19 +01:00
2012-09-23 20:51:34 +02:00
2012-09-23 20:51:34 +02:00
2012-09-19 12:07:56 +02:00
2012-09-01 10:01:31 -07:00
2012-11-21 16:07:57 +01:00
2012-07-21 00:02:18 -04:00
2012-11-13 20:02:14 +01:00
2012-09-25 10:42:02 +02:00