提交 eb18cf55 编写于 作者: T Thomas Gleixner

x86: Constify irqdomain ops

Nothing changes those ops. Make the initializers readable while at it.
Reported-by: NKrzysztof Kozlowski <k.kozlowski.k@gmail.com>
Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
上级 9d4c0313
......@@ -143,7 +143,7 @@ static void htirq_domain_deactivate(struct irq_domain *domain,
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,
.free = htirq_domain_free,
.activate = htirq_domain_activate,
......
......@@ -330,7 +330,7 @@ static int x86_vector_alloc_irqs(struct irq_domain *domain, unsigned int virq,
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,
.free = x86_vector_free_irqs,
};
......
......@@ -149,7 +149,7 @@ static void uv_domain_deactivate(struct irq_domain *domain,
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,
.free = uv_domain_free,
.activate = uv_domain_activate,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册