From patchwork Sat Apr 8 10:45:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 81155 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp815211vqo; Sat, 8 Apr 2023 04:25:44 -0700 (PDT) X-Google-Smtp-Source: AKy350ZflJ3tQVIT64eVxlZfQMibDnPaR23t/qW+Ds7bmUvEjd65oSVxyP/vvNeHtcFvyTtaSPFl X-Received: by 2002:a17:906:3555:b0:931:4b0b:73e3 with SMTP id s21-20020a170906355500b009314b0b73e3mr2048698eja.65.1680953144227; Sat, 08 Apr 2023 04:25:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680953144; cv=none; d=google.com; s=arc-20160816; b=iBehsc0aSSPxeNYoXGFrcGy5MDNdwvdJ/GUoISJiAKvDB4U28DnynIfL/Xg+vNdgrC 1P1OT74eujtrRfiEtLFOefSzP+Ib6P8+deTL3+H5s9E2nu3eVv2V2ohmXcHE0kFMSSiq 8ggRHQ52Y+KJUGPV4EqaBiDYkUdduR3pFBgwrzNh/f0aVSUav20akqLdk0IVFn9lx+C5 v6YbPqSUDhLrsgR52DUjPPtbRMv3xNo9JqYXooan4DFWkt10mLL/07UEiykXkbFjYtH/ 8A6JYRz67LOnWxcdkkCT8wb+JiJfG+HR1CM1VnY+8bpkXrGUX8aeKkXfIzum1pURDPLL L5zQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=dQoN1el7Rg83k5j+HcRFNlbKbOkdn6NvXnV3T7yJPDU=; b=PrscfWGKrStVI9toFLb+YgFn2uypBecpDsVqZ+7nFeVZlrYkXpCHL1Pi1P6qm0PRAE wgTDsXhbIhYXauWYrSwxhagLDwvZImDTp4fydEtLu9FK5knObdKOdtQj3PT1J9hHOSN9 e3Fqn55BrlWwUzSY1nd31d6JJJqLh/+bcGEfmVZrS/qVRO4S3IFLbiJtTQEjneSAhNN1 y3glY47COrfemAGkHY9b4wTexU7BcNUfSUlnjA92BYT17MUBzDGHQiwyYlycFFXpjfhU vVMSEF9LE9q06UcLm47lAU/iEeyxozBrK6qpXFIfuWOHumI43nRM08OYOiUq/+R3nXXY w1SQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=ur+eMC1n; dkim=neutral (no key) header.i=@linutronix.de; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gv3-20020a1709072bc300b00947bae8c71bsi5019446ejc.916.2023.04.08.04.25.10; Sat, 08 Apr 2023 04:25:44 -0700 (PDT) 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; dkim=pass header.i=@linutronix.de header.s=2020 header.b=ur+eMC1n; dkim=neutral (no key) header.i=@linutronix.de; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230215AbjDHKtw (ORCPT + 99 others); Sat, 8 Apr 2023 06:49:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230237AbjDHKtR (ORCPT ); Sat, 8 Apr 2023 06:49:17 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5354F113D1 for ; Sat, 8 Apr 2023 03:48:44 -0700 (PDT) Date: Sat, 08 Apr 2023 10:45:20 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1680950720; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dQoN1el7Rg83k5j+HcRFNlbKbOkdn6NvXnV3T7yJPDU=; b=ur+eMC1nMFV5mCQnd25gkuBth+w669U9v1LEX28RsMMM5WOyjO5oLp0iSmbC3C2DW1rFQQ /8e9/d2wRPs5hR3Yuh0ZHUpBINpMMlaOGheFJC+osLPrBwpqmzGYGuWkVlo618+9zXLwyp AWwhyy6q4/JEJJFzeT7wQNCOLQ5Ueg0pxK2NTY1HqEri0kbuUX9WiMkqAFqgGDO9z3Tv7R fH9y8nm9F0qkCCv4lbf/7Uch4p3R4DptmrWpSwB/7tM5L3KL8Tk+f5YXZ/miKksax9w5V6 4sVTsJtL/RuXQ3W2X7tOaMV+pwTiSnjHcKEWhOaPYzylOOxVAsHIZD52H6Axcg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1680950720; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dQoN1el7Rg83k5j+HcRFNlbKbOkdn6NvXnV3T7yJPDU=; b=CVyoyFjAkSRMlqp35+nu2xWqP9cM98A2WzfvP0+9zZ0RxTuEDDMyIxXtYSiPJQjOT/o9hk fLa8QhU87oIj9AAQ== From: "irqchip-bot for Rob Herring" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-kernel@vger.kernel.org Subject: [irqchip: irq/irqchip-next] irqchip: Use of_property_read_bool() for boolean properties Cc: Rob Herring , Guo Ren , Marc Zyngier , tglx@linutronix.de In-Reply-To: <20230310144710.1543070-1-robh@kernel.org> References: <20230310144710.1543070-1-robh@kernel.org> MIME-Version: 1.0 Message-ID: <168095072029.404.13607319176829594584.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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?1759997135343780405?= X-GMAIL-MSGID: =?utf-8?q?1762607124140368274?= The following commit has been merged into the irq/irqchip-next branch of irqchip: Commit-ID: 9dfc77917e3b82dc7f93d62cebf1ebb885e9cc6a Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/9dfc77917e3b82dc7f93d62cebf1ebb885e9cc6a Author: Rob Herring AuthorDate: Fri, 10 Mar 2023 08:47:10 -06:00 Committer: Marc Zyngier CommitterDate: Sat, 08 Apr 2023 11:07:49 +01:00 irqchip: Use of_property_read_bool() for boolean properties 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 Acked-by: Guo Ren (csky) Signed-off-by: Marc Zyngier Link: https://lore.kernel.org/r/20230310144710.1543070-1-robh@kernel.org --- drivers/irqchip/irq-csky-apb-intc.c | 2 +- drivers/irqchip/irq-gic-v2m.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/irqchip/irq-csky-apb-intc.c b/drivers/irqchip/irq-csky-apb-intc.c index 42d8a24..6710691 100644 --- a/drivers/irqchip/irq-csky-apb-intc.c +++ b/drivers/irqchip/irq-csky-apb-intc.c @@ -68,7 +68,7 @@ static void __init ck_set_gc(struct device_node *node, void __iomem *reg_base, gc->chip_types[0].chip.irq_mask = irq_gc_mask_clr_bit; gc->chip_types[0].chip.irq_unmask = irq_gc_mask_set_bit; - if (of_find_property(node, "csky,support-pulse-signal", NULL)) + if (of_property_read_bool(node, "csky,support-pulse-signal")) gc->chip_types[0].chip.irq_unmask = irq_ck_mask_set_bit; } diff --git a/drivers/irqchip/irq-gic-v2m.c b/drivers/irqchip/irq-gic-v2m.c index f1e75b3..f2ff438 100644 --- a/drivers/irqchip/irq-gic-v2m.c +++ b/drivers/irqchip/irq-gic-v2m.c @@ -421,7 +421,7 @@ static int __init gicv2m_of_init(struct fwnode_handle *parent_handle, u32 spi_start = 0, nr_spis = 0; struct resource res; - if (!of_find_property(child, "msi-controller", NULL)) + if (!of_property_read_bool(child, "msi-controller")) continue; ret = of_address_to_resource(child, 0, &res);