genirq/generic_chip: Constify irq_generic_chip_ops
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Tue, 30 Nov 2021 21:40:43 +0000 (22:40 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 30 Nov 2021 23:15:07 +0000 (00:15 +0100)
commit4946f15e8c334840bf277a0bf924371eae120fcd
treefe9b16a3b44cbb9ce00b5ef4b1f266fd39f779a2
parentd58071a8a76d779eedab38033ae4c821c30295a5
genirq/generic_chip: Constify irq_generic_chip_ops

The only usage of irq_generic_chip_ops is to pass its address to
irq_domain_add_linear() which takes a pointer to const struct
irq_domain_ops. Make it const to allow the compiler to put it in
read-only memory.

[ tglx: Fixed subject prefix ]

Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20211130214043.1257585-1-rikard.falkeborn@gmail.com
include/linux/irqdomain.h
kernel/irq/generic-chip.c