Skip to content

Commit 9f70b8e

Browse files
committed
irq_domain/powerpc: constify irq_domain_ops
Make all the irq_domain_ops structures in powerpc 'static const' Signed-off-by: Grant Likely <grant.likely@secretlab.ca> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Milton Miller <miltonm@bga.com> Tested-by: Olof Johansson <olof@lixom.net>
1 parent c1e572e commit 9f70b8e

22 files changed

Lines changed: 22 additions & 22 deletions

File tree

‎arch/powerpc/platforms/512x/mpc5121_ads_cpld.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ cpld_pic_host_map(struct irq_domain *h, unsigned int virq,
137137
return 0;
138138
}
139139

140-
static struct irq_domain_ops cpld_pic_host_ops = {
140+
static const struct irq_domain_ops cpld_pic_host_ops = {
141141
.match = cpld_pic_host_match,
142142
.map = cpld_pic_host_map,
143143
};

‎arch/powerpc/platforms/52xx/media5200.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ static int media5200_irq_xlate(struct irq_domain *h, struct device_node *ct,
136136
return 0;
137137
}
138138

139-
static struct irq_domain_ops media5200_irq_ops = {
139+
static const struct irq_domain_ops media5200_irq_ops = {
140140
.map = media5200_irq_map,
141141
.xlate = media5200_irq_xlate,
142142
};

‎arch/powerpc/platforms/52xx/mpc52xx_gpt.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ static int mpc52xx_gpt_irq_xlate(struct irq_domain *h, struct device_node *ct,
236236
return 0;
237237
}
238238

239-
static struct irq_domain_ops mpc52xx_gpt_irq_ops = {
239+
static const struct irq_domain_ops mpc52xx_gpt_irq_ops = {
240240
.map = mpc52xx_gpt_irq_map,
241241
.xlate = mpc52xx_gpt_irq_xlate,
242242
};

‎arch/powerpc/platforms/52xx/mpc52xx_pic.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ static int mpc52xx_irqhost_map(struct irq_domain *h, unsigned int virq,
384384
return 0;
385385
}
386386

387-
static struct irq_domain_ops mpc52xx_irqhost_ops = {
387+
static const struct irq_domain_ops mpc52xx_irqhost_ops = {
388388
.xlate = mpc52xx_irqhost_xlate,
389389
.map = mpc52xx_irqhost_map,
390390
};

‎arch/powerpc/platforms/82xx/pq2ads-pci-pic.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ static int pci_pic_host_map(struct irq_domain *h, unsigned int virq,
112112
return 0;
113113
}
114114

115-
static struct irq_domain_ops pci_pic_host_ops = {
115+
static const struct irq_domain_ops pci_pic_host_ops = {
116116
.map = pci_pic_host_map,
117117
};
118118

‎arch/powerpc/platforms/85xx/socrates_fpga_pic.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ static int socrates_fpga_pic_host_xlate(struct irq_domain *h,
269269
return 0;
270270
}
271271

272-
static struct irq_domain_ops socrates_fpga_pic_host_ops = {
272+
static const struct irq_domain_ops socrates_fpga_pic_host_ops = {
273273
.map = socrates_fpga_pic_host_map,
274274
.xlate = socrates_fpga_pic_host_xlate,
275275
};

‎arch/powerpc/platforms/86xx/gef_pic.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ static int gef_pic_host_xlate(struct irq_domain *h, struct device_node *ct,
177177
return 0;
178178
}
179179

180-
static struct irq_domain_ops gef_pic_host_ops = {
180+
static const struct irq_domain_ops gef_pic_host_ops = {
181181
.map = gef_pic_host_map,
182182
.xlate = gef_pic_host_xlate,
183183
};

‎arch/powerpc/platforms/cell/axon_msi.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ static int msic_host_map(struct irq_domain *h, unsigned int virq,
327327
return 0;
328328
}
329329

330-
static struct irq_domain_ops msic_host_ops = {
330+
static const struct irq_domain_ops msic_host_ops = {
331331
.map = msic_host_map,
332332
};
333333

‎arch/powerpc/platforms/cell/beat_interrupt.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ static int beatic_pic_host_match(struct irq_domain *h, struct device_node *np)
172172
return 1;
173173
}
174174

175-
static struct irq_domain_ops beatic_pic_host_ops = {
175+
static const struct irq_domain_ops beatic_pic_host_ops = {
176176
.map = beatic_pic_host_map,
177177
.unmap = beatic_pic_host_unmap,
178178
.xlate = beatic_pic_host_xlate,

‎arch/powerpc/platforms/cell/interrupt.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ static int iic_host_xlate(struct irq_domain *h, struct device_node *ct,
285285
return 0;
286286
}
287287

288-
static struct irq_domain_ops iic_host_ops = {
288+
static const struct irq_domain_ops iic_host_ops = {
289289
.match = iic_host_match,
290290
.map = iic_host_map,
291291
.xlate = iic_host_xlate,

0 commit comments

Comments
 (0)