From patchwork Fri Mar 10 14:46:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 13169334 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 1AB50C742A7 for ; Fri, 10 Mar 2023 14:48:12 +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=vPPLN4V5w3nnHbkJq7lo28d06I9HpkfuLM3nn82V+Mw=; b=VN6NVz8fGEZe7r 86YFOOSAmBP7hXPjOCdvaT40VxuHDDNmmUokOxmUzcDtUceS5swD9UsOGoCq395ZPOmiC824laKnA B7RtDtfEZd8vLlqkMJIDps5ZElL3gOU1BBTbnT0VkoaHioyW7+L+vBWmhvSWfOMqMTejAtkpaNK7a B2RA58ZNvcK8ouP7TMLwK9w458IeV4tuKLvKDtkDQ0QFWQbcfF9Rv5GM1rdG2ZCPEA3rn69IFKbjH ToNKbpQmF6c+x2t1b5ISyKfQJbGLeP3NZj/UZMH//2cmgEvdbTUZpLB3GCljBAvezdjnnddF+QqPU H2UyX1p30AqeiogsaEQQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pae1g-00Ema3-5k; Fri, 10 Mar 2023 14:47:20 +0000 Received: from mail-oa1-f44.google.com ([209.85.160.44]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pae1L-00EmSi-Lp for linux-arm-kernel@lists.infradead.org; Fri, 10 Mar 2023 14:47:00 +0000 Received: by mail-oa1-f44.google.com with SMTP id 586e51a60fabf-17711f56136so6026732fac.12 for ; Fri, 10 Mar 2023 06:46:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678459618; 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=BGX0FXfNI3dLKikH/musE/uxQbEGTra0C5FWKvnCxVA=; b=67IvsTO3VsXkfAReyBCNH4yaw0wVdhDgbwruJy+8AnV4g3ZwCNUorpBm4bUatORSky /UIGhvviQcRXR2b/KBAHOGzzn0xkjyTIOaT9+2zQshUbgx9E8n7+tW53IDVslYzB+r1r 8QMmjS4AAX7hiZec4adU138IonSOHEjh61yToycavWhRGgtF3+zVekrcQrh1MjaJkyPA KK44W7DpR9yGz2Z9+wvHd/QF0wHI0QRwPpnnImDdnyx9ma0687UKreuwOwCPj3j3+L3b VQOHzLBUaB8l3A+ktaVOqPg4746Wy1NJsGbs5a+T12y4G2FEfMfuYSrRLbLoliQB0KZT Dm0w== X-Gm-Message-State: AO0yUKUVZF3X8RfsHWsvGx4CUPQH0gbvwyAx0zQ+xbtcGanG6c5PLRXy hq7SZa0QjzJg3qOaeEjUbg== X-Google-Smtp-Source: AK7set9VN0RJ1wRIetkEXYIdaNM1jjaRix9csyPHcN3ptokbn4vVRTw8IIvPUBkv2JoCus5vftouqA== X-Received: by 2002:a05:6870:6324:b0:16e:92d2:e810 with SMTP id s36-20020a056870632400b0016e92d2e810mr14171417oao.53.1678459618310; Fri, 10 Mar 2023 06:46:58 -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 h21-20020a4abb95000000b0051ff746e2b2sm7644oop.8.2023.03.10.06.46.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Mar 2023 06:46:57 -0800 (PST) Received: (nullmailer pid 1540681 invoked by uid 1000); Fri, 10 Mar 2023 14:46:55 -0000 From: Rob Herring To: Russell King , Krzysztof Kozlowski , Alim Akhtar Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] ARM: exynos: Use of_property_read_bool() for boolean properties Date: Fri, 10 Mar 2023 08:46:54 -0600 Message-Id: <20230310144655.1540655-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_731658_6729FFEC X-CRM114-Status: GOOD ( 12.94 ) 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-exynos/suspend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-exynos/suspend.c b/arch/arm/mach-exynos/suspend.c index 3bf14ca78b62..6d5d7696aaf7 100644 --- a/arch/arm/mach-exynos/suspend.c +++ b/arch/arm/mach-exynos/suspend.c @@ -667,7 +667,7 @@ void __init exynos_pm_init(void) 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"); of_node_put(np); return;