Skip to content

Commit 6e2a75b

Browse files
javiercarrascocruzlag-linaro
authored andcommitted
mfd: rk8xx-core: Constify struct regmap_irq_chip
The regmap_irq_chip structs are not modified and can be declared as const to move their data to a read-only section. Signed-off-by: Javier Carrasco <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
1 parent 5af1a4c commit 6e2a75b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/mfd/rk8xx-core.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ static const struct regmap_irq rk817_irqs[RK817_IRQ_END] = {
531531
REGMAP_IRQ_REG_LINE(23, 8)
532532
};
533533

534-
static struct regmap_irq_chip rk805_irq_chip = {
534+
static const struct regmap_irq_chip rk805_irq_chip = {
535535
.name = "rk805",
536536
.irqs = rk805_irqs,
537537
.num_irqs = ARRAY_SIZE(rk805_irqs),
@@ -542,7 +542,7 @@ static struct regmap_irq_chip rk805_irq_chip = {
542542
.init_ack_masked = true,
543543
};
544544

545-
static struct regmap_irq_chip rk806_irq_chip = {
545+
static const struct regmap_irq_chip rk806_irq_chip = {
546546
.name = "rk806",
547547
.irqs = rk806_irqs,
548548
.num_irqs = ARRAY_SIZE(rk806_irqs),
@@ -578,7 +578,7 @@ static const struct regmap_irq_chip rk816_irq_chip = {
578578
.init_ack_masked = true,
579579
};
580580

581-
static struct regmap_irq_chip rk817_irq_chip = {
581+
static const struct regmap_irq_chip rk817_irq_chip = {
582582
.name = "rk817",
583583
.irqs = rk817_irqs,
584584
.num_irqs = ARRAY_SIZE(rk817_irqs),

0 commit comments

Comments
 (0)