Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2579345rdh; Wed, 27 Sep 2023 06:56:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGSXCMDK6UiInHjQNBRp4OpQSbEwaiwx3jIEH0EjLabmJyaufOPkOC/MmxgMgELjYriuEJW X-Received: by 2002:a17:903:22c9:b0:1c3:7628:fcb3 with SMTP id y9-20020a17090322c900b001c37628fcb3mr1788802plg.47.1695823006870; Wed, 27 Sep 2023 06:56:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695823006; cv=none; d=google.com; s=arc-20160816; b=EvtISAJ4uZ1kxxZ745DyquFkKlSn4Uglpj7YAuX3sMBAYk2rRqaWnGHiwD6nvrsq3c p63U3GTIaH3d7GTgVQgWA0P9w1rRojY3RhG1y/D0VY7hV3l/vR2/b480pNrjxtn3OaQW X4VssJBevYp0JH2ioE4Y5G9P5UY/UEzwtuKabLEwN6dYKVPV09+LMU/zI97By5GcnyRo PKaRMksrFRNIZO6969Za99OyIM5S8aUrUks+XqbeNRKep20pNO5Ytu8ebefw45l8oM+8 vQfu0i237HFZuL2KQT1o6sbhnmuaoAc/fcnzY8Qn+aQYPQ4UYiMPqeZDAgTVjH9GaxQi 90cg== 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=whtAOYCml/MnE1i3EzMwOWRVP6mdefObjOX7CcbMARA=; fh=MywbC3RmKoNUEIn4K3jLd/UZJVnQrmUhbqiWPjGXgwY=; b=z3ajIv3VXqWWvaTINk2ytdnHXRp2KsQDI6dS2lXxhmp48GE7hkch0Ro5MthXUpzsUg eQqr65BytBOQBYMjKrp8y61EyqdXAV1jypiKcgtlQWlGg6Z6u83ZRRP+RLNdZ4uT4lvR u4EN1iFevFTK67plRnAujM4id3Hix1mYyzD40+vkJ766L0Kpv7JkIatfDbJ6P5fcFcr8 Ak3C7nQQY7Iu10jks1CDtUCbQDNxpr5HIpSGryXDYEtoUSeDra+JodGzmKTgiA8C5SWQ seimCiNisDvyqnpL+gQJJrrap3yrnTiGA11CWLu86l4P/s4aqQpFa6KSYhSRLfOEO/7Z ny7Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id z1-20020a170903018100b001c611f285aasi9642105plg.541.2023.09.27.06.56.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 06:56:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 15BAD811F10D; Wed, 27 Sep 2023 05:57:49 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231797AbjI0M5l (ORCPT + 99 others); Wed, 27 Sep 2023 08:57:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231740AbjI0M5i (ORCPT ); Wed, 27 Sep 2023 08:57:38 -0400 Received: from xavier.telenet-ops.be (xavier.telenet-ops.be [IPv6:2a02:1800:120:4::f00:14]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE109F4 for ; Wed, 27 Sep 2023 05:57:36 -0700 (PDT) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed40:cafc:ec85:941b:7b06]) by xavier.telenet-ops.be with bizsmtp id r0xa2A00356e2kz010xalL; Wed, 27 Sep 2023 14:57:34 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1qlU6H-004ix9-D2; Wed, 27 Sep 2023 14:57:33 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1qlU6f-000u9X-Ql; Wed, 27 Sep 2023 14:57:33 +0200 From: Geert Uytterhoeven To: Thomas Gleixner , Marc Zyngier , Lad Prabhakar , Biju Das Cc: linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH v2] irqchip: renesas-rzg2l: Convert to irq_data_get_irq_chip_data() Date: Wed, 27 Sep 2023 14:57:32 +0200 Message-Id: <8e47cc6400e5a82c854c855948d2665a3a3197e3.1695819391.git.geert+renesas@glider.be> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE 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-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 27 Sep 2023 05:57:49 -0700 (PDT) Use the existing irq_data_get_irq_chip_data() helper instead of open-coding the same operation. Signed-off-by: Geert Uytterhoeven Reviewed-by: Lad Prabhakar --- v2: - Add Reviewed-by, - Restore reverse xmas tree ordering. --- drivers/irqchip/irq-renesas-rzg2l.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-renesas-rzg2l.c b/drivers/irqchip/irq-renesas-rzg2l.c index 2cee5477be6b6251..96f4e322ed6b727c 100644 --- a/drivers/irqchip/irq-renesas-rzg2l.c +++ b/drivers/irqchip/irq-renesas-rzg2l.c @@ -130,8 +130,8 @@ static void rzg2l_irqc_irq_enable(struct irq_data *d) unsigned int hw_irq = irqd_to_hwirq(d); if (hw_irq >= IRQC_TINT_START && hw_irq < IRQC_NUM_IRQ) { + unsigned long tint = (uintptr_t)irq_data_get_irq_chip_data(d); struct rzg2l_irqc_priv *priv = irq_data_to_priv(d); - unsigned long tint = (uintptr_t)d->chip_data; u32 offset = hw_irq - IRQC_TINT_START; u32 tssr_offset = TSSR_OFFSET(offset); u8 tssr_index = TSSR_INDEX(offset); -- 2.34.1