Skip to content

Commit 0ccd789

Browse files
rikardfalkeborntsbogend
authored andcommitted
MIPS: ath25: Constify static irq_domain_ops
The only usage of these structs is to pass their address to either irq_domain_add_tree() or irq_domain_create_linear(), both which takes pointers to const struct irq_domain_ops. Make them const to allow the compiler to put them in read-only memory. Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
1 parent b7c8c2c commit 0ccd789

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

arch/mips/ath25/ar2315.c

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

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

arch/mips/ath25/ar5312.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ static int ar5312_misc_irq_map(struct irq_domain *d, unsigned irq,
116116
return 0;
117117
}
118118

119-
static struct irq_domain_ops ar5312_misc_irq_domain_ops = {
119+
static const struct irq_domain_ops ar5312_misc_irq_domain_ops = {
120120
.map = ar5312_misc_irq_map,
121121
};
122122

0 commit comments

Comments
 (0)