]> git.karo-electronics.de Git - karo-tx-linux.git/commit
irqchip/sunxi-nmi: Const-ify sunxi_sc_nmi_reg_offs structures
authorChen-Yu Tsai <wens@csie.org>
Tue, 6 Jun 2017 05:59:26 +0000 (13:59 +0800)
committerMarc Zyngier <marc.zyngier@arm.com>
Thu, 22 Jun 2017 13:07:02 +0000 (14:07 +0100)
commit11b345ab79a1986fd9da365f646621d9ced9dcfb
tree61d525bcec7bc72d507ff3647a7081d76a03e64a
parentc81a248069cd2f48f6326c35e2cdbd181cbc403c
irqchip/sunxi-nmi: Const-ify sunxi_sc_nmi_reg_offs structures

The sunxi_sc_nmi_reg_offs, which hold the register offsets for the
various variants, is never modified, and only used at init time within
the init functions referenced by IRQCHIP_DECLARE, which themselves are
tagged __init.

Const-ify the sunxi_sc_nmi_reg_offs structures, and tag them as
__initconst.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
drivers/irqchip/irq-sunxi-nmi.c