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: 459248 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 565FB1401B1 for ; Wed, 8 Apr 2015 23:22:07 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753931AbbDHNV5 (ORCPT ); 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-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=rmsXZzqd+6zJTyC5JtHfE4bGVSUwuvsy17b9/Zn5ecg=; b=MRKgzoBH9qVau/k9tX74q6rhrzt68WsLq1Sce2fc35CXT2LAF5rsGY2mvA8V2Ucxzj 4FOgXXj+NrKtq5SQbqjvIpsRnuUjJeVZX8zrzgxKM09SUTNXqod5zK9pZqwieLndu+a7 h/ElIIARVRAl7DMDctVf7B4lkaGAoWp5T/QIm0KWrPhwNt1eCYivA5ZyuGkYC2gtcpap tkRAxn+j04RuKH8l1FGNSduOC0odCXW+Z586/Uj9Eq97yJmJVHM6yaZOZtVwo/YuTRfc QF/B66bvKsHDUZzlcHcRG7Rle2pspJH9ll4IVUVDr3qLjJ1ybwACiKjYfOslkgumfsj/ y8uw== X-Gm-Message-State: ALoCoQmHXem9r+itZhsHJSnQQm8KNCibte7836x+tli7xbp2ZrF21++h2bt+PrNsXUiNfgElFttk 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: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org 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