Skip to content

Commit 3062ba3

Browse files
javiercarrascocruzlag-linaro
authored andcommitted
mfd: twl6040: Constify struct regmap_irq_chip
`twl6040_irq_chip` is not modified and can be declared as const to move its 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 339a3ba commit 3062ba3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mfd/twl6040.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ static const struct regmap_irq twl6040_irqs[] = {
620620
{ .reg_offset = 0, .mask = TWL6040_READYINT, },
621621
};
622622

623-
static struct regmap_irq_chip twl6040_irq_chip = {
623+
static const struct regmap_irq_chip twl6040_irq_chip = {
624624
.name = "twl6040",
625625
.irqs = twl6040_irqs,
626626
.num_irqs = ARRAY_SIZE(twl6040_irqs),

0 commit comments

Comments
 (0)