Re: [PATCH 04/19] irqchip: atmel-aic: replace magic numbers with named constant

2016-01-04 Thread Boris Brezillon
On Mon, 4 Jan 2016 13:28:28 +0900 Milo Kim wrote: > One AIC IRQ chip can have 32 interrupt source. > To enhance code readability, magic number is replaced with named constant, > 'AIC_IRQS_PER_CHIP'. > > aic_hw_init() initializes vector registers up to total number of > AIC interrupts. This magic

[PATCH 04/19] irqchip: atmel-aic: replace magic numbers with named constant

2016-01-03 Thread Milo Kim
One AIC IRQ chip can have 32 interrupt source. To enhance code readability, magic number is replaced with named constant, 'AIC_IRQS_PER_CHIP'. aic_hw_init() initializes vector registers up to total number of AIC interrupts. This magic number is replaced with NR_AIC_IRQS. Cc: Thomas Gleixner Cc: