Use hwirq in max77693_irq_mask() and max77693_irq_unmask() for accessing
irq array. Previously the virtual irq was used which resulted in
out-of-bounds access.
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Change-Id: I6e2e6751d07427072e90d9f4dfef921108485f29
static const inline struct max77693_irq_data *
irq_to_max77693_irq(struct max77693_dev *max77693, int irq)
{
- return &max77693_irqs[irq];
+ struct irq_data *data = irq_get_irq_data(irq);
+ return &max77693_irqs[data->hwirq];
}
static void max77693_irq_mask(struct irq_data *data)