From patchwork Wed Oct 11 10:07:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 115533 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp566800qgn; Wed, 11 Oct 2017 03:07:49 -0700 (PDT) X-Received: by 10.101.78.12 with SMTP id r12mr14964177pgt.289.1507716469531; Wed, 11 Oct 2017 03:07:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507716469; cv=none; d=google.com; s=arc-20160816; b=Dz1o4pK3fX0dyomTt+8qrCK538SlPcPFDZ54Y7qmdmOfpVBOllW2nSc36YCQ4hQpVF cCgVpsGva3Ls7C5KuvlJjMDpX7dgrA47DNicJewhqymrsfZogN4/Y5UP5D4EWekFWrph vEZ4/2XeS9hqdrrW+CWmpwVzzICkIQtLnj9ORvGKw6f6TK73+t1U83T24hW7B3pMtm5g gdE46sYK5C3rMheNgiegQdtxLrqHyfuvRySsNtL2Vv6dfAEAu1GdcDcnfk96un73Bz1r Cz4eLE2xwms4+NyMmYXYPcRtbzGgvVrsRsLY5eK+B2EzoX6LToHX4dpNwnZbIdPoJPwK Z56A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=cR7Ryx0YbOJsm3auKglPd1c/AUKQ5D9VFNMueqdgotM=; b=r2EjHW4jbr1QWQfa8zNXvV4tTHQv0Yq6mda+95OKOfVMpzlM33tgSSXAC5WAJqTkpu cHe+Ff6/FNDUXXfNMBB7rXdCWGeUYBMXxHaoSfuxzcYA5Q0kxXyXJZm6HcPupwStQjGO o55RBOSJ+xdKfcq8dFdhLficmX8Nxz4Yrf6aCxaL3wt4DgE2BuTXsQQ/Ui5NqGxZl/6R 7MIC2504kEbL6oL5Ns81mAE+z3yO2Tdk5eq/fEjrlZFwDsFvnczDBHujOZjJ2MxnJBMN 10b6RL6oXq52XaEccjNW7pnIb5DKKr/EOjmzp0qPemSqZWif0R+sxRtmHtU4PO2PSFnm wYSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=JMQ6T3xE; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e62si10606526pfa.196.2017.10.11.03.07.49; Wed, 11 Oct 2017 03:07:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=JMQ6T3xE; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751415AbdJKKHt (ORCPT + 5 others); Wed, 11 Oct 2017 06:07:49 -0400 Received: from mail-lf0-f53.google.com ([209.85.215.53]:44804 "EHLO mail-lf0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751080AbdJKKHr (ORCPT ); Wed, 11 Oct 2017 06:07:47 -0400 Received: by mail-lf0-f53.google.com with SMTP id 75so1481032lfx.1 for ; Wed, 11 Oct 2017 03:07:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=QFa8y+BcaMRYXUiecKpBiS1et1X2cf2IldB5FLWpSIg=; b=JMQ6T3xERDhWWxFDU0eCFEqHUwSJ+7HuNBMbOMHWSESpPKqZWV8zWeETvWPmaNA6KX 9KnX+3yifUFjuwrcQE3UmhPn/10HJlNlPkQnawk7uplEPayrYoE7SNWtwn5oKE6BEsYf mYniFvAhRXsiEuGWtJdNEf1cgJ0C53vDu3lUQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=QFa8y+BcaMRYXUiecKpBiS1et1X2cf2IldB5FLWpSIg=; b=hLiAy4NxucwDzgEEqQ0ud/AuhgC1T14Y3v6vyoPTgSKcy8cS8gSFJZ2ymVgAy8LIuP SPkrX3ZWPMxQtPcYdW+xnUfjbAQcuid3/jdYJ9lNz7cR9gZg9kjig6oousmgoFSvJ6wP LzW1GV/JzlolUcWLagt3nGSxi4eI7O7p7PXK77K7TAuyY9YIXwfxx3oaxAJcYLwUwNUG 3B3LshGHktMczNJyZpEzfo7hf4AC4MTS3SP4UI1GE4QVYYAaQWQoI3/hIsGn5+zqQGFv xEmT8x0XLuVeuqZBKgRocBZmO75YSrpwKXHKB5Ki53Uk5m+4bBsf5dOmNLPy1RD/6zOP 6VDA== X-Gm-Message-State: AMCzsaUcMlRbUbtUuHVUR8t35M64S98jUS9OxOclOxx7U0JTjJMuujks 3sjyTPYXNH4M2mfTU4fuWh/XHjyLEGs= X-Google-Smtp-Source: AOwi7QBJdetsHC9hb3iphN1INUn+urWaWbKHMVy7PevBXX+l6cWWZxMskn2u2nGQO+4aDXbxjb3w1A== X-Received: by 10.46.117.30 with SMTP id q30mr4910143ljc.85.1507716466212; Wed, 11 Oct 2017 03:07:46 -0700 (PDT) Received: from genomnajs.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id x28sm2266994ljd.88.2017.10.11.03.07.45 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 11 Oct 2017 03:07:45 -0700 (PDT) From: Linus Walleij To: linux-gpio@vger.kernel.org Cc: Linus Walleij , Phil Reid , Sebastian Reichel , Mika Westerberg , Andy Shevchenko , Peter Rosin , Andrey Smirnov Subject: [PATCH] pinctrl: Do not depend in GPIOLIB, select it Date: Wed, 11 Oct 2017 12:07:42 +0200 Message-Id: <20171011100742.9912-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.13.5 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Instead of depends on GPIOLIB and having to run around in Kconfig menus looking for why your device is not available, simply select it from the pin control drivers that need it. The Kconfig for GPIOLIB is improved, selectable and this should "just work". Cc: Phil Reid Cc: Sebastian Reichel Cc: Mika Westerberg Cc: Andy Shevchenko Cc: Peter Rosin Cc: Andrey Smirnov Signed-off-by: Linus Walleij --- drivers/pinctrl/Kconfig | 6 ++++-- drivers/pinctrl/intel/Kconfig | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) -- 2.13.5 -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Reviewed-by: Andy Shevchenko Acked-by: Mika Westerberg diff --git a/drivers/pinctrl/Kconfig b/drivers/pinctrl/Kconfig index 8da29e9e1bb2..034822c7144d 100644 --- a/drivers/pinctrl/Kconfig +++ b/drivers/pinctrl/Kconfig @@ -97,7 +97,7 @@ config PINCTRL_AT91PIO4 config PINCTRL_AMD tristate "AMD GPIO pin control" - depends on GPIOLIB + select GPIOLIB select GPIOLIB_IRQCHIP select PINCONF select GENERIC_PINCONF @@ -156,6 +156,7 @@ config PINCTRL_MCP23S08 tristate "Microchip MCP23xxx I/O expander" depends on SPI_MASTER || I2C depends on I2C || I2C=n + select GPIOLIB select GPIOLIB_IRQCHIP select REGMAP_I2C if I2C select REGMAP_SPI if SPI_MASTER @@ -224,10 +225,11 @@ config PINCTRL_SIRF config PINCTRL_SX150X bool "Semtech SX150x I2C GPIO expander pinctrl driver" - depends on GPIOLIB && I2C=y + depends on I2C=y select PINMUX select PINCONF select GENERIC_PINCONF + select GPIOLIB select GPIOLIB_IRQCHIP select REGMAP help diff --git a/drivers/pinctrl/intel/Kconfig b/drivers/pinctrl/intel/Kconfig index f30720a752f3..7fb1b9937c39 100644 --- a/drivers/pinctrl/intel/Kconfig +++ b/drivers/pinctrl/intel/Kconfig @@ -5,7 +5,8 @@ if (X86 || COMPILE_TEST) config PINCTRL_BAYTRAIL bool "Intel Baytrail GPIO pin control" - depends on GPIOLIB && ACPI + depends on ACPI + select GPIOLIB select GPIOLIB_IRQCHIP select PINMUX select PINCONF