Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp821275pxk; Mon, 31 Aug 2020 01:50:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxfvwAXXEvrUTuUUFoie3JoBHO0rgV7idJ4tkuh2AS5M7ABLAYuZz5UVdbYDEyr2U3SzNsj X-Received: by 2002:a17:906:5a83:: with SMTP id l3mr192469ejq.14.1598863828593; Mon, 31 Aug 2020 01:50:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598863828; cv=none; d=google.com; s=arc-20160816; b=s972aR4FyLawg0YP+QkiuF03Ielwow5r0m1Mp12YdVmmJHVPrxMsFaDd38HTeZ0hAw ylRDGskakw/gDAyn24zecJPmNEN4qJ7BdaNHJPHgEMiQiykC+IivG5pNph2HyDZj5tHC 7yVOo2kBXsJcNLNpO6whipRq6dgroVPPTAtZX5mKlzWGOYryDxBtOw75bnNWLgT2Kx95 CctkHZ4Fm3OSx6+1KlpZRfJI9eV6N03ht9NLqw6b30PcLeKHG/NczMlaWsW5XyxzvJi9 jeucJ43+4hQteVfJXvT6hZ4ic4z5T0j+oJ0IDwJ0U37yZSYHTwG60czvxKnw1RXQ/nWy PIDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=NojJRlBfjbh/fi9LV4jxE+/VOaqIp2HNSNKM2LLS04Y=; b=iTcNgF2S4u4ppso1abCPCXtXFhl+drjzNL2h6laqOFa+H40rGqLhCzVWXA84fXMamt uF4+jff9frwSHxOX8UjhliIVdkrU7cpgP12topyXLGYcLYHBs9rUIq5PVm4I/9YxiL9i g6ee6ljUvByGBH/AnYzYoI0hSloBD2eqvJRWe86NAECmyUHtSiub7jZYwVXQ3IbdNRwi dq2hnMSxNuA1MrlQXkaKj/hwVs0gtOjbJuO/gwbdoJ2vMn0Mf+r06KNexLb5RohB9wur cwdlZ8tejktcxNV1hXF+U/aJ1IoxM6NbYYuTOGsMxxl9sNsVi+0wM396WLLjjCYYdVr0 p2RQ== 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 w2si2892957edt.253.2020.08.31.01.50.06; Mon, 31 Aug 2020 01:50:28 -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 S1728272AbgHaIsS (ORCPT + 99 others); Mon, 31 Aug 2020 04:48:18 -0400 Received: from lucky1.263xmail.com ([211.157.147.133]:47680 "EHLO lucky1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727065AbgHaIsD (ORCPT ); Mon, 31 Aug 2020 04:48:03 -0400 Received: from localhost (unknown [192.168.167.32]) by lucky1.263xmail.com (Postfix) with ESMTP id 5B5FCC6605; Mon, 31 Aug 2020 16:47:57 +0800 (CST) X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-ADDR-CHECKED4: 1 X-ANTISPAM-LEVEL: 2 X-ABS-CHECKED: 0 Received: from localhost.localdomain (unknown [58.22.7.114]) by smtp.263.net (postfix) whith ESMTP id P11834T140500763920128S1598863675343235_; Mon, 31 Aug 2020 16:47:57 +0800 (CST) X-IP-DOMAINF: 1 X-UNIQUE-TAG: <3607ed3ee7b793450741574da9fea818> 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-SENDER-IP: 58.22.7.114 X-ATTACHMENT-NUM: 0 X-DNS-TYPE: 0 X-System-Flag: 0 From: Jianqun Xu To: linus.walleij@linaro.org, heiko@sntech.de Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, Jianqun Xu Subject: [PATCH 1/6] pinctrl: rockchip: make driver be tristate module Date: Mon, 31 Aug 2020 16:47:48 +0800 Message-Id: <20200831084753.7115-2-jay.xu@rock-chips.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200831084753.7115-1-jay.xu@rock-chips.com> References: <20200831084753.7115-1-jay.xu@rock-chips.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Make pinctrl-rockchip driver to be tristate module, support to build as a module, this is useful for GKI. Signed-off-by: Jianqun Xu --- drivers/pinctrl/Kconfig | 2 +- drivers/pinctrl/pinctrl-rockchip.c | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/pinctrl/Kconfig b/drivers/pinctrl/Kconfig index 8828613c4e0e..dd4874e2ac67 100644 --- a/drivers/pinctrl/Kconfig +++ b/drivers/pinctrl/Kconfig @@ -207,7 +207,7 @@ config PINCTRL_OXNAS select MFD_SYSCON config PINCTRL_ROCKCHIP - bool + tristate "Rockchip gpio and pinctrl driver" select PINMUX select GENERIC_PINCONF select GENERIC_IRQ_CHIP diff --git a/drivers/pinctrl/pinctrl-rockchip.c b/drivers/pinctrl/pinctrl-rockchip.c index c07324d1f265..24dfc814dee1 100644 --- a/drivers/pinctrl/pinctrl-rockchip.c +++ b/drivers/pinctrl/pinctrl-rockchip.c @@ -16,10 +16,12 @@ */ #include +#include #include #include #include #include +#include #include #include #include @@ -4256,3 +4258,8 @@ static int __init rockchip_pinctrl_drv_register(void) return platform_driver_register(&rockchip_pinctrl_driver); } postcore_initcall(rockchip_pinctrl_drv_register); + +MODULE_DESCRIPTION("ROCKCHIP Pin Controller Driver"); +MODULE_LICENSE("GPL"); +MODULE_ALIAS("platform:pinctrl-rockchip"); +MODULE_DEVICE_TABLE(of, rockchip_pinctrl_dt_match); -- 2.17.1