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: 67478 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp950401wrd; Fri, 10 Mar 2023 07:58:16 -0800 (PST) X-Google-Smtp-Source: AK7set9ByN7JaZJPWQaswBWx2MrAxHMHXJpIJx+SxnUUCm6VU7wEW6Hy7PFdFvv1C8Gwew30R/yG X-Received: by 2002:a17:90a:6485:b0:237:461c:b44d with SMTP id h5-20020a17090a648500b00237461cb44dmr26782966pjj.46.1678463896082; Fri, 10 Mar 2023 07:58:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678463896; cv=none; d=google.com; s=arc-20160816; b=bxQCL9eIRR5pggOxiwUvREUhqONnXXWjsflqi3gRZQH0diV3CV6K7RbQge2OYOcFT7 BsyePvYQ9i8axUhBiwjj8ApFJ55TRDlZ+bAGBrY5D4VFkUfPspWyobRSW0/kT6aOJNLX sXY3j/EwgZbucWCd8FjjF1CGoWGHtqtl9dbRo8v17rcWWQ2u8yya2W7YmT7ujU5Ekd5D Xid4TD/7Zfeu8/5qYHtz0/Jsz+/fOMnsgrgAfK08su57F0YHkV5I7ONyHEYER5hXI/lS tI7YVu/ob9wtN2DUJYLsxf0yrESQ0Dey2HPhUnh/Y4frHlupfuCiIxtMiRJ1LTqDq3vp ivsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=BGX0FXfNI3dLKikH/musE/uxQbEGTra0C5FWKvnCxVA=; b=gpr0GDPRuoL/lB5TjhnIXvUNp5+LqsSGJr4GZmtaKX1jPUxLhBVrZmUh+kfk04Nke7 pk2B2oGpG4Njo7+xyU0vhcH7vTAirrHtv199AFlQeVpTWOYiXALVbQR083xBgHUSkOBA 7OWpFUYS9oOSO1mLIdrhgCOagGld9/tslpURU1wKXGhYMK9/34sQU4ZR5mHMewdbEirs Jz5dg/URzlyY3ZJDEFf197wqZVGtXeY5H31rkZqo2OeabJhKPiDBgj7z4QavvckMVR56 FQ60xetZVpjELVbW5M6hnCSvObgS8sG7bGyb/T8jnUjOotxuK07b3aAWhqVD7Y2VUe/e VHpw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t190-20020a6381c7000000b004fb471d2e31si101003pgd.694.2023.03.10.07.58.01; Fri, 10 Mar 2023 07:58:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232869AbjCJOrm (ORCPT + 99 others); Fri, 10 Mar 2023 09:47:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233015AbjCJOrW (ORCPT ); Fri, 10 Mar 2023 09:47:22 -0500 Received: from mail-oa1-f41.google.com (mail-oa1-f41.google.com [209.85.160.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF45F122090; Fri, 10 Mar 2023 06:47:03 -0800 (PST) Received: by mail-oa1-f41.google.com with SMTP id 586e51a60fabf-176261d7f45so6033146fac.11; Fri, 10 Mar 2023 06:47:03 -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=eyJWdcLB2b//vfOxgUYoiPFVojXp42GbOz9urNsb6qRmd13fsEy/k9kuVtSaT0pp6m /cQ7rFjB5dE3YVpWBN551gjSA5CbLvB8k1tBsTdVkyZCWs2RmoM6kVgDtqdVPs+Uui4X 6pLTV8WsULrPzkByfDbfI8ic+ZUnvsdvNWjxrg7n8mzKGpj6lzm3Dz5RGwte1n6P67dJ uO/9jZJV51daOO4RXN7k6S1+t69P3V9XevK+l1XKN1W8989iQJ6zPf1ryjRYmzAhbfE0 bDwdjZKD8dtwNrwWkfBEdAVerYqi6emeR9Ld/vMg1rqwP03WTKqawaOPysIz0wPEDLlE xBhA== X-Gm-Message-State: AO0yUKVKiY2DgYnPypg3OxGmArl7aa4XSt7u9R9waqOwdy5e1WuLp6NC Xcr24MFpt7Hz2yF6Musx0ibJkOShMA== 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-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759996958156024589?= X-GMAIL-MSGID: =?utf-8?q?1759996958156024589?= 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;