From patchwork Fri Jul 15 20:52:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 12919710 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 46B14C433EF for ; Fri, 15 Jul 2022 20:53:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=I7M1dF9oKxJD95uKR6yZK+oTPuzQYh+yuYv/0JgytNU=; b=rTojg8K8TKWeee JOWhdIcl1ABuv66S9hpPtH30N3Cc4XumrV2GL1r5Jo8zfRB1TDajlU3YFZMtPWpRLeBYivABDc5t3 gN8pYS+Tnz1UVAuaVmFZusl96U30jShSP3kOYtGpv+Fw1yspBB3GTmmM6mYbBAnq58unVD9J33QSF LCPDQTTbLRqTPBVYWW1AdCW5dxpONgj0nj96FsNdXFZwgyz5OqLSDpl6U9bu9e3zlOqbQ0H1Y9ERm 3fZIUtRVtSy+ytHMleANOwNqCcK3Fqqd/1F79gjEvKDG/2RN2uvuJmQCTxU0LNxwd4uerrIQ2ZYuE LxXKv4QfB+vQo/zKq7TQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oCSID-00AIe8-9j; Fri, 15 Jul 2022 20:52:09 +0000 Received: from mga06b.intel.com ([134.134.136.31] helo=mga06.intel.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oCSIA-00AIbQ-5U for linux-arm-kernel@lists.infradead.org; Fri, 15 Jul 2022 20:52:07 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1657918326; x=1689454326; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=sQXlsF0dU0h7TKwhfyBx9K7vKWjShXkwHIUD/Ch8sf8=; b=XQqnX2CqSEqvp/UQahxKCYefpeOMGdpK5IrbYEdcCIwBV+Lol7STTWkY 99msnEoy7IrHibaMlFKOujKlCmRcXfBc2QGDaQ10CPWvX9/BCanElVPEf xHlzOniRLzXfYvFmYlzzFxKOnfVffDAKCEI3syD8bBhjhjHpzX/H7TkvS cHSSLva/+uqrw9REL00uQnQjep/HtVIkJ0TyYXVnm0N3546I9pITYNRim c1hkPS+POW55iuJaXF0NmqoLXTCd6kcvmoGaVTGk89meJsi0/vupC7VQf fBJIJBd7MUGtEe5W/RI2CfpUscU4mT+xoZhvHqwQepYv9MgGN7NXqmfi8 Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10409"; a="347584706" X-IronPort-AV: E=Sophos;i="5.92,274,1650956400"; d="scan'208";a="347584706" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jul 2022 13:52:00 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,274,1650956400"; d="scan'208";a="654494812" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga008.fm.intel.com with ESMTP; 15 Jul 2022 13:51:58 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id AC51A1A0; Fri, 15 Jul 2022 23:52:06 +0300 (EEST) From: Andy Shevchenko To: Marc Zyngier , Antonio Borneo , linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org Cc: Thomas Gleixner , Maxime Coquelin , Alexandre Torgue , Andy Shevchenko Subject: [PATCH v1 1/1] irqchip/stm32-exti: Use INVALID_HWIRQ definition Date: Fri, 15 Jul 2022 23:52:03 +0300 Message-Id: <20220715205203.82591-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220715_135206_273382_478B2134 X-CRM114-Status: GOOD ( 11.75 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 --- 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[] = {