um: irq: Reduce irq_reg allocation
authorJohannes Berg <johannes.berg@intel.com>
Wed, 2 Dec 2020 11:59:54 +0000 (12:59 +0100)
committerRichard Weinberger <richard@nod.at>
Sun, 13 Dec 2020 21:22:23 +0000 (22:22 +0100)
commit0737402f42d3cdc7b7ef27e8cc7caf1e9ba2a2bc
tree980d03d11fec208016c0b3745bf12e06f4efc75a
parent458e1f7da004ec264cf2a9252822955ba4f7e9a0
um: irq: Reduce irq_reg allocation

We don't need an array of 4 entries to capture three and the
name 'MAX_IRQ_TYPE' really gets confusing as well. Remove it
and add a correct NUM_IRQ_TYPES, and use that correctly.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Acked-By: Anton Ivanov <anton.ivanov@cambridgegreys.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
arch/um/include/shared/irq_user.h
arch/um/kernel/irq.c