Received: by 2002:a05:6a10:c7d3:0:0:0:0 with SMTP id h19csp1346374pxy; Sun, 15 Aug 2021 18:22:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyK3SCyqTUoN3HtOpu9V5RmV1DhVOx4Rexbe8j87qyHwLTTkOXj7LJSKpNh0/GjjV3fj6w/ X-Received: by 2002:a17:906:b0c5:: with SMTP id bk5mr13416778ejb.428.1629076920333; Sun, 15 Aug 2021 18:22:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629076920; cv=none; d=google.com; s=arc-20160816; b=TIBL2MIAgIVSxI8M0FHDAYia3xD/NcfwceVX2eZ7TuEIFNuhdlXcSnETT1vUL0AFHf 9gr+f/XfKQv8FDvAxTD8jfBlUXaN/j1aUHbXrKs9neHxFNVDdVJAFaDHoU7xt+UzI9pn IhQr/AlIRO4TaH57IUmTHURA9nT6u5KZjSiJ/vXAt2YwMyNDXDmCJAfL5IEMnmsnjPiM 4xCz0G2vZLPl6b61WCQMq+PtMLXB9yC1AwY1aF9lhCLGmAYiJyediZtuUKxZ8eJcTQ3T zHWGekxfX4Ywrkda5iXUah6ojA05ZSh2lihc2bUVUlJuel2jpsvzEVPljfILq/GeLyWf e1pg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=frz5oR0XenMtJ9rOddo0oVGJMG55kwXRmAXkqPe1V0E=; b=pS8vWhkLbGhH6oIVrE2VDtd4urgBvsf6LXGLGPyS79iY2jx2ahNpaFhPeaadXL/K6O xXeB+0cniLbErPN19zQrqiUAMo0Dh5h/udpGqgJpbUNeECX2xLAbx93uG1n+Ejq9jnw7 qtcIDfmgJmCc3Q9fX0azGrxoCH/HskQT++LeHK3Q8YgXUIxJTX8+AedUtG32ENEEwplH yjLJYMgY/LA1EpDjFZdu2c7XFojXHhrMi8evAfaP+wFSfWAA7tmrtNEoiLf82lC8RkYB DbF3OmPotbu8pymnkAzdQThcwcice8sA9Q4E/Vr8xxuXqELkGU1PzIOdzw3/ERWJes// Eing== 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 y13si4144984edo.98.2021.08.15.18.21.37; Sun, 15 Aug 2021 18:22:00 -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 S232757AbhHPBUf (ORCPT + 99 others); Sun, 15 Aug 2021 21:20:35 -0400 Received: from lucky1.263xmail.com ([211.157.147.130]:48722 "EHLO lucky1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231628AbhHPBU0 (ORCPT ); Sun, 15 Aug 2021 21:20:26 -0400 Received: from localhost (unknown [192.168.167.16]) by lucky1.263xmail.com (Postfix) with ESMTP id 4843BD7662; Mon, 16 Aug 2021 09:19:54 +0800 (CST) X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-ADDR-CHECKED4: 1 X-SKE-CHECKED: 1 X-ANTISPAM-LEVEL: 2 Received: from localhost.localdomain (unknown [58.22.7.114]) by smtp.263.net (postfix) whith ESMTP id P26933T140041269528320S1629076790609014_; Mon, 16 Aug 2021 09:19:53 +0800 (CST) X-IP-DOMAINF: 1 X-UNIQUE-TAG: <9b3da95c0ae359f5c5a3a1f3f3eac345> X-RL-SENDER: jay.xu@rock-chips.com X-SENDER: xjq@rock-chips.com X-LOGIN-NAME: jay.xu@rock-chips.com X-FST-TO: linus.walleij@linaro.org X-RCPT-COUNT: 9 X-SENDER-IP: 58.22.7.114 X-ATTACHMENT-NUM: 0 X-System-Flag: 0 From: Jianqun Xu To: linus.walleij@linaro.org, heiko@sntech.de Cc: bgolaszewski@baylibre.com, robh+dt@kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Jianqun Xu Subject: [PATCH v8 3/9] pinctrl/rockchip: add pinctrl device to gpio bank struct Date: Mon, 16 Aug 2021 09:19:42 +0800 Message-Id: <20210816011948.1118959-4-jay.xu@rock-chips.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210816011948.1118959-1-jay.xu@rock-chips.com> References: <20210816011948.1118959-1-jay.xu@rock-chips.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Store a pointer from the pinctrl device for the gpio bank. Signed-off-by: Jianqun Xu --- v8: - none v7: - none, keep from v1 drivers/pinctrl/pinctrl-rockchip.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/pinctrl/pinctrl-rockchip.h b/drivers/pinctrl/pinctrl-rockchip.h index dba9e9540633..4aa3d2f1fa67 100644 --- a/drivers/pinctrl/pinctrl-rockchip.h +++ b/drivers/pinctrl/pinctrl-rockchip.h @@ -81,6 +81,7 @@ struct rockchip_drv { /** * struct rockchip_pin_bank + * @dev: the pinctrl device bind to the bank * @reg_base: register base of the gpio bank * @regmap_pull: optional separate register for additional pull settings * @clk: clock of the gpio bank @@ -105,6 +106,7 @@ struct rockchip_drv { * @route_mask: bits describing the routing pins of per bank */ struct rockchip_pin_bank { + struct device *dev; void __iomem *reg_base; struct regmap *regmap_pull; struct clk *clk; -- 2.25.1