Skip to content

Commit 9ae0e7f

Browse files
prabhakarladWolfram Sang
authored andcommitted
i2c: riic: Mark riic_irqs array as const
The riic_irqs array describes the supported IRQs by the RIIC driver and does not change at runtime. Signed-off-by: Lad Prabhakar <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Tested-by: Wolfram Sang <[email protected]> Tested-by: Claudiu Beznea <[email protected]> Reviewed-by: Claudiu Beznea <[email protected]> Reviewed-by: Wolfram Sang <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
1 parent 3d9e63c commit 9ae0e7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/i2c/busses/i2c-riic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ static int riic_init_hw(struct riic_dev *riic)
415415
return 0;
416416
}
417417

418-
static struct riic_irq_desc riic_irqs[] = {
418+
static const struct riic_irq_desc riic_irqs[] = {
419419
{ .res_num = 0, .isr = riic_tend_isr, .name = "riic-tend" },
420420
{ .res_num = 1, .isr = riic_rdrf_isr, .name = "riic-rdrf" },
421421
{ .res_num = 2, .isr = riic_tdre_isr, .name = "riic-tdre" },

0 commit comments

Comments
 (0)