irqchip/mmp: Make mmp_intc_conf const

Make these const as they are only used during a copy operation. Done
using Coccinelle.

@match disable optional_qualifier@
identifier s;
@@
static struct mmp_intc_conf s = {...};

@ref@
position p;
identifier match.s;
@@
s@p

@good1@
position ref.p;
identifier match.s,f,c;
expression e;
@@
(
e = s@p
|
e = s@p.f
|
c(...,s@p.f,...)
|
c(...,s@p,...)
)

@bad depends on !good1@
position ref.p;
identifier match.s;
@@
s@p

@depends on forall !bad disable optional_qualifier@
identifier match.s;
@@
static
+ const
struct mmp_intc_conf s;

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>

authored by

Bhumika Goyal and committed by
Marc Zyngier
c8c7d93d 73c4c37c

+2 -2
+2 -2
drivers/irqchip/irq-mmp.c
··· 181 181 .xlate = mmp_irq_domain_xlate, 182 182 }; 183 183 184 - static struct mmp_intc_conf mmp_conf = { 184 + static const struct mmp_intc_conf mmp_conf = { 185 185 .conf_enable = 0x51, 186 186 .conf_disable = 0x0, 187 187 .conf_mask = 0x7f, 188 188 }; 189 189 190 - static struct mmp_intc_conf mmp2_conf = { 190 + static const struct mmp_intc_conf mmp2_conf = { 191 191 .conf_enable = 0x20, 192 192 .conf_disable = 0x0, 193 193 .conf_mask = 0x7f,