irqchip/stm32-exti: Read event trigger type from event_trg register
authorAntonio Borneo <antonio.borneo@foss.st.com>
Mon, 6 Jun 2022 16:27:56 +0000 (18:27 +0200)
committerMarc Zyngier <maz@kernel.org>
Thu, 7 Jul 2022 08:07:44 +0000 (09:07 +0100)
commitce4ef8f9f2abcf104a5417225cbfe3560e779093
treedc4da3a6908b9b3c2bf6b0ee4a5cf6b5a0dab147
parentb38040f0167d25092e813c8d1a70cf2708c1720b
irqchip/stm32-exti: Read event trigger type from event_trg register

The flag reporting whether an event is 'direct' or 'configurable'
is available in the read-only registers EVENT_TRG.

Drop this redundant information from the struct stm32_desc_irq and
use the proper bit from EVENT_TRG register.
On armv7a this patch reduces by 3% the size of the driver, from
   text    data     bss     dec     hex filename
   7233     424       4    7661    1ded irq-stm32-exti.o
to
   6977     424       4    7405    1ced irq-stm32-exti.o

Signed-off-by: Antonio Borneo <antonio.borneo@foss.st.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220606162757.415354-6-antonio.borneo@foss.st.com
drivers/irqchip/irq-stm32-exti.c