Skip to contentSkip to conversation

irqchip: ativic32: constify irq_domain_ops

PATCH Applied Masahiro Yamada 2 participants 2 messages Jul 14, 2020 – Jul 17, 2020

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

PATCH 1/1 irqchip: ativic32: constify irq_domain_ops

This is passed to irq_domain_add_linear(), which accepts a pointer to a const structure.

---

 drivers/irqchip/irq-ativic32.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/irqchip/irq-ativic32.c +1 -1
index 85cf6e0e0e52..476d6024aaf2 100644
@@ -92,7 +92,7 @@ static int ativic32_irq_domain_map(struct irq_domain *id, unsigned int virq,
 	return 0;
 }
 
-static struct irq_domain_ops ativic32_ops = {
+static const struct irq_domain_ops ativic32_ops = {
 	.map = ativic32_irq_domain_map,
 	.xlate = irq_domain_xlate_onecell
 };
Signature · 1 line
2.25.1
Applied
#1 lore raw
Quoted 2 lines · Masahiro Yamada

This is passed to irq_domain_add_linear(), which accepts a pointer to a const structure.

Applied to irq/irqchip-5.9, thanks!

[1/1] irqchip/ativic32: Constify irq_domain_ops

      commit: 605a2cf566e130c77fc2cc77fac37fb901fc868a

Cheers,

	M.
Signature · 1 line
Without deviation from the norm, progress is not possible.