From nobody Sun Nov 24 13:43:05 2024 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CBE2D1CDFBE for ; Mon, 4 Nov 2024 19:08:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730747323; cv=none; b=ftOU6mREi4zZqhZzvl6bnZxrEKqINGXKuIvJQnoWBFsRerDq+xYvTDlyVudC4jBxRHeJrSmZi/OC/BUL+ZDwVnpEexMULMa5nwMY1UiL+mogN3lWSIRYUaR0+LGwN9Pj20G1Xv8hhWg6VYvQ9z8lfm628TMsK+e6pOh8aU3ecRE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730747323; c=relaxed/simple; bh=/6rcbMtM42HcnHtS60PzjqVFy7pKZof26/BWcubLefQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=A3lHxzA6KY4V3NyZIRlH0vnKRGCuX+ya4SYKQOzZRJkJs6LgLEu7xDgOt8dUWTBuIBOg/DBWjPexzKyY0rCnNxdnE+rU0B3R1syawLdyoJhzd08JAPcI0U806yZCiVVDa/W8HgAoXUmluZMVbHu41OTe56j798TvEur4yNFMRFU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ZeeDAWOI; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ZeeDAWOI" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 89C6DC4CECE; Mon, 4 Nov 2024 19:08:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1730747323; bh=/6rcbMtM42HcnHtS60PzjqVFy7pKZof26/BWcubLefQ=; h=From:To:Cc:Subject:Date:From; b=ZeeDAWOIFGxAbASpg1wkeN5leoCtZslN+XiOFlneYPTVx1GWTOaBjf+Y0jagph0iQ zQuiTrnzQ9dhxhV4pZANcAPElQz/Qi4tBrVCfdkucKcubur2s+qSfm+KC1ecX/7eL9 Q181IrhJ8Jl3RMFan00mJ1Cbd3ib0eisD3/ObWn6y9yZ7clBTP7a7aPZ3+Njy3d7hJ e0MrlXdNhhpjWBqCRebmIbm32WT4tl+JG9ArS4M9tYDmwZfutLUtxWCc+teOc5MKZN cUGEGHcjODbVCHWUrTil6y0RMZHSwxynilpnfjUUZCAu36NK5JyEpwJqy+/veYTa2f 0NLw5MExvoWFw== From: "Rob Herring (Arm)" To: Thomas Gleixner , Maxime Coquelin , Alexandre Torgue Cc: linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org Subject: [PATCH] irqchip/stm32mp-exti: Use of_property_present() for non-boolean properties Date: Mon, 4 Nov 2024 13:08:35 -0600 Message-ID: <20241104190836.278117-1-robh@kernel.org> X-Mailer: git-send-email 2.45.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The use of of_property_read_bool() for non-boolean properties is deprecated in favor of of_property_present() when testing for property presence. Signed-off-by: Rob Herring (Arm) Reviewed-by: Antonio Borneo --- drivers/irqchip/irq-stm32mp-exti.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/irqchip/irq-stm32mp-exti.c b/drivers/irqchip/irq-stm32= mp-exti.c index 33e0cfdea654..cb83d6cc6113 100644 --- a/drivers/irqchip/irq-stm32mp-exti.c +++ b/drivers/irqchip/irq-stm32mp-exti.c @@ -696,8 +696,7 @@ static int stm32mp_exti_probe(struct platform_device *p= dev) if (ret) return ret; =20 - if (of_property_read_bool(np, "interrupts-extended")) - host_data->dt_has_irqs_desc =3D true; + host_data->dt_has_irqs_desc =3D of_property_present(np, "interrupts-exten= ded"); =20 return 0; } --=20 2.45.2