Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1288469pxb; Thu, 16 Sep 2021 04:22:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwPwD65T7c8f+qY/Bcr/JiyzfnE/Lb6YDzvFPbggct3/yMdMqj/m1NSZOCxhhFPFlp4HEeW X-Received: by 2002:a02:2b25:: with SMTP id h37mr3866608jaa.33.1631791351513; Thu, 16 Sep 2021 04:22:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631791351; cv=none; d=google.com; s=arc-20160816; b=nGfQuOcCXeN1JiSKu3uwuAEFVot2txy1gxUok522rZXemxBvlhbtFlS40VrpU0PZ1W unHP+bDsxW6lZsyUS+AsxriQE2ZhLoPLn9tt3wGrxhmx8KlwHdNygG65v4BjRCzq6pBl 4ITijLi70Eph4TToma8ly6sJO1jgCK/6hDhsdYqWBfDUQXx3/TEQPML1UUI0yzeoCI6D BrOYz0nTbbLt2Rt69nR8nmUchsLG/IMn3SetL+HH2yCDAObnobXUYIGOlcuambKejKSL akGs6DOoGDsNfCudtTC9G54b1XkwZxnzJmlsTiFNhp9NvnBxqaYY8f48jMACVfSLGQ8Y 1Kdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=53LFSns4UAh2KxNV8EBIFO5iaKQafPpigh44hqrJrs0=; b=GFgfZEriAYqjIOtdo9oHj1WHKS15v3pkzYITpoxx60fPZPSV7dg4Dis/UBCygVgnzb M3v2V4M74M3kOXzbgYdZ3DA7Tb0Xa2L76ZZ+eTXGP28wbQQT4g3niJhSlxaSo6mXqi6X QkVLzaINSkXq7RINFc08KE0GsO/QCNzAPd1gpkG/hpcpr47tvYZrLRpNJUcJpEhUkvxV dZ6paK7j9Imv6q51s/AJohgvo/gQDV/UHEN9P1KaIEcMjULLnoTLaVyhghPT3v5QJvXr wOZTg4+VLB+jkX+r0rrFVwNgv/nZdgfq/SLtuyH1vLpEI2vjK9mYNx6sAisrRVegNr71 fajQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f26si2338952iog.53.2021.09.16.04.22.19; Thu, 16 Sep 2021 04:22:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237953AbhIPLVQ (ORCPT + 99 others); Thu, 16 Sep 2021 07:21:16 -0400 Received: from mx.socionext.com ([202.248.49.38]:62131 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237585AbhIPLVK (ORCPT ); Thu, 16 Sep 2021 07:21:10 -0400 Received: from unknown (HELO kinkan2-ex.css.socionext.com) ([172.31.9.52]) by mx.socionext.com with ESMTP; 16 Sep 2021 20:19:49 +0900 Received: from mail.mfilter.local (m-filter-2 [10.213.24.62]) by kinkan2-ex.css.socionext.com (Postfix) with ESMTP id A6B6A2059034; Thu, 16 Sep 2021 20:19:49 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Thu, 16 Sep 2021 20:19:49 +0900 Received: from plum.e01.socionext.com (unknown [10.212.243.119]) by kinkan2.css.socionext.com (Postfix) with ESMTP id 39F52AB192; Thu, 16 Sep 2021 20:19:49 +0900 (JST) From: Kunihiko Hayashi To: Linus Walleij , Bartosz Golaszewski , Masami Hiramatsu Cc: linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Kunihiko Hayashi Subject: [PATCH 3/3] gpio: uniphier: Use helper functions to get private data from IRQ data Date: Thu, 16 Sep 2021 20:19:37 +0900 Message-Id: <1631791177-27229-4-git-send-email-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1631791177-27229-1-git-send-email-hayashi.kunihiko@socionext.com> References: <1631791177-27229-1-git-send-email-hayashi.kunihiko@socionext.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use helper functions to get private data from IRQ data instead of direct access. No functional changes intended. Signed-off-by: Kunihiko Hayashi --- drivers/gpio/gpio-uniphier.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpio/gpio-uniphier.c b/drivers/gpio/gpio-uniphier.c index dca96f5..19ce667 100644 --- a/drivers/gpio/gpio-uniphier.c +++ b/drivers/gpio/gpio-uniphier.c @@ -179,7 +179,7 @@ static int uniphier_gpio_to_irq(struct gpio_chip *chip, unsigned int offset) static void uniphier_gpio_irq_mask(struct irq_data *data) { - struct uniphier_gpio_priv *priv = data->chip_data; + struct uniphier_gpio_priv *priv = irq_data_get_irq_chip_data(data); u32 mask = BIT(irqd_to_hwirq(data)); uniphier_gpio_reg_update(priv, UNIPHIER_GPIO_IRQ_EN, mask, 0); @@ -189,7 +189,7 @@ static void uniphier_gpio_irq_mask(struct irq_data *data) static void uniphier_gpio_irq_unmask(struct irq_data *data) { - struct uniphier_gpio_priv *priv = data->chip_data; + struct uniphier_gpio_priv *priv = irq_data_get_irq_chip_data(data); u32 mask = BIT(irqd_to_hwirq(data)); uniphier_gpio_reg_update(priv, UNIPHIER_GPIO_IRQ_EN, mask, mask); @@ -199,7 +199,7 @@ static void uniphier_gpio_irq_unmask(struct irq_data *data) static int uniphier_gpio_irq_set_type(struct irq_data *data, unsigned int type) { - struct uniphier_gpio_priv *priv = data->chip_data; + struct uniphier_gpio_priv *priv = irq_data_get_irq_chip_data(data); u32 mask = BIT(irqd_to_hwirq(data)); u32 val = 0; -- 2.7.4