Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 202648a6 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Michael Ellerman
Browse files

powerpc: Constify irq_domain_ops



The irq_domain_ops are not modified by the driver and the irqdomain core
code accepts pointer to a const data.

Signed-off-by: default avatarKrzysztof Kozlowski <k.kozlowski.k@gmail.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 030bbdbf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -204,7 +204,7 @@ static int i8259_host_xlate(struct irq_domain *h, struct device_node *ct,
	return 0;
}

static struct irq_domain_ops i8259_host_ops = {
static const struct irq_domain_ops i8259_host_ops = {
	.match = i8259_host_match,
	.map = i8259_host_map,
	.xlate = i8259_host_xlate,
+1 −1
Original line number Diff line number Diff line
@@ -691,7 +691,7 @@ static int ipic_host_map(struct irq_domain *h, unsigned int virq,
	return 0;
}

static struct irq_domain_ops ipic_host_ops = {
static const struct irq_domain_ops ipic_host_ops = {
	.match	= ipic_host_match,
	.map	= ipic_host_map,
	.xlate	= irq_domain_xlate_onetwocell,
+1 −1
Original line number Diff line number Diff line
@@ -120,7 +120,7 @@ static int mpc8xx_pic_host_xlate(struct irq_domain *h, struct device_node *ct,
}


static struct irq_domain_ops mpc8xx_pic_host_ops = {
static const struct irq_domain_ops mpc8xx_pic_host_ops = {
	.map = mpc8xx_pic_host_map,
	.xlate = mpc8xx_pic_host_xlate,
};
+1 −1
Original line number Diff line number Diff line
@@ -1195,7 +1195,7 @@ static void mpic_cascade(unsigned int irq, struct irq_desc *desc)
	chip->irq_eoi(&desc->irq_data);
}

static struct irq_domain_ops mpic_host_ops = {
static const struct irq_domain_ops mpic_host_ops = {
	.match = mpic_host_match,
	.map = mpic_host_map,
	.xlate = mpic_host_xlate,
+1 −1
Original line number Diff line number Diff line
@@ -223,7 +223,7 @@ static int mv64x60_host_map(struct irq_domain *h, unsigned int virq,
	return 0;
}

static struct irq_domain_ops mv64x60_host_ops = {
static const struct irq_domain_ops mv64x60_host_ops = {
	.map   = mv64x60_host_map,
};

Loading