Skip to content

Commit d6357e2

Browse files
javiercarrascocruzlag-linaro
authored andcommitted
mfd: tps65086: Constify struct regmap_irq_chip
`tps65086_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 7206d72 commit d6357e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mfd/tps65086.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ static const struct regmap_irq tps65086_irqs[] = {
4545
REGMAP_IRQ_REG(TPS65086_IRQ_FAULT, 0, TPS65086_IRQ_FAULT_MASK),
4646
};
4747

48-
static struct regmap_irq_chip tps65086_irq_chip = {
48+
static const struct regmap_irq_chip tps65086_irq_chip = {
4949
.name = "tps65086",
5050
.status_base = TPS65086_IRQ,
5151
.mask_base = TPS65086_IRQ_MASK,

0 commit comments

Comments
 (0)