Commit eb18cf55 authored by Thomas Gleixner's avatar Thomas Gleixner

x86: Constify irqdomain ops

Nothing changes those ops. Make the initializers readable while at it.
Reported-by: default avatarKrzysztof Kozlowski <k.kozlowski.k@gmail.com>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 9d4c0313
...@@ -143,11 +143,11 @@ static void htirq_domain_deactivate(struct irq_domain *domain, ...@@ -143,11 +143,11 @@ static void htirq_domain_deactivate(struct irq_domain *domain,
write_ht_irq_msg(irq_data->irq, &msg); write_ht_irq_msg(irq_data->irq, &msg);
} }
static struct irq_domain_ops htirq_domain_ops = { static const struct irq_domain_ops htirq_domain_ops = {
.alloc = htirq_domain_alloc, .alloc = htirq_domain_alloc,
.free = htirq_domain_free, .free = htirq_domain_free,
.activate = htirq_domain_activate, .activate = htirq_domain_activate,
.deactivate = htirq_domain_deactivate, .deactivate = htirq_domain_deactivate,
}; };
void arch_init_htirq_domain(struct irq_domain *parent) void arch_init_htirq_domain(struct irq_domain *parent)
......
...@@ -330,9 +330,9 @@ static int x86_vector_alloc_irqs(struct irq_domain *domain, unsigned int virq, ...@@ -330,9 +330,9 @@ static int x86_vector_alloc_irqs(struct irq_domain *domain, unsigned int virq,
return err; return err;
} }
static struct irq_domain_ops x86_vector_domain_ops = { static const struct irq_domain_ops x86_vector_domain_ops = {
.alloc = x86_vector_alloc_irqs, .alloc = x86_vector_alloc_irqs,
.free = x86_vector_free_irqs, .free = x86_vector_free_irqs,
}; };
int __init arch_probe_nr_irqs(void) int __init arch_probe_nr_irqs(void)
......
...@@ -149,11 +149,11 @@ static void uv_domain_deactivate(struct irq_domain *domain, ...@@ -149,11 +149,11 @@ static void uv_domain_deactivate(struct irq_domain *domain,
uv_program_mmr(irqd_cfg(irq_data), irq_data->chip_data); uv_program_mmr(irqd_cfg(irq_data), irq_data->chip_data);
} }
static struct irq_domain_ops uv_domain_ops = { static const struct irq_domain_ops uv_domain_ops = {
.alloc = uv_domain_alloc, .alloc = uv_domain_alloc,
.free = uv_domain_free, .free = uv_domain_free,
.activate = uv_domain_activate, .activate = uv_domain_activate,
.deactivate = uv_domain_deactivate, .deactivate = uv_domain_deactivate,
}; };
static struct irq_domain *uv_get_irq_domain(void) static struct irq_domain *uv_get_irq_domain(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment