From patchwork Wed Apr 8 13:21:47 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 46884 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f200.google.com (mail-lb0-f200.google.com [209.85.217.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A102920D10 for ; Wed, 8 Apr 2015 13:22:09 +0000 (UTC) Received: by lbbqq2 with SMTP id qq2sf19274601lbb.0 for ; Wed, 08 Apr 2015 06:22:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=3xA9WVhOmFimHKlWOl42TkBSkkBoZ1aaMSgVBs92PZI=; b=YxRd+tLS0UDDOzoXVNT040mLP8zNqgvfLwFFwX0WDUFxuUoiYwjHngrYCHw4kVM33F D1qgu8STGNLmot6T119IRFUsjzjXQ4UWHg3mXRI/aVB5VlhZX+8RM+RmCeAhgDjDBq5n ti1jN2Ck6XiKryOTGjAM9ahWy6XjXphKXqzbEMgISnuVd/5AdOv4P/1CjUrW60mC1CBT fANmLFLu6lZ3JO+MAND/qWuyk3CUPOQsRvAm+zn5ukUngIITT+sHyB+9ri5uLU/pqghH GEk/8/6uPE9tOPGzE04zKIqysKzrg0HutptFKn+Xm68D77mJd4kFrw1FQ/FO8rJ8FhUJ TKFg== X-Gm-Message-State: ALoCoQncXdiZqPuoq+6kbJoPMdyIvkPGbkr7LPVFshndk26xcpMCVMQhTSJrWFXz4hSoZX0NNagR X-Received: by 10.194.221.65 with SMTP id qc1mr5016691wjc.7.1428499328627; Wed, 08 Apr 2015 06:22:08 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.153.5.2 with SMTP id ci2ls163932lad.38.gmail; Wed, 08 Apr 2015 06:22:08 -0700 (PDT) X-Received: by 10.112.90.201 with SMTP id by9mr22631656lbb.30.1428499328397; Wed, 08 Apr 2015 06:22:08 -0700 (PDT) Received: from mail-la0-f42.google.com (mail-la0-f42.google.com. [209.85.215.42]) by mx.google.com with ESMTPS id ps10si8790852lbb.26.2015.04.08.06.22.08 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 Apr 2015 06:22:08 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.42 as permitted sender) client-ip=209.85.215.42; Received: by lagv1 with SMTP id v1so65777698lag.3 for ; Wed, 08 Apr 2015 06:22:08 -0700 (PDT) X-Received: by 10.112.141.202 with SMTP id rq10mr23282479lbb.88.1428499328242; Wed, 08 Apr 2015 06:22:08 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.67.65 with SMTP id l1csp1055302lbt; Wed, 8 Apr 2015 06:22:07 -0700 (PDT) X-Received: by 10.70.118.100 with SMTP id kl4mr17675133pdb.19.1428499327071; Wed, 08 Apr 2015 06:22:07 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id sz10si16591256pab.68.2015.04.08.06.22.06; Wed, 08 Apr 2015 06:22:07 -0700 (PDT) Received-SPF: none (google.com: linux-gpio-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753931AbbDHNV5 (ORCPT + 1 other); Wed, 8 Apr 2015 09:21:57 -0400 Received: from mail-lb0-f181.google.com ([209.85.217.181]:36464 "EHLO mail-lb0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751577AbbDHNVx (ORCPT ); Wed, 8 Apr 2015 09:21:53 -0400 Received: by lbbqq2 with SMTP id qq2so58066316lbb.3 for ; Wed, 08 Apr 2015 06:21:52 -0700 (PDT) X-Received: by 10.152.36.2 with SMTP id m2mr12164984laj.72.1428499312420; Wed, 08 Apr 2015 06:21:52 -0700 (PDT) Received: from localhost.localdomain ([85.235.11.236]) by mx.google.com with ESMTPSA id rp10sm1545300lbb.8.2015.04.08.06.21.50 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 Apr 2015 06:21:50 -0700 (PDT) From: Linus Walleij To: linux-gpio@vger.kernel.org Cc: Alexandre Courbot , Linus Walleij Subject: [PATCH] gpio: split GPIO drivers in submenus Date: Wed, 8 Apr 2015 15:21:47 +0200 Message-Id: <1428499307-8041-1-git-send-email-linus.walleij@linaro.org> X-Mailer: git-send-email 1.9.3 Sender: linux-gpio-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-gpio@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: linus.walleij@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.42 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Create Kconfig submenus for memory mapped, I2C, MFD, PCI, SPI and USB GPIO drivers to help navigate the forest of drivers in this subsystem. The I2C, SPI and USB menus get dependencies so we don't have to see them unless we have the required subsystem enabled in the first place. Signed-off-by: Linus Walleij --- drivers/gpio/Kconfig | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index c8d804074f61..97c31840f87a 100644 --- a/drivers/gpio/Kconfig +++ b/drivers/gpio/Kconfig @@ -90,10 +90,11 @@ config GPIO_GENERIC # put drivers in the right section, in alphabetical order +# This symbol is selected by both I2C and SPI expanders config GPIO_MAX730X tristate -comment "Memory mapped GPIO drivers:" +menu "Memory mapped GPIO drivers" config GPIO_74XX_MMIO tristate "GPIO driver for 74xx-ICs with MMIO access" @@ -518,7 +519,10 @@ config GPIO_ZYNQ help Say yes here to support Xilinx Zynq GPIO controller. -comment "I2C GPIO expanders:" +endmenu + +menu "I2C GPIO expanders" + depends on I2C config GPIO_ADP5588 tristate "ADP5588 I2C GPIO expander" @@ -652,7 +656,9 @@ config GPIO_SX150X 8 bits: sx1508q 16 bits: sx1509q -comment "MFD GPIO expanders:" +endmenu + +menu "MFD GPIO expanders" config GPIO_ADP5520 tristate "GPIO Support for ADP5520 PMIC" @@ -853,7 +859,10 @@ config GPIO_WM8994 Say yes here to access the GPIO signals of WM8994 audio hub CODECs from Wolfson Microelectronics. -comment "PCI GPIO expanders:" +endmenu + +menu "PCI GPIO expanders" + depends on PCI config GPIO_AMD8111 tristate "AMD 8111 GPIO driver" @@ -933,8 +942,10 @@ config GPIO_SODAVILLE help Say Y here to support Intel Sodaville GPIO. +endmenu -comment "SPI GPIO expanders:" +menu "SPI GPIO expanders" + depends on SPI_MASTER config GPIO_74X164 tristate "74x164 serial-in/parallel-out 8-bits shift register" @@ -967,7 +978,10 @@ config GPIO_MC33880 SPI driver for Freescale MC33880 high-side/low-side switch. This provides GPIO interface supporting inputs and outputs. -comment "USB GPIO expanders:" +endmenu + +menu "USB GPIO expanders" + depends on USB config GPIO_VIPERBOARD tristate "Viperboard GPIO a & b support" @@ -980,4 +994,6 @@ config GPIO_VIPERBOARD River Tech's viperboard.h for detailed meaning of the module parameters. +endmenu + endif