Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

irqchip/ts4800: Make ts4800_ic_ops static const

ts4800_ic_ops is only referenced in this driver, so make it static.
In additional, it's never get modified thus also make it const.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Reviewed-by: Damien Riegel <damien.riegel@savoirfairelinux.com>
Link: https://lkml.kernel.org/r/1455457804.13175.1.camel@ingics.com
Signed-off-by: Jason Cooper <jason@lakedaemon.net>

authored by

Axel Lin and committed by
Jason Cooper
e4e1c0ea b6bc902d

+1 -1
+1 -1
drivers/irqchip/irq-ts4800.c
··· 59 59 return 0; 60 60 } 61 61 62 - struct irq_domain_ops ts4800_ic_ops = { 62 + static const struct irq_domain_ops ts4800_ic_ops = { 63 63 .map = ts4800_irqdomain_map, 64 64 .xlate = irq_domain_xlate_onecell, 65 65 };