mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Vincent Legoll <vincent.legoll@gmail.com>
To: linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org,
	fancer.lancer@gmail.com
Cc: Vincent Legoll <vincent.legoll@gmail.com>
Subject: [PATCH] Make EEPROM a menuconfig to ease disabling it all
Date: Sun,  2 Jul 2017 17:31:05 +0200	[thread overview]
Message-ID: <1499009465-5899-1-git-send-email-vincent.legoll@gmail.com> (raw)

No need to get into the submenu to disable all EEPROM-related config entries

Signed-off-by: Vincent Legoll <vincent.legoll@gmail.com>
---
 drivers/misc/eeprom/Kconfig | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/drivers/misc/eeprom/Kconfig b/drivers/misc/eeprom/Kconfig
index de58762..0ea5290 100644
--- a/drivers/misc/eeprom/Kconfig
+++ b/drivers/misc/eeprom/Kconfig
@@ -1,8 +1,9 @@
-menu "EEPROM support"
+menuconfig EEPROM
+	tristate  "EEPROM support"
 
 config EEPROM_AT24
 	tristate "I2C EEPROMs / RAMs / ROMs from most vendors"
-	depends on I2C && SYSFS
+	depends on EEPROM && I2C && SYSFS
 	select NVMEM
 	help
 	  Enable this driver to get read/write support to most I2C EEPROMs
@@ -30,7 +31,7 @@ config EEPROM_AT24
 
 config EEPROM_AT25
 	tristate "SPI EEPROMs from most vendors"
-	depends on SPI && SYSFS
+	depends on EEPROM && SPI && SYSFS
 	select NVMEM
 	help
 	  Enable this driver to get read/write support to most SPI EEPROMs,
@@ -42,7 +43,7 @@ config EEPROM_AT25
 
 config EEPROM_LEGACY
 	tristate "Old I2C EEPROM reader"
-	depends on I2C && SYSFS
+	depends on EEPROM && I2C && SYSFS
 	help
 	  If you say yes here you get read-only access to the EEPROM data
 	  available on modern memory DIMMs and Sony Vaio laptops via I2C. Such
@@ -53,7 +54,7 @@ config EEPROM_LEGACY
 
 config EEPROM_MAX6875
 	tristate "Maxim MAX6874/5 power supply supervisor"
-	depends on I2C
+	depends on EEPROM && I2C
 	help
 	  If you say yes here you get read-only support for the user EEPROM of
 	  the Maxim MAX6874/5 EEPROM-programmable, quad power-supply
@@ -67,6 +68,7 @@ config EEPROM_MAX6875
 
 config EEPROM_93CX6
 	tristate "EEPROM 93CX6 support"
+	depends on EEPROM
 	help
 	  This is a driver for the EEPROM chipsets 93c46 and 93c66.
 	  The driver supports both read as well as write commands.
@@ -75,7 +77,7 @@ config EEPROM_93CX6
 
 config EEPROM_93XX46
 	tristate "Microwire EEPROM 93XX46 support"
-	depends on SPI && SYSFS
+	depends on EEPROM && SPI && SYSFS
 	select REGMAP
 	select NVMEM
 	help
@@ -90,7 +92,7 @@ config EEPROM_93XX46
 
 config EEPROM_DIGSY_MTC_CFG
 	bool "DigsyMTC display configuration EEPROMs device"
-	depends on GPIO_MPC5200 && SPI_GPIO
+	depends on EEPROM && GPIO_MPC5200 && SPI_GPIO
 	help
 	  This option enables access to display configuration EEPROMs
 	  on digsy_mtc board. You have to additionally select Microwire
@@ -102,12 +104,10 @@ config EEPROM_DIGSY_MTC_CFG
 
 config EEPROM_IDT_89HPESX
 	tristate "IDT 89HPESx PCIe-swtiches EEPROM / CSR support"
-	depends on I2C && SYSFS
+	depends on EEPROM && I2C && SYSFS
 	help
 	  Enable this driver to get read/write access to EEPROM / CSRs
 	  over IDT PCIe-swtich i2c-slave interface.
 
 	  This driver can also be built as a module. If so, the module
 	  will be called idt_89hpesx.
-
-endmenu
-- 
2.7.4

             reply	other threads:[~2017-07-02 15:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-02 15:31 Vincent Legoll [this message]
2017-07-04 12:54 ` kbuild test robot
2017-07-04 13:00 ` Vincent Legoll

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1499009465-5899-1-git-send-email-vincent.legoll@gmail.com \
    --to=vincent.legoll@gmail.com \
    --cc=fancer.lancer@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®