From patchwork Fri Sep 22 07:51:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 143248 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp5398983vqi; Fri, 22 Sep 2023 01:09:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEdYnpp9xBLb9pxzg1WJBer/IQnY+cgberw9XRSFViJoi41J+PDz66lG3yZws1XOaGovr3G X-Received: by 2002:a05:6358:93a7:b0:139:d24c:ed28 with SMTP id h39-20020a05635893a700b00139d24ced28mr9514825rwb.12.1695370177823; Fri, 22 Sep 2023 01:09:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695370177; cv=none; d=google.com; s=arc-20160816; b=03uWD5Spx9PQAfAujG9qUYZ72Y7KJ68iOFaGbzKHAPvr0A76fni7cJJ/IisNd9b/Jn JLueI+2+BGneZhdR+jDLC/15grFlG98ymW/ZTKP4LBra6c6RrqU267kd6n2UJ64DvcOj LtuPiY5SghYrI9xRj96WkGaSFyFOfXwkLpotjCzFV9nnykC+hI5CrNCOBRrbqSqNCleg PUUE7MoVP/MPm8xTWmDG2/HwkwLZb0M7fFDQWPgMgKHuHECOmaq0mw6HcjXSwnUAzlZE Lal5hY5J0mcP311gOIOHQ7TCrHNvxd6sUSaapKiiP6mG5Ictd1pbSJ2IrKIyBJwZwbjM 8DuQ== 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=gmP2VLdOMP8mttn0hzs6bRMeJC3hnRMIeJVFAToe/gA=; fh=K3KE32lxQ9LlBgkSwp6BW3qH3b6y3WTwHzr6NdDI6Jw=; b=AEswsG4iUY+qq9pPtDeZMNl/1VdRdUjfyY/o9Nz+8xrRGJh0COihqTzXEwdQP2jBcP rlMiJV3VnekVeulqNcsf4VXNX5yz80MY8BHWwjsldlEQzJUSqE0qJ7KH2rv/8url5SZl hgpzEXg2xf3ensoyrd1SkFznmLGwsW55SVHTPaMpuYEkpm0pf3vGLzYDKj+FhTkeR4ji /7trgghZbgeVETERkfZ0uit7suXFhHGJoESXxEqbjuHpMC+rZafOD35HBNJp3+2/efpN N/9HDZ6s2K8SgJc1Vcg+qUZN5UHDGSc+5ZfVli3bJ14+8qBw/ibyum2H9BSwIFjJT2bI iLkQ== 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:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id cw8-20020a056a00450800b0068fea05ecd7si3356752pfb.164.2023.09.22.01.09.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 01:09:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id 5245C84DB796; Fri, 22 Sep 2023 00:51:57 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231789AbjIVHv6 (ORCPT + 30 others); Fri, 22 Sep 2023 03:51:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231755AbjIVHvy (ORCPT ); Fri, 22 Sep 2023 03:51:54 -0400 Received: from baptiste.telenet-ops.be (baptiste.telenet-ops.be [IPv6:2a02:1800:120:4::f00:13]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39DF618F for ; Fri, 22 Sep 2023 00:51:46 -0700 (PDT) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed40:ea4b:e108:10b2:c4a2]) by baptiste.telenet-ops.be with bizsmtp id ovrk2A0093uG6wG01vrk6T; Fri, 22 Sep 2023 09:51:45 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1qjawa-004Aa8-SM; Fri, 22 Sep 2023 09:51:44 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1qjawy-007VdN-Dl; Fri, 22 Sep 2023 09:51:44 +0200 From: Geert Uytterhoeven To: Thomas Gleixner , Marc Zyngier , Lad Prabhakar Cc: linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH] irqchip: renesas-rzg2l: Convert to irq_data_get_irq_chip_data() Date: Fri, 22 Sep 2023 09:51:43 +0200 Message-Id: <3241c1386e1ba0bc288496a36365bd764e17fdae.1695368979.git.geert+renesas@glider.be> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE, SPF_NONE 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-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Fri, 22 Sep 2023 00:51:57 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777724479704681808 X-GMAIL-MSGID: 1777724479704681808 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 --- 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 4bbfa2b0a4df9b83..c0f3c09affa64511 100644 --- a/drivers/irqchip/irq-renesas-rzg2l.c +++ b/drivers/irqchip/irq-renesas-rzg2l.c @@ -131,7 +131,7 @@ static void rzg2l_irqc_irq_enable(struct irq_data *d) if (hw_irq >= IRQC_TINT_START && hw_irq < IRQC_NUM_IRQ) { struct rzg2l_irqc_priv *priv = irq_data_to_priv(d); - unsigned long tint = (uintptr_t)d->chip_data; + unsigned long tint = (uintptr_t)irq_data_get_irq_chip_data(d); u32 offset = hw_irq - IRQC_TINT_START; u32 tssr_offset = TSSR_OFFSET(offset); u8 tssr_index = TSSR_INDEX(offset);