From patchwork Fri Mar 10 14:46:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring (Arm)" X-Patchwork-Id: 13169333 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 152A2C742A7 for ; Fri, 10 Mar 2023 14:48:08 +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=ZW0ONw+y9JLn2rCIeTx6bWPXTISGyyUpOyo/zIdbAMY=; b=UJlDOPiW6OjRUl e0Vl4MRVFZXMeHh7ezWCek/SN+SneGBkyrJl5aYS5SKk/AKA/GQFYVMeQGPtMHvByraxxLXCLKhZ8 N2sIH69mWe8uvEF1sqN4IZ3kaietPXEhugadZTRf0XTUWYvURGU9KqvCen+Cbg+SHWJcYUuzI6LL9 1LNaZVKn9k1LxRN16WyxOVTCblpGS2bISaD09kjGCrXdc0soVHhSRA7NpcFd0DmEr5MmlAnh7Lsfs zqNOVb8cOQ49xacH3f9LBqOBA3Uk+afne6gTbqtIE996KAd5TZ1nq761PILMMDg3bRKnzWg7oDuAP istPP9Np1D9z+UBgRmOg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pae1W-00EmXG-Nr; Fri, 10 Mar 2023 14:47:10 +0000 Received: from mail-oa1-f50.google.com ([209.85.160.50]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pae1K-00EmSF-Uh for linux-arm-kernel@lists.infradead.org; Fri, 10 Mar 2023 14:47:00 +0000 Received: by mail-oa1-f50.google.com with SMTP id 586e51a60fabf-1755e639b65so6078085fac.3 for ; Fri, 10 Mar 2023 06:46:57 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678459617; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ruOCIyrCu4R3myaePZjbY/+wVIokIQ8xguXTZPHNbVU=; b=2UO9gFZxYt/r+PVg63qRIQn7i8ZMGHQHp7DQjYi5K4ZhAcL4lagdMeckAovxOdTUIM FewB2/Um4bsbwHuDi2TbA0TssmK1WH7v4dXaRPRxvuATF+OW1e6ye7H5VaDatUdq6LDS PhHEavb8OB3lxT6liBZh3zC5e9t0F3fuwao9HpN2tzr+4Iq/URu8zr9mXKUc715MHHc6 4NN7QHJDRBXo0k69A2FoSnFAjCy2WQfOrY6MQWFGNa+WRlT3VJF7Zwkudo0Otb66/oK7 fAIzxuis+iBfsJ6PXExtu6aX/aLGQUY8lWHx3kf5ruZ/MspDO29amw9BhDJUi6/kX4gC +rLA== X-Gm-Message-State: AO0yUKVgY8RtI+hgKcwqNGtpskpzXsUz4sCD/brHgbHQQJ0jpbj1X5tg 3+0KaC2q3WFZ9z9zh+Cb9Q== X-Google-Smtp-Source: AK7set/ItsnsH5x0zLLeP4WfD3sVpmDCzdySo7lTckXI9tTIYbLIQcFnseIv5HnKDBmV90/O4hldLQ== X-Received: by 2002:a05:6870:b251:b0:172:28a0:6dde with SMTP id b17-20020a056870b25100b0017228a06ddemr16164067oam.30.1678459616941; Fri, 10 Mar 2023 06:46:56 -0800 (PST) Received: from robh_at_kernel.org (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id w4-20020a056870a2c400b00172ac40356csm74075oak.50.2023.03.10.06.46.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Mar 2023 06:46:56 -0800 (PST) Received: (nullmailer pid 1540750 invoked by uid 1000); Fri, 10 Mar 2023 14:46:55 -0000 From: Rob Herring To: Russell King , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] ARM: imx: Use of_property_read_bool() for boolean properties Date: Fri, 10 Mar 2023 08:46:55 -0600 Message-Id: <20230310144655.1540724-1-robh@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230310_064659_014686_E8FDCB48 X-CRM114-Status: GOOD ( 13.61 ) 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 It is preferred to use typed property access functions (i.e. of_property_read_ functions) rather than low-level of_get_property/of_find_property functions for reading properties. Convert reading boolean properties to to of_property_read_bool(). Signed-off-by: Rob Herring --- arch/arm/mach-imx/gpc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/gpc.c b/arch/arm/mach-imx/gpc.c index ebc4339b8be4..5909088d5482 100644 --- a/arch/arm/mach-imx/gpc.c +++ b/arch/arm/mach-imx/gpc.c @@ -275,7 +275,7 @@ void __init imx_gpc_check_dt(void) if (WARN_ON(!np)) return; - if (WARN_ON(!of_find_property(np, "interrupt-controller", NULL))) { + if (WARN_ON(!of_property_read_bool(np, "interrupt-controller"))) { pr_warn("Outdated DT detected, suspend/resume will NOT work\n"); /* map GPC, so that at least CPUidle and WARs keep working */