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: 1755256 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=UJlDOPiW; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PY8624fdXz246J for ; Sat, 11 Mar 2023 01:47:22 +1100 (AEDT) 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-Spam-Score: 0.8 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: 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 [...] Content analysis details: (0.8 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.160.50 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [robherring2[at]gmail.com] 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit [robherring2[at]gmail.com] 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [209.85.160.50 listed in wl.mailspike.net] 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different 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+incoming-imx=patchwork.ozlabs.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 */