Skip to contentSkip to conversation

qe/ic: make irq_chip const

PATCH New Bhumika Goyal 1 participant 1 message Aug 19, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qe/ic: make irq_chip const

Make this const as it is only used in a copy operation. Done using Coccinelle.

---
 drivers/soc/fsl/qe/qe_ic.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/soc/fsl/qe/qe_ic.c +1 -1
index ec2ca86..00f48d5 100644
@@ -238,7 +238,7 @@ static void qe_ic_mask_irq(struct irq_data *d)
 	raw_spin_unlock_irqrestore(&qe_ic_lock, flags);
 }
 
-static struct irq_chip qe_ic_irq_chip = {
+static const struct irq_chip qe_ic_irq_chip = {
 	.name = "QEIC",
 	.irq_unmask = qe_ic_unmask_irq,
 	.irq_mask = qe_ic_mask_irq,
Signature · 1 line
1.9.1