[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220715205203.82591-1-andriy.shevchenko@linux.intel.com>
Date: Fri, 15 Jul 2022 23:52:03 +0300
From: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
To: Marc Zyngier <maz@...nel.org>,
Antonio Borneo <antonio.borneo@...s.st.com>,
linux-kernel@...r.kernel.org,
linux-stm32@...md-mailman.stormreply.com,
linux-arm-kernel@...ts.infradead.org
Cc: Thomas Gleixner <tglx@...utronix.de>,
Maxime Coquelin <mcoquelin.stm32@...il.com>,
Alexandre Torgue <alexandre.torgue@...s.st.com>,
Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
Subject: [PATCH v1 1/1] irqchip/stm32-exti: Use INVALID_HWIRQ definition
Use specific definition for invalid IRQ. It makes the
code uniform in respect to the constant used for that.
No functional change intended.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
---
drivers/irqchip/irq-stm32-exti.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/irqchip/irq-stm32-exti.c b/drivers/irqchip/irq-stm32-exti.c
index a73763d475f0..a6ae9f38aaf0 100644
--- a/drivers/irqchip/irq-stm32-exti.c
+++ b/drivers/irqchip/irq-stm32-exti.c
@@ -170,7 +170,7 @@ static const struct stm32_exti_bank *stm32mp1_exti_banks[] = {
static struct irq_chip stm32_exti_h_chip;
static struct irq_chip stm32_exti_h_chip_direct;
-#define EXTI_INVALID_IRQ U8_MAX
+#define EXTI_INVALID_IRQ ((u8)INVALID_HWIRQ)
#define STM32MP1_DESC_IRQ_SIZE (ARRAY_SIZE(stm32mp1_exti_banks) * IRQS_PER_BANK)
static const u8 stm32mp1_desc_irq[] = {
--
2.35.1
Powered by blists - more mailing lists