LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH 00/36] Use menuconfig objects II - (overview)
@ 2007-04-30 11:03 Jan Engelhardt
  2007-04-30 11:20 ` [PATCH 01/36] Use menuconfig objects I.b - block Jan Engelhardt
                   ` (35 more replies)
  0 siblings, 36 replies; 70+ messages in thread
From: Jan Engelhardt @ 2007-04-30 11:03 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Linux Kernel Mailing List

Hi Andrew,


here is the second run of use-menuconfig-objects patches that make
more menus use, well, the "menuconfig" objects. The series, which
goes on top of mm-broken-out-20070428, includes:

  * 1 patch to fix up a remainder of the first run

  * 35 patches to change to menuconfigs


Jan
-- 

^ permalink raw reply	[flat|nested] 70+ messages in thread

* [PATCH 01/36] Use menuconfig objects I.b - block
  2007-04-30 11:03 [PATCH 00/36] Use menuconfig objects II - (overview) Jan Engelhardt
@ 2007-04-30 11:20 ` Jan Engelhardt
  2007-04-30 11:20 ` [PATCH 02/36] Use menuconfig objects II - auxdisplay Jan Engelhardt
                   ` (34 subsequent siblings)
  35 siblings, 0 replies; 70+ messages in thread
From: Jan Engelhardt @ 2007-04-30 11:20 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Linux Kernel Mailing List, Jens Axboe


block/Kconfig already has its own "menuconfig" so remove these
"menu, endmenu" that did not get cleaned up in the block patch
[ http://lkml.org/lkml/2007/4/10/251 ]

Signed-off-by: Jan Engelhardt <jengelh@gmx.de>

---
 init/Kconfig |    2 --
 1 file changed, 2 deletions(-)

--- linux-2.6.21-mm_20070428.orig/init/Kconfig
+++ linux-2.6.21-mm_20070428/init/Kconfig
@@ -741,6 +741,4 @@ config STOP_MACHINE
 	  Need stop_machine() primitive.
 endmenu
 
-menu "Block layer"
 source "block/Kconfig"
-endmenu

^ permalink raw reply	[flat|nested] 70+ messages in thread

* [PATCH 02/36] Use menuconfig objects II - auxdisplay
  2007-04-30 11:03 [PATCH 00/36] Use menuconfig objects II - (overview) Jan Engelhardt
  2007-04-30 11:20 ` [PATCH 01/36] Use menuconfig objects I.b - block Jan Engelhardt
@ 2007-04-30 11:20 ` Jan Engelhardt
  2007-04-30 11:21 ` [PATCH 03/36] Use menuconfig objects II - battery Jan Engelhardt
                   ` (33 subsequent siblings)
  35 siblings, 0 replies; 70+ messages in thread
From: Jan Engelhardt @ 2007-04-30 11:20 UTC (permalink / raw)
  To: Miguel Ojeda Sandonis; +Cc: Andrew Morton, Linux Kernel Mailing List


Make a "menuconfig" out of the Kconfig objects "menu, ..., endmenu",
so that the user can disable all the options in that menu at once
instead of having to disable each option separately.

Signed-off-by: Jan Engelhardt <jengelh@gmx.de>

---
 drivers/auxdisplay/Kconfig |    9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

--- linux-2.6.21-mm_20070428.orig/drivers/auxdisplay/Kconfig
+++ linux-2.6.21-mm_20070428/drivers/auxdisplay/Kconfig
@@ -5,7 +5,11 @@
 # Auxiliary display drivers configuration.
 #
 
-menu "Auxiliary Display support"
+menuconfig AUXDISPLAY
+	bool "Auxiliary Display support"
+	default y
+
+if AUXDISPLAY
 
 config KS0108
 	tristate "KS0108 LCD Controller"
@@ -106,4 +110,5 @@ config CFAG12864B_RATE
 
 	  If you compile this as a module, you can still override this
 	  value using the module parameters.
-endmenu
+
+endif # AUXDISPLAY

^ permalink raw reply	[flat|nested] 70+ messages in thread

* [PATCH 03/36] Use menuconfig objects II - battery
  2007-04-30 11:03 [PATCH 00/36] Use menuconfig objects II - (overview) Jan Engelhardt
  2007-04-30 11:20 ` [PATCH 01/36] Use menuconfig objects I.b - block Jan Engelhardt
  2007-04-30 11:20 ` [PATCH 02/36] Use menuconfig objects II - auxdisplay Jan Engelhardt
@ 2007-04-30 11:21 ` Jan Engelhardt
  2007-04-30 11:22 ` [PATCH 04/36] Use menuconfig objects II - block devices Jan Engelhardt
                   ` (32 subsequent siblings)
  35 siblings, 0 replies; 70+ messages in thread
From: Jan Engelhardt @ 2007-04-30 11:21 UTC (permalink / raw)
  To: Vladimir P. Lebedev; +Cc: Andrew Morton, Linux Kernel Mailing List, linux-acpi


Change Kconfig objects from "menu, config" into "menuconfig" so
that the user can disable the whole feature without having to
enter the menu first.

Signed-off-by: Jan Engelhardt <jengelh@gmx.de>

---
 drivers/battery/Kconfig |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

--- linux-2.6.21-mm_20070428.orig/drivers/battery/Kconfig
+++ linux-2.6.21-mm_20070428/drivers/battery/Kconfig
@@ -1,7 +1,5 @@
 
-menu "Battery devices"
-
-config BATTERY
+menuconfig BATTERY
 	tristate "Battery class support"
 	select EXTERNAL_POWER
 	help
@@ -9,16 +7,18 @@ config BATTERY
 	  monitoring by userspace via sysfs (if available) and/or APM
 	  kernel interface (if selected below).
 
+if BATTERY
+
 config APM_POWER
 	tristate "APM emulation for class batteries"
-	depends on BATTERY && APM_EMULATION
+	depends on APM_EMULATION
 	help
 	  Say Y here to enable support APM status emulation using
 	  battery class devices.
 
 config BATTERY_DS2760
 	tristate "DS2760 battery driver (HP iPAQ & others)"
-	depends on BATTERY && W1
+	depends on W1
 	select W1_SLAVE_DS2760
 	help
 	  Say Y here to enable support for batteries with ds2760 chip.
@@ -30,4 +30,4 @@ config BATTERY_PMU
 	  Say Y here to expose battery information on Apple machines
 	  through the generic battery class.
 
-endmenu
+endif # BATTERY

^ permalink raw reply	[flat|nested] 70+ messages in thread

* [PATCH 04/36] Use menuconfig objects II - block devices
  2007-04-30 11:03 [PATCH 00/36] Use menuconfig objects II - (overview) Jan Engelhardt
                   ` (2 preceding siblings ...)
  2007-04-30 11:21 ` [PATCH 03/36] Use menuconfig objects II - battery Jan Engelhardt
@ 2007-04-30 11:22 ` Jan Engelhardt
  2007-04-30 11:24 ` [PATCH 05/36] Use menuconfig objects II - EDAC Jan Engelhardt
                   ` (31 subsequent siblings)
  35 siblings, 0 replies; 70+ messages in thread
From: Jan Engelhardt @ 2007-04-30 11:22 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Linux Kernel Mailing List


Make a "menuconfig" out of the Kconfig objects "menu, ..., endmenu",
so that the user can disable all the options in that menu at once
instead of having to disable each option separately.

Signed-off-by: Jan Engelhardt <jengelh@gmx.de>

---
 drivers/block/Kconfig |   11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

--- linux-2.6.21-mm_20070428.orig/drivers/block/Kconfig
+++ linux-2.6.21-mm_20070428/drivers/block/Kconfig
@@ -2,9 +2,12 @@
 # Block device driver configuration
 #
 
-if BLOCK
+menuconfig BLK_DEV
+	bool "Block devices"
+	depends on BLOCK
+	default y
 
-menu "Block devices"
+if BLK_DEV
 
 config BLK_DEV_FD
 	tristate "Normal floppy disk support"
@@ -453,6 +456,4 @@ config ATA_OVER_ETH
 	This driver provides Support for ATA over Ethernet block
 	devices like the Coraid EtherDrive (R) Storage Blade.
 
-endmenu
-
-endif
+endif # BLK_DEV

^ permalink raw reply	[flat|nested] 70+ messages in thread

* [PATCH 05/36] Use menuconfig objects II - EDAC
  2007-04-30 11:03 [PATCH 00/36] Use menuconfig objects II - (overview) Jan Engelhardt
                   ` (3 preceding siblings ...)
  2007-04-30 11:22 ` [PATCH 04/36] Use menuconfig objects II - block devices Jan Engelhardt
@ 2007-04-30 11:24 ` Jan Engelhardt
  2007-04-30 11:26 ` [PATCH 06/36] Use menuconfig objects II - fusion Jan Engelhardt
                   ` (30 subsequent siblings)
  35 siblings, 0 replies; 70+ messages in thread
From: Jan Engelhardt @ 2007-04-30 11:24 UTC (permalink / raw)
  To: Doug Thompson; +Cc: Linux Kernel Mailing List, Andrew Morton, bluesmoke-devel


Change Kconfig objects from "menu, config" into "menuconfig" so
that the user can disable the whole feature without having to
enter the menu first.

Signed-off-by: Jan Engelhardt <jengelh@gmx.de>

---
 drivers/edac/Kconfig |   14 ++++----------
 1 file changed, 4 insertions(+), 10 deletions(-)

--- linux-2.6.21-mm_20070428.orig/drivers/edac/Kconfig
+++ linux-2.6.21-mm_20070428/drivers/edac/Kconfig
@@ -6,10 +6,8 @@
 # $Id: Kconfig,v 1.4.2.7 2005/07/08 22:05:38 dsp_llnl Exp $
 #
 
-menu 'EDAC - error detection and reporting (RAS) (EXPERIMENTAL)'
-
-config EDAC
-	tristate "EDAC core system error reporting (EXPERIMENTAL)"
+menuconfig EDAC
+	tristate "EDAC - error detection and reporting (EXPERIMENTAL)"
 	depends on X86 && EXPERIMENTAL
 	help
 	  EDAC is designed to report errors in the core system.
@@ -29,13 +27,12 @@ config EDAC
 	  There is also a mailing list for the EDAC project, which can
 	  be found via the sourceforge page.
 
+if EDAC
 
 comment "Reporting subsystems"
-	depends on EDAC
 
 config EDAC_DEBUG
 	bool "Debugging"
-	depends on EDAC
 	help
 	  This turns on debugging information for the entire EDAC
 	  sub-system. You can insert module with "debug_level=x", current
@@ -44,7 +41,6 @@ config EDAC_DEBUG
 
 config EDAC_MM_EDAC
 	tristate "Main Memory EDAC (Error Detection And Correction) reporting"
-	depends on EDAC
 	default y
 	help
 	  Some systems are able to detect and correct errors in main
@@ -99,15 +95,13 @@ config EDAC_R82600
 
 choice
 	prompt "Error detecting method"
-	depends on EDAC
 	default EDAC_POLL
 
 config EDAC_POLL
 	bool "Poll for errors"
-	depends on EDAC
 	help
 	  Poll the chipset periodically to detect errors.
 
 endchoice
 
-endmenu
+endif # EDAC

^ permalink raw reply	[flat|nested] 70+ messages in thread

* [PATCH 06/36] Use menuconfig objects II - fusion
  2007-04-30 11:03 [PATCH 00/36] Use menuconfig objects II - (overview) Jan Engelhardt
                   ` (4 preceding siblings ...)
  2007-04-30 11:24 ` [PATCH 05/36] Use menuconfig objects II - EDAC Jan Engelhardt
@ 2007-04-30 11:26 ` Jan Engelhardt
  2007-04-30 11:27 ` [PATCH 07/36] Use menuconfig objects II - HID Jan Engelhardt
                   ` (29 subsequent siblings)
  35 siblings, 0 replies; 70+ messages in thread
From: Jan Engelhardt @ 2007-04-30 11:26 UTC (permalink / raw)
  To: Eric Moore
  Cc: Linux Kernel Mailing List, Andrew Morton, mpt_linux_developer,
	linux-scsi


Change Kconfig objects from "menu, config" into "menuconfig" so
that the user can disable the whole feature without having to
enter the menu first.

Signed-off-by: Jan Engelhardt <jengelh@gmx.de>

---
 drivers/message/fusion/Kconfig |   14 +++++---------
 1 file changed, 5 insertions(+), 9 deletions(-)

--- linux-2.6.21-mm_20070428.orig/drivers/message/fusion/Kconfig
+++ linux-2.6.21-mm_20070428/drivers/message/fusion/Kconfig
@@ -1,14 +1,13 @@
 
-menu "Fusion MPT device support"
-
-config FUSION
-	bool
+menuconfig FUSION
+	bool "Fusion MPT device support"
 	default n
 
+if FUSION
+
 config FUSION_SPI
 	tristate "Fusion MPT ScsiHost drivers for SPI"
 	depends on PCI && SCSI
-	select FUSION
 	select SCSI_SPI_ATTRS
 	---help---
 	  SCSI HOST support for a parallel SCSI host adapters.
@@ -23,7 +22,6 @@ config FUSION_SPI
 config FUSION_FC
 	tristate "Fusion MPT ScsiHost drivers for FC"
 	depends on PCI && SCSI
-	select FUSION
 	select SCSI_FC_ATTRS
 	---help---
 	  SCSI HOST support for a Fiber Channel host adapters.
@@ -40,7 +38,6 @@ config FUSION_FC
 config FUSION_SAS
 	tristate "Fusion MPT ScsiHost drivers for SAS"
 	depends on PCI && SCSI
- 	select FUSION
 	select SCSI_SAS_ATTRS
 	---help---
 	  SCSI HOST support for a SAS host adapters.
@@ -54,7 +51,6 @@ config FUSION_SAS
 
 config FUSION_MAX_SGE
 	int "Maximum number of scatter gather entries (16 - 128)"
-	depends on FUSION
 	default "128"
 	range 16 128
 	help
@@ -100,4 +96,4 @@ config FUSION_LAN
 
 	  If unsure whether you really want or need this, say N.
 
-endmenu
+endif # FUSION

^ permalink raw reply	[flat|nested] 70+ messages in thread

* [PATCH 07/36] Use menuconfig objects II - HID
  2007-04-30 11:03 [PATCH 00/36] Use menuconfig objects II - (overview) Jan Engelhardt
                   ` (5 preceding siblings ...)
  2007-04-30 11:26 ` [PATCH 06/36] Use menuconfig objects II - fusion Jan Engelhardt
@ 2007-04-30 11:27 ` Jan Engelhardt
  2007-04-30 11:28 ` [PATCH 08/36] Use menuconfig objects II - hwmon Jan Engelhardt
                   ` (28 subsequent siblings)
  35 siblings, 0 replies; 70+ messages in thread
From: Jan Engelhardt @ 2007-04-30 11:27 UTC (permalink / raw)
  To: Jiri Kosina; +Cc: Linux Kernel Mailing List, Andrew Morton, linux-input


Make a "menuconfig" out of the Kconfig objects "menu, ..., endmenu",
so that the user can disable all the options in that menu at once
instead of having to disable each option separately.

Signed-off-by: Jan Engelhardt <jengelh@gmx.de>

---
 drivers/hid/Kconfig |    9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

--- linux-2.6.21-mm_20070428.orig/drivers/hid/Kconfig
+++ linux-2.6.21-mm_20070428/drivers/hid/Kconfig
@@ -1,8 +1,12 @@
 #
 # HID driver configuration
 #
-menu "HID Devices"
+menuconfig HID_SUPPORT
+	bool "HID Devices"
 	depends on INPUT
+	default y
+
+if HID_SUPPORT
 
 config HID
 	tristate "Generic HID support"
@@ -58,5 +62,4 @@ config HIDRAW
 
 source "drivers/hid/usbhid/Kconfig"
 
-endmenu
-
+endif # HID_SUPPORT

^ permalink raw reply	[flat|nested] 70+ messages in thread

* [PATCH 08/36] Use menuconfig objects II - hwmon
  2007-04-30 11:03 [PATCH 00/36] Use menuconfig objects II - (overview) Jan Engelhardt
                   ` (6 preceding siblings ...)
  2007-04-30 11:27 ` [PATCH 07/36] Use menuconfig objects II - HID Jan Engelhardt
@ 2007-04-30 11:28 ` Jan Engelhardt
  2007-05-03 16:58   ` Jean Delvare
  2007-04-30 11:29 ` [PATCH 09/36] Use menuconfig objects II - IEEE1394 Jan Engelhardt
                   ` (27 subsequent siblings)
  35 siblings, 1 reply; 70+ messages in thread
From: Jan Engelhardt @ 2007-04-30 11:28 UTC (permalink / raw)
  To: Jean Delvare; +Cc: Linux Kernel Mailing List, Andrew Morton, lm-sensors


Change Kconfig objects from "menu, config" into "menuconfig" so
that the user can disable the whole feature without having to
enter the menu first.

Signed-off-by: Jan Engelhardt <jengelh@gmx.de>

---
 drivers/hwmon/Kconfig |  109 ++++++++++++++++++++++++--------------------------
 1 file changed, 53 insertions(+), 56 deletions(-)

--- linux-2.6.21-mm_20070428.orig/drivers/hwmon/Kconfig
+++ linux-2.6.21-mm_20070428/drivers/hwmon/Kconfig
@@ -2,9 +2,7 @@
 # Hardware monitoring chip drivers configuration
 #
 
-menu "Hardware Monitoring support"
-
-config HWMON
+menuconfig HWMON
 	tristate "Hardware Monitoring support"
 	default y
 	help
@@ -23,13 +21,15 @@ config HWMON
 	  This support can also be built as a module.  If so, the module
 	  will be called hwmon.
 
+if HWMON
+
 config HWMON_VID
 	tristate
 	default n
 
 config SENSORS_ABITUGURU
 	tristate "Abit uGuru"
-	depends on HWMON && EXPERIMENTAL
+	depends on EXPERIMENTAL
 	help
 	  If you say yes here you get support for the Abit uGuru chips
 	  sensor part. The voltage and frequency control parts of the Abit
@@ -41,7 +41,7 @@ config SENSORS_ABITUGURU
 
 config SENSORS_AD7418
 	tristate "Analog Devices AD7416, AD7417 and AD7418"
-	depends on HWMON && I2C && EXPERIMENTAL
+	depends on I2C && EXPERIMENTAL
 	help
 	  If you say yes here you get support for the Analog Devices
 	  AD7416, AD7417 and AD7418 temperature monitoring chips.
@@ -51,7 +51,7 @@ config SENSORS_AD7418
 
 config SENSORS_ADM1021
 	tristate "Analog Devices ADM1021 and compatibles"
-	depends on HWMON && I2C
+	depends on I2C
 	help
 	  If you say yes here you get support for Analog Devices ADM1021
 	  and ADM1023 sensor chips and clones: Maxim MAX1617 and MAX1617A,
@@ -63,7 +63,7 @@ config SENSORS_ADM1021
 
 config SENSORS_ADM1025
 	tristate "Analog Devices ADM1025 and compatibles"
-	depends on HWMON && I2C
+	depends on I2C
 	select HWMON_VID
 	help
 	  If you say yes here you get support for Analog Devices ADM1025
@@ -74,7 +74,7 @@ config SENSORS_ADM1025
 
 config SENSORS_ADM1026
 	tristate "Analog Devices ADM1026 and compatibles"
-	depends on HWMON && I2C && EXPERIMENTAL
+	depends on I2C && EXPERIMENTAL
 	select HWMON_VID
 	help
 	  If you say yes here you get support for Analog Devices ADM1026
@@ -85,7 +85,7 @@ config SENSORS_ADM1026
 
 config SENSORS_ADM1029
 	tristate "Analog Devices ADM1029"
-	depends on HWMON && I2C && EXPERIMENTAL
+	depends on I2C && EXPERIMENTAL
 	help
 	  If you say yes here you get support for Analog Devices ADM1029
 	  sensor chip.
@@ -96,7 +96,7 @@ config SENSORS_ADM1029
 
 config SENSORS_ADM1031
 	tristate "Analog Devices ADM1031 and compatibles"
-	depends on HWMON && I2C && EXPERIMENTAL
+	depends on I2C && EXPERIMENTAL
 	help
 	  If you say yes here you get support for Analog Devices ADM1031
 	  and ADM1030 sensor chips.
@@ -106,7 +106,7 @@ config SENSORS_ADM1031
 
 config SENSORS_ADM9240
 	tristate "Analog Devices ADM9240 and compatibles"
-	depends on HWMON && I2C && EXPERIMENTAL
+	depends on I2C && EXPERIMENTAL
 	select HWMON_VID
 	help
 	  If you say yes here you get support for Analog Devices ADM9240,
@@ -117,7 +117,7 @@ config SENSORS_ADM9240
 
 config SENSORS_K8TEMP
 	tristate "AMD Athlon64/FX or Opteron temperature sensor"
-	depends on HWMON && X86 && PCI && EXPERIMENTAL
+	depends on X86 && PCI && EXPERIMENTAL
 	help
 	  If you say yes here you get support for the temperature
 	  sensor(s) inside your CPU. Supported is whole AMD K8
@@ -129,7 +129,7 @@ config SENSORS_K8TEMP
 
 config SENSORS_AMS
 	tristate "Apple Motion Sensor driver"
-	depends on HWMON && PPC_PMAC && !PPC64 && INPUT && ((ADB_PMU && I2C = y) || (ADB_PMU && !I2C) || I2C) && EXPERIMENTAL
+	depends on PPC_PMAC && !PPC64 && INPUT && ((ADB_PMU && I2C = y) || (ADB_PMU && !I2C) || I2C) && EXPERIMENTAL
 	help
 	  Support for the motion sensor included in PowerBooks. Includes
 	  implementations for PMU and I2C.
@@ -154,7 +154,7 @@ config SENSORS_AMS_I2C
 
 config SENSORS_ASB100
 	tristate "Asus ASB100 Bach"
-	depends on HWMON && I2C && EXPERIMENTAL
+	depends on I2C && EXPERIMENTAL
 	select HWMON_VID
 	help
 	  If you say yes here you get support for the ASB100 Bach sensor
@@ -165,7 +165,7 @@ config SENSORS_ASB100
 
 config SENSORS_ATXP1
 	tristate "Attansic ATXP1 VID controller"
-	depends on HWMON && I2C && EXPERIMENTAL
+	depends on I2C && EXPERIMENTAL
 	select HWMON_VID
 	help
 	  If you say yes here you get support for the Attansic ATXP1 VID
@@ -179,7 +179,7 @@ config SENSORS_ATXP1
 
 config SENSORS_DS1621
 	tristate "Dallas Semiconductor DS1621 and DS1625"
-	depends on HWMON && I2C
+	depends on I2C
 	help
 	  If you say yes here you get support for Dallas Semiconductor
 	  DS1621 and DS1625 sensor chips.
@@ -189,7 +189,7 @@ config SENSORS_DS1621
 
 config SENSORS_F71805F
 	tristate "Fintek F71805F/FG and F71872F/FG"
-	depends on HWMON && EXPERIMENTAL
+	depends on EXPERIMENTAL
 	help
 	  If you say yes here you get support for hardware monitoring
 	  features of the Fintek F71805F/FG and F71872F/FG Super-I/O
@@ -200,7 +200,7 @@ config SENSORS_F71805F
 
 config SENSORS_FSCHER
 	tristate "FSC Hermes"
-	depends on HWMON && I2C
+	depends on I2C
 	help
 	  If you say yes here you get support for Fujitsu Siemens
 	  Computers Hermes sensor chips.
@@ -210,7 +210,7 @@ config SENSORS_FSCHER
 
 config SENSORS_FSCPOS
 	tristate "FSC Poseidon"
-	depends on HWMON && I2C
+	depends on I2C
 	help
 	  If you say yes here you get support for Fujitsu Siemens
 	  Computers Poseidon sensor chips.
@@ -220,7 +220,7 @@ config SENSORS_FSCPOS
 
 config SENSORS_GL518SM
 	tristate "Genesys Logic GL518SM"
-	depends on HWMON && I2C
+	depends on I2C
 	help
 	  If you say yes here you get support for Genesys Logic GL518SM
 	  sensor chips.
@@ -230,7 +230,7 @@ config SENSORS_GL518SM
 
 config SENSORS_GL520SM
 	tristate "Genesys Logic GL520SM"
-	depends on HWMON && I2C
+	depends on I2C
 	select HWMON_VID
 	help
 	  If you say yes here you get support for Genesys Logic GL520SM
@@ -241,7 +241,7 @@ config SENSORS_GL520SM
 
 config SENSORS_CORETEMP
 	tristate "Intel Core (2) Duo/Solo temperature sensor"
-	depends on HWMON && X86 && EXPERIMENTAL
+	depends on X86 && EXPERIMENTAL
 	help
 	  If you say yes here you get support for the temperature
 	  sensor inside your CPU. Supported all are all known variants
@@ -249,7 +249,7 @@ config SENSORS_CORETEMP
 
 config SENSORS_IT87
 	tristate "ITE IT87xx and compatibles"
-	depends on HWMON && I2C
+	depends on I2C
 	select I2C_ISA
 	select HWMON_VID
 	help
@@ -261,7 +261,7 @@ config SENSORS_IT87
 
 config SENSORS_LM63
 	tristate "National Semiconductor LM63"
-	depends on HWMON && I2C
+	depends on I2C
 	help
 	  If you say yes here you get support for the National Semiconductor
 	  LM63 remote diode digital temperature sensor with integrated fan
@@ -273,7 +273,7 @@ config SENSORS_LM63
 
 config SENSORS_LM70
 	tristate "National Semiconductor LM70"
-	depends on HWMON && SPI_MASTER && EXPERIMENTAL
+	depends on SPI_MASTER && EXPERIMENTAL
 	help
 	  If you say yes here you get support for the National Semiconductor
 	  LM70 digital temperature sensor chip.
@@ -283,7 +283,7 @@ config SENSORS_LM70
 
 config SENSORS_LM75
 	tristate "National Semiconductor LM75 and compatibles"
-	depends on HWMON && I2C
+	depends on I2C
 	help
 	  If you say yes here you get support for National Semiconductor LM75
 	  sensor chips and clones: Dallas Semiconductor DS75 and DS1775 (in
@@ -298,7 +298,7 @@ config SENSORS_LM75
 
 config SENSORS_LM77
 	tristate "National Semiconductor LM77"
-	depends on HWMON && I2C
+	depends on I2C
 	help
 	  If you say yes here you get support for National Semiconductor LM77
 	  sensor chips.
@@ -308,7 +308,7 @@ config SENSORS_LM77
 
 config SENSORS_LM78
 	tristate "National Semiconductor LM78 and compatibles"
-	depends on HWMON && I2C
+	depends on I2C
 	select HWMON_VID
 	help
 	  If you say yes here you get support for National Semiconductor LM78,
@@ -319,7 +319,7 @@ config SENSORS_LM78
 
 config SENSORS_LM80
 	tristate "National Semiconductor LM80"
-	depends on HWMON && I2C && EXPERIMENTAL
+	depends on I2C && EXPERIMENTAL
 	help
 	  If you say yes here you get support for National Semiconductor
 	  LM80 sensor chips.
@@ -329,7 +329,7 @@ config SENSORS_LM80
 
 config SENSORS_LM83
 	tristate "National Semiconductor LM83 and compatibles"
-	depends on HWMON && I2C
+	depends on I2C
 	help
 	  If you say yes here you get support for National Semiconductor
 	  LM82 and LM83 sensor chips.
@@ -339,7 +339,7 @@ config SENSORS_LM83
 
 config SENSORS_LM85
 	tristate "National Semiconductor LM85 and compatibles"
-	depends on HWMON && I2C && EXPERIMENTAL
+	depends on I2C && EXPERIMENTAL
 	select HWMON_VID
 	help
 	  If you say yes here you get support for National Semiconductor LM85
@@ -350,7 +350,7 @@ config SENSORS_LM85
 
 config SENSORS_LM87
 	tristate "National Semiconductor LM87"
-	depends on HWMON && I2C
+	depends on I2C
 	select HWMON_VID
 	help
 	  If you say yes here you get support for National Semiconductor LM87
@@ -361,7 +361,7 @@ config SENSORS_LM87
 
 config SENSORS_LM90
 	tristate "National Semiconductor LM90 and compatibles"
-	depends on HWMON && I2C
+	depends on I2C
 	help
 	  If you say yes here you get support for National Semiconductor LM90,
 	  LM86, LM89 and LM99, Analog Devices ADM1032 and Maxim MAX6657 and
@@ -375,7 +375,7 @@ config SENSORS_LM90
 
 config SENSORS_LM92
 	tristate "National Semiconductor LM92 and compatibles"
-	depends on HWMON && I2C
+	depends on I2C
 	help
 	  If you say yes here you get support for National Semiconductor LM92
 	  and Maxim MAX6635 sensor chips.
@@ -385,7 +385,7 @@ config SENSORS_LM92
 
 config SENSORS_MAX1619
 	tristate "Maxim MAX1619 sensor chip"
-	depends on HWMON && I2C
+	depends on I2C
 	help
 	  If you say yes here you get support for MAX1619 sensor chip.
 
@@ -394,7 +394,7 @@ config SENSORS_MAX1619
 
 config SENSORS_MAX6650
 	tristate "Maxim MAX6650 sensor chip"
-	depends on HWMON && I2C && EXPERIMENTAL
+	depends on I2C && EXPERIMENTAL
 	help
 	  If you say yes here you get support for the MAX6650 / MAX6651
 	  sensor chips.
@@ -404,7 +404,7 @@ config SENSORS_MAX6650
 
 config SENSORS_PC87360
 	tristate "National Semiconductor PC87360 family"
-	depends on HWMON && I2C && EXPERIMENTAL
+	depends on I2C && EXPERIMENTAL
 	select I2C_ISA
 	select HWMON_VID
 	help
@@ -419,7 +419,7 @@ config SENSORS_PC87360
 
 config SENSORS_PC87427
 	tristate "National Semiconductor PC87427"
-	depends on HWMON && EXPERIMENTAL
+	depends on EXPERIMENTAL
 	help
 	  If you say yes here you get access to the hardware monitoring
 	  functions of the National Semiconductor PC87427 Super-I/O chip.
@@ -432,7 +432,7 @@ config SENSORS_PC87427
 
 config SENSORS_SIS5595
 	tristate "Silicon Integrated Systems Corp. SiS5595"
-	depends on HWMON && I2C && PCI && EXPERIMENTAL
+	depends on I2C && PCI && EXPERIMENTAL
 	select I2C_ISA
 	help
 	  If you say yes here you get support for the integrated sensors in
@@ -443,7 +443,6 @@ config SENSORS_SIS5595
 
 config SENSORS_SMSC47M1
 	tristate "SMSC LPC47M10x and compatibles"
-	depends on HWMON
 	help
 	  If you say yes here you get support for the integrated fan
 	  monitoring and control capabilities of the SMSC LPC47B27x,
@@ -460,7 +459,7 @@ config SENSORS_SMSC47M1
 
 config SENSORS_SMSC47M192
 	tristate "SMSC LPC47M192 and compatibles"
-	depends on HWMON && I2C && EXPERIMENTAL
+	depends on I2C && EXPERIMENTAL
 	select HWMON_VID
 	help
 	  If you say yes here you get support for the temperature and
@@ -477,7 +476,7 @@ config SENSORS_SMSC47M192
 
 config SENSORS_SMSC47B397
 	tristate "SMSC LPC47B397-NC"
-	depends on HWMON && EXPERIMENTAL
+	depends on EXPERIMENTAL
 	help
 	  If you say yes here you get support for the SMSC LPC47B397-NC
 	  sensor chip.
@@ -487,7 +486,7 @@ config SENSORS_SMSC47B397
 
 config SENSORS_VIA686A
 	tristate "VIA686A"
-	depends on HWMON && I2C && PCI
+	depends on I2C && PCI
 	select I2C_ISA
 	help
 	  If you say yes here you get support for the integrated sensors in
@@ -498,7 +497,7 @@ config SENSORS_VIA686A
 
 config SENSORS_VT1211
 	tristate "VIA VT1211"
-	depends on HWMON && EXPERIMENTAL
+	depends on EXPERIMENTAL
 	select HWMON_VID
 	help
 	  If you say yes here then you get support for hardware monitoring
@@ -509,7 +508,7 @@ config SENSORS_VT1211
 
 config SENSORS_VT8231
 	tristate "VIA VT8231"
-	depends on HWMON && I2C && PCI && EXPERIMENTAL
+	depends on I2C && PCI && EXPERIMENTAL
 	select HWMON_VID
 	select I2C_ISA
 	help
@@ -521,7 +520,7 @@ config SENSORS_VT8231
 
 config SENSORS_W83781D
 	tristate "Winbond W83781D, W83782D, W83783S, W83627HF, Asus AS99127F"
-	depends on HWMON && I2C
+	depends on I2C
 	select HWMON_VID
 	help
 	  If you say yes here you get support for the Winbond W8378x series
@@ -533,7 +532,7 @@ config SENSORS_W83781D
 
 config SENSORS_W83791D
 	tristate "Winbond W83791D"
-	depends on HWMON && I2C && EXPERIMENTAL
+	depends on I2C && EXPERIMENTAL
 	select HWMON_VID
 	help
 	  If you say yes here you get support for the Winbond W83791D chip.
@@ -543,7 +542,7 @@ config SENSORS_W83791D
 
 config SENSORS_W83792D
 	tristate "Winbond W83792D"
-	depends on HWMON && I2C && EXPERIMENTAL
+	depends on I2C && EXPERIMENTAL
 	help
 	  If you say yes here you get support for the Winbond W83792D chip.
 
@@ -552,7 +551,7 @@ config SENSORS_W83792D
 
 config SENSORS_W83793
 	tristate "Winbond W83793"
-	depends on HWMON && I2C && EXPERIMENTAL
+	depends on I2C && EXPERIMENTAL
 	select HWMON_VID
 	help
 	  If you say yes here you get support for the Winbond W83793
@@ -563,7 +562,7 @@ config SENSORS_W83793
 
 config SENSORS_W83L785TS
 	tristate "Winbond W83L785TS-S"
-	depends on HWMON && I2C && EXPERIMENTAL
+	depends on I2C && EXPERIMENTAL
 	help
 	  If you say yes here you get support for the Winbond W83L785TS-S
 	  sensor chip, which is used on the Asus A7N8X, among other
@@ -574,7 +573,6 @@ config SENSORS_W83L785TS
 
 config SENSORS_W83627HF
 	tristate "Winbond W83627HF, W83627THF, W83637HF, W83687THF, W83697HF"
-	depends on HWMON
 	select HWMON_VID
 	help
 	  If you say yes here you get support for the Winbond W836X7 series
@@ -586,7 +584,7 @@ config SENSORS_W83627HF
 
 config SENSORS_W83627EHF
 	tristate "Winbond W83627EHF"
-	depends on HWMON && I2C && EXPERIMENTAL
+	depends on I2C && EXPERIMENTAL
 	select I2C_ISA
 	help
 	  If you say yes here you get preliminary support for the hardware
@@ -602,7 +600,7 @@ config SENSORS_W83627EHF
 
 config SENSORS_HDAPS
 	tristate "IBM Hard Drive Active Protection System (hdaps)"
-	depends on HWMON && INPUT && X86
+	depends on INPUT && X86
 	default n
 	help
 	  This driver provides support for the IBM Hard Drive Active Protection
@@ -621,7 +619,7 @@ config SENSORS_HDAPS
 
 config SENSORS_APPLESMC
 	tristate "Apple SMC (Motion sensor, light sensor, keyboard backlight)"
-	depends on HWMON && INPUT && X86
+	depends on INPUT && X86
 	select NEW_LEDS
 	select LEDS_CLASS
 	default n
@@ -645,7 +643,6 @@ config SENSORS_APPLESMC
 
 config HWMON_DEBUG_CHIP
 	bool "Hardware Monitoring Chip debugging messages"
-	depends on HWMON
 	default n
 	help
 	  Say Y here if you want the I2C chip drivers to produce a bunch of
@@ -653,4 +650,4 @@ config HWMON_DEBUG_CHIP
 	  a problem with I2C support and want to see more of what is going
 	  on.
 
-endmenu
+endif # HWMON

^ permalink raw reply	[flat|nested] 70+ messages in thread

* [PATCH 09/36] Use menuconfig objects II - IEEE1394
  2007-04-30 11:03 [PATCH 00/36] Use menuconfig objects II - (overview) Jan Engelhardt
                   ` (7 preceding siblings ...)
  2007-04-30 11:28 ` [PATCH 08/36] Use menuconfig objects II - hwmon Jan Engelhardt
@ 2007-04-30 11:29 ` Jan Engelhardt
  2007-04-30 11:32 ` [PATCH 10/36] Use menuconfig objects II - Infiniband Jan Engelhardt
                   ` (26 subsequent siblings)
  35 siblings, 0 replies; 70+ messages in thread
From: Jan Engelhardt @ 2007-04-30 11:29 UTC (permalink / raw)
  To: Stefan Richter; +Cc: Linux Kernel Mailing List, Andrew Morton, linux1394-devel


Make a "menuconfig" out of the Kconfig objects "menu, ..., endmenu",
so that the user can disable all the options in that menu at once
instead of having to disable each option separately.

Follows Stefan's suggestion as per http://lkml.org/lkml/2007/4/28/108

Signed-off-by: Jan Engelhardt <jengelh@gmx.de>

---
 drivers/ieee1394/Kconfig |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

--- linux-2.6.21-mm_20070428.orig/drivers/ieee1394/Kconfig
+++ linux-2.6.21-mm_20070428/drivers/ieee1394/Kconfig
@@ -1,4 +1,8 @@
-menu "IEEE 1394 (FireWire) support"
+menuconfig IEEE1394_SUPPORT
+	bool "IEEE 1394 (FireWire) support"
+	default y
+
+if IEEE1394_SUPPORT
 
 source "drivers/firewire/Kconfig"
 
@@ -146,4 +150,4 @@ config IEEE1394_RAWIO
 	  To compile this driver as a module, say M here: the module will be
 	  called raw1394.
 
-endmenu
+endif # IEEE1394_SUPPORT

^ permalink raw reply	[flat|nested] 70+ messages in thread

* [PATCH 10/36] Use menuconfig objects II - Infiniband
  2007-04-30 11:03 [PATCH 00/36] Use menuconfig objects II - (overview) Jan Engelhardt
                   ` (8 preceding siblings ...)
  2007-04-30 11:29 ` [PATCH 09/36] Use menuconfig objects II - IEEE1394 Jan Engelhardt
@ 2007-04-30 11:32 ` Jan Engelhardt
  2007-04-30 11:33 ` [PATCH 11/36] Use menuconfig objects II - IPMI Jan Engelhardt
                   ` (25 subsequent siblings)
  35 siblings, 0 replies; 70+ messages in thread
From: Jan Engelhardt @ 2007-04-30 11:32 UTC (permalink / raw)
  To: Roland Dreier
  Cc: Linux Kernel Mailing List, Sean Hefty, Hal Rosenstock,
	openib-general, Andrew Morton


Change Kconfig objects from "menu, config" into "menuconfig" so
that the user can disable the whole feature without having to
enter the menu first.

Signed-off-by: Jan Engelhardt <jengelh@gmx.de>

---
 drivers/infiniband/Kconfig             |   14 ++++++--------
 drivers/infiniband/hw/amso1100/Kconfig |    2 +-
 drivers/infiniband/hw/cxgb3/Kconfig    |    2 +-
 drivers/infiniband/hw/ehca/Kconfig     |    2 +-
 drivers/infiniband/hw/ipath/Kconfig    |    2 +-
 drivers/infiniband/hw/mlx4/Kconfig     |    1 -
 drivers/infiniband/hw/mthca/Kconfig    |    2 +-
 drivers/infiniband/ulp/ipoib/Kconfig   |    2 +-
 drivers/infiniband/ulp/iser/Kconfig    |    2 +-
 drivers/infiniband/ulp/srp/Kconfig     |    2 +-
 10 files changed, 14 insertions(+), 17 deletions(-)

--- linux-2.6.21-mm_20070428.orig/drivers/infiniband/Kconfig
+++ linux-2.6.21-mm_20070428/drivers/infiniband/Kconfig
@@ -1,16 +1,15 @@
-menu "InfiniBand support"
-
-config INFINIBAND
-	depends on PCI || BROKEN
+menuconfig INFINIBAND
 	tristate "InfiniBand support"
+	depends on PCI || BROKEN
 	---help---
 	  Core support for InfiniBand (IB).  Make sure to also select
 	  any protocols you wish to use as well as drivers for your
 	  InfiniBand hardware.
 
+if INFINIBAND
+
 config INFINIBAND_USER_MAD
 	tristate "InfiniBand userspace MAD support"
-	depends on INFINIBAND
 	---help---
 	  Userspace InfiniBand Management Datagram (MAD) support.  This
 	  is the kernel side of the userspace MAD support, which allows
@@ -19,7 +18,6 @@ config INFINIBAND_USER_MAD
 
 config INFINIBAND_USER_ACCESS
 	tristate "InfiniBand userspace access (verbs and CM)"
-	depends on INFINIBAND
 	---help---
 	  Userspace InfiniBand access support.  This enables the
 	  kernel side of userspace verbs and the userspace
@@ -36,7 +34,7 @@ config INFINIBAND_USER_MEM
 
 config INFINIBAND_ADDR_TRANS
 	bool
-	depends on INFINIBAND && INET
+	depends on INET
 	default y
 
 source "drivers/infiniband/hw/mthca/Kconfig"
@@ -53,4 +51,4 @@ source "drivers/infiniband/ulp/srp/Kconf
 
 source "drivers/infiniband/ulp/iser/Kconfig"
 
-endmenu
+endif # INFINIBAND
--- linux-2.6.21-mm_20070428.orig/drivers/infiniband/hw/amso1100/Kconfig
+++ linux-2.6.21-mm_20070428/drivers/infiniband/hw/amso1100/Kconfig
@@ -1,6 +1,6 @@
 config INFINIBAND_AMSO1100
 	tristate "Ammasso 1100 HCA support"
-	depends on PCI && INET && INFINIBAND
+	depends on PCI && INET
 	---help---
 	  This is a low-level driver for the Ammasso 1100 host
 	  channel adapter (HCA).
--- linux-2.6.21-mm_20070428.orig/drivers/infiniband/hw/cxgb3/Kconfig
+++ linux-2.6.21-mm_20070428/drivers/infiniband/hw/cxgb3/Kconfig
@@ -1,6 +1,6 @@
 config INFINIBAND_CXGB3
 	tristate "Chelsio RDMA Driver"
-	depends on CHELSIO_T3 && INFINIBAND && INET
+	depends on CHELSIO_T3 && INET
 	select GENERIC_ALLOCATOR
 	---help---
 	  This is an iWARP/RDMA driver for the Chelsio T3 1GbE and
--- linux-2.6.21-mm_20070428.orig/drivers/infiniband/hw/ehca/Kconfig
+++ linux-2.6.21-mm_20070428/drivers/infiniband/hw/ehca/Kconfig
@@ -1,6 +1,6 @@
 config INFINIBAND_EHCA
 	tristate "eHCA support"
-	depends on IBMEBUS && INFINIBAND
+	depends on IBMEBUS
 	---help---
 	This driver supports the IBM pSeries eHCA InfiniBand adapter.
 
--- linux-2.6.21-mm_20070428.orig/drivers/infiniband/hw/ipath/Kconfig
+++ linux-2.6.21-mm_20070428/drivers/infiniband/hw/ipath/Kconfig
@@ -1,6 +1,6 @@
 config INFINIBAND_IPATH
 	tristate "QLogic InfiniPath Driver"
-	depends on (PCI_MSI || HT_IRQ) && 64BIT && INFINIBAND && NET
+	depends on (PCI_MSI || HT_IRQ) && 64BIT && NET
 	---help---
 	This is a driver for QLogic InfiniPath host channel adapters,
 	including InfiniBand verbs support.  This driver allows these
--- linux-2.6.21-mm_20070428.orig/drivers/infiniband/hw/mlx4/Kconfig
+++ linux-2.6.21-mm_20070428/drivers/infiniband/hw/mlx4/Kconfig
@@ -1,6 +1,5 @@
 config MLX4_INFINIBAND
 	tristate "Mellanox ConnectX HCA support"
-	depends on INFINIBAND
 	select MLX4_CORE
 	---help---
 	  This driver provides low-level InfiniBand support for
--- linux-2.6.21-mm_20070428.orig/drivers/infiniband/hw/mthca/Kconfig
+++ linux-2.6.21-mm_20070428/drivers/infiniband/hw/mthca/Kconfig
@@ -1,6 +1,6 @@
 config INFINIBAND_MTHCA
 	tristate "Mellanox HCA support"
-	depends on PCI && INFINIBAND
+	depends on PCI
 	---help---
 	  This is a low-level driver for Mellanox InfiniHost host
 	  channel adapters (HCAs), including the MT23108 PCI-X HCA
--- linux-2.6.21-mm_20070428.orig/drivers/infiniband/ulp/ipoib/Kconfig
+++ linux-2.6.21-mm_20070428/drivers/infiniband/ulp/ipoib/Kconfig
@@ -1,6 +1,6 @@
 config INFINIBAND_IPOIB
 	tristate "IP-over-InfiniBand"
-	depends on INFINIBAND && NETDEVICES && INET && (IPV6 || IPV6=n)
+	depends on NETDEVICES && INET && (IPV6 || IPV6=n)
 	---help---
 	  Support for the IP-over-InfiniBand protocol (IPoIB). This
 	  transports IP packets over InfiniBand so you can use your IB
--- linux-2.6.21-mm_20070428.orig/drivers/infiniband/ulp/iser/Kconfig
+++ linux-2.6.21-mm_20070428/drivers/infiniband/ulp/iser/Kconfig
@@ -1,6 +1,6 @@
 config INFINIBAND_ISER
 	tristate "iSCSI Extensions for RDMA (iSER)"
-	depends on INFINIBAND && SCSI && INET
+	depends on SCSI && INET
 	select SCSI_ISCSI_ATTRS
 	---help---
 	  Support for the iSCSI Extensions for RDMA (iSER) Protocol
--- linux-2.6.21-mm_20070428.orig/drivers/infiniband/ulp/srp/Kconfig
+++ linux-2.6.21-mm_20070428/drivers/infiniband/ulp/srp/Kconfig
@@ -1,6 +1,6 @@
 config INFINIBAND_SRP
 	tristate "InfiniBand SCSI RDMA Protocol"
-	depends on INFINIBAND && SCSI
+	depends on SCSI
 	---help---
 	  Support for the SCSI RDMA Protocol over InfiniBand.  This
 	  allows you to access storage devices that speak SRP over

^ permalink raw reply	[flat|nested] 70+ messages in thread

* [PATCH 11/36] Use menuconfig objects II - IPMI
  2007-04-30 11:03 [PATCH 00/36] Use menuconfig objects II - (overview) Jan Engelhardt
                   ` (9 preceding siblings ...)
  2007-04-30 11:32 ` [PATCH 10/36] Use menuconfig objects II - Infiniband Jan Engelhardt
@ 2007-04-30 11:33 ` Jan Engelhardt
  2007-04-30 14:43   ` Corey Minyard
  2007-04-30 11:35 ` [PATCH 12/36] Use menuconfig objects II - ISDN Jan Engelhardt
                   ` (24 subsequent siblings)
  35 siblings, 1 reply; 70+ messages in thread
From: Jan Engelhardt @ 2007-04-30 11:33 UTC (permalink / raw)
  To: Corey Minyard
  Cc: Linux Kernel Mailing List, openipmi-developer, Andrew Morton


Change Kconfig objects from "menu, config" into "menuconfig" so
that the user can disable the whole feature without having to
enter the menu first.

Signed-off-by: Jan Engelhardt <jengelh@gmx.de>

---
 drivers/char/ipmi/Kconfig |   12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

--- linux-2.6.21-mm_20070428.orig/drivers/char/ipmi/Kconfig
+++ linux-2.6.21-mm_20070428/drivers/char/ipmi/Kconfig
@@ -2,8 +2,7 @@
 # IPMI device configuration
 #
 
-menu "IPMI"
-config IPMI_HANDLER
+menuconfig IPMI_HANDLER
        tristate 'IPMI top-level message handler'
        help
          This enables the central IPMI message handler, required for IPMI
@@ -16,9 +15,10 @@ config IPMI_HANDLER
 
 	 If unsure, say N.
 
+if IPMI_HANDLER
+
 config IPMI_PANIC_EVENT
        bool 'Generate a panic event to all BMCs on a panic'
-       depends on IPMI_HANDLER
        help
          When a panic occurs, this will cause the IPMI message handler to
 	 generate an IPMI event describing the panic to each interface
@@ -38,14 +38,12 @@ config IPMI_PANIC_STRING
 
 config IPMI_DEVICE_INTERFACE
        tristate 'Device interface for IPMI'
-       depends on IPMI_HANDLER
        help
          This provides an IOCTL interface to the IPMI message handler so
 	 userland processes may use IPMI.  It supports poll() and select().
 
 config IPMI_SI
        tristate 'IPMI System Interface handler'
-       depends on IPMI_HANDLER
        help
          Provides a driver for System Interfaces (KCS, SMIC, BT).
 	 Currently, only KCS and SMIC are supported.  If
@@ -53,15 +51,13 @@ config IPMI_SI
 
 config IPMI_WATCHDOG
        tristate 'IPMI Watchdog Timer'
-       depends on IPMI_HANDLER
        help
          This enables the IPMI watchdog timer.
 
 config IPMI_POWEROFF
        tristate 'IPMI Poweroff'
-       depends on IPMI_HANDLER
        help
          This enables a function to power off the system with IPMI if
 	 the IPMI management controller is capable of this.
 
-endmenu
+endif # IPMI_HANDLER

^ permalink raw reply	[flat|nested] 70+ messages in thread

* [PATCH 12/36] Use menuconfig objects II - ISDN
  2007-04-30 11:03 [PATCH 00/36] Use menuconfig objects II - (overview) Jan Engelhardt
                   ` (10 preceding siblings ...)
  2007-04-30 11:33 ` [PATCH 11/36] Use menuconfig objects II - IPMI Jan Engelhardt
@ 2007-04-30 11:35 ` Jan Engelhardt
  2007-04-30 11:35 ` [PATCH 13/36] Use menuconfig objects II - KVM/Virt Jan Engelhardt
                   ` (23 subsequent siblings)
  35 siblings, 0 replies; 70+ messages in thread
From: Jan Engelhardt @ 2007-04-30 11:35 UTC (permalink / raw)
  To: Karsten Keil
  Cc: Linux Kernel Mailing List, Kai Germaschewski, isdn4linux, Andrew Morton


Change Kconfig objects from "menu, config" into "menuconfig" so
that the user can disable the whole feature without having to
enter the menu first.

In this patch, CONFIG_ISDN is also changed from a tristate to bool,
since no Makefile uses obj-$(CONFIG_ISDN) that could possibly
produce a module out of CONFIG_ISDN. So CONFIG_ISDN=y and
CONFIG_ISDN=m would do the same, in which case only allowing yes/no
seems 'nicer' to me. The submodules in the ISDN menu can still be
built as modules, as usual.

CAUTION: Everyone who has CONFIG_ISDN set to 'm' will get it set to 
'n'(!), so either everyone (including defconfig maintainers) should keep 
an eye open, or I need to come up with a patch that changes kconfig to 
just downgrade m->y in such cases.

Signed-off-by: Jan Engelhardt <jengelh@gmx.de>

---
 drivers/isdn/Kconfig |   21 +++++++--------------
 1 file changed, 7 insertions(+), 14 deletions(-)

--- linux-2.6.21-mm_20070428.orig/drivers/isdn/Kconfig
+++ linux-2.6.21-mm_20070428/drivers/isdn/Kconfig
@@ -2,10 +2,8 @@
 # ISDN device configuration
 #
 
-menu "ISDN subsystem"
-
-config ISDN
-	tristate "ISDN support"
+menuconfig ISDN
+	bool "ISDN support"
 	depends on NET
 	---help---
 	  ISDN ("Integrated Services Digital Networks", called RNIS in France)
@@ -20,12 +18,11 @@ config ISDN
 
 	  Select this option if you want your kernel to support ISDN.
 
+if ISDN
 
-menu "Old ISDN4Linux"
-	depends on NET && ISDN
-
-config ISDN_I4L
+menuconfig ISDN_I4L
 	tristate "Old ISDN4Linux subsystem"
+	depends on NET
 	---help---
 	  This driver allows you to use an ISDN adapter for networking
 	  connections and as dialin/out device.  The isdn-tty's have a built
@@ -46,14 +43,11 @@ if ISDN_I4L
 source "drivers/isdn/i4l/Kconfig"
 endif
 
-endmenu
-
 comment "CAPI subsystem"
-	depends on NET && ISDN
+	depends on NET
 
 config ISDN_CAPI
 	tristate "CAPI2.0 support"
-	depends on ISDN
 	help
 	  This provides the CAPI (Common ISDN Application Programming
 	  Interface, a standard making it easy for programs to access ISDN
@@ -64,5 +58,4 @@ source "drivers/isdn/capi/Kconfig"
 
 source "drivers/isdn/hardware/Kconfig"
 
-endmenu
-
+endif # ISDN

^ permalink raw reply	[flat|nested] 70+ messages in thread

* [PATCH 13/36] Use menuconfig objects II - KVM/Virt
  2007-04-30 11:03 [PATCH 00/36] Use menuconfig objects II - (overview) Jan Engelhardt
                   ` (11 preceding siblings ...)
  2007-04-30 11:35 ` [PATCH 12/36] Use menuconfig objects II - ISDN Jan Engelhardt
@ 2007-04-30 11:35 ` Jan Engelhardt
  2007-04-30 13:45   ` Avi Kivity
  2007-04-30 11:36 ` [PATCH 14/36] Use menuconfig objects II - LED Jan Engelhardt
                   ` (22 subsequent siblings)
  35 siblings, 1 reply; 70+ messages in thread
From: Jan Engelhardt @ 2007-04-30 11:35 UTC (permalink / raw)
  To: Avi Kivity; +Cc: Linux Kernel Mailing List, kvm-devel, Andrew Morton


Make a "menuconfig" out of the Kconfig objects "menu, ..., endmenu",
so that the user can disable all the options in that menu at once
instead of having to disable each option separately.

Signed-off-by: Jan Engelhardt <jengelh@gmx.de>

---
 drivers/kvm/Kconfig |    9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

--- linux-2.6.21-mm_20070428.orig/drivers/kvm/Kconfig
+++ linux-2.6.21-mm_20070428/drivers/kvm/Kconfig
@@ -1,7 +1,12 @@
 #
 # KVM configuration
 #
-menu "Virtualization"
+
+menuconfig VIRTUALIZATION
+	bool "Virtualization"
+	default y
+
+if VIRTUALIZATION
 
 config KVM
 	tristate "Kernel-based Virtual Machine (KVM) support"
@@ -34,4 +39,4 @@ config KVM_AMD
 	  Provides support for KVM on AMD processors equipped with the AMD-V
 	  (SVM) extensions.
 
-endmenu
+endif # VIRTUALIZATION

^ permalink raw reply	[flat|nested] 70+ messages in thread

* [PATCH 14/36] Use menuconfig objects II - LED
  2007-04-30 11:03 [PATCH 00/36] Use menuconfig objects II - (overview) Jan Engelhardt
                   ` (12 preceding siblings ...)
  2007-04-30 11:35 ` [PATCH 13/36] Use menuconfig objects II - KVM/Virt Jan Engelhardt
@ 2007-04-30 11:36 ` Jan Engelhardt
  2007-04-30 11:37 ` [PATCH 15/36] Use menuconfig objects II - Macintosh Jan Engelhardt
                   ` (21 subsequent siblings)
  35 siblings, 0 replies; 70+ messages in thread
From: Jan Engelhardt @ 2007-04-30 11:36 UTC (permalink / raw)
  To: Richard Purdie; +Cc: Linux Kernel Mailing List, Andrew Morton


Change Kconfig objects from "menu, config" into "menuconfig" so
that the user can disable the whole feature without having to
enter the menu first.

Signed-off-by: Jan Engelhardt <jengelh@gmx.de>

---
 drivers/leds/Kconfig |   11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

--- linux-2.6.21-mm_20070428.orig/drivers/leds/Kconfig
+++ linux-2.6.21-mm_20070428/drivers/leds/Kconfig
@@ -1,7 +1,5 @@
 
-menu "LED devices"
-
-config NEW_LEDS
+menuconfig NEW_LEDS
 	bool "LED Support"
 	help
 	  Say Y to enable Linux LED support.  This allows control of supported
@@ -10,9 +8,10 @@ config NEW_LEDS
 	  This is not related to standard keyboard LEDs which are controlled
 	  via the input system.
 
+if NEW_LEDS
+
 config LEDS_CLASS
 	tristate "LED Class Support"
-	depends on NEW_LEDS
 	help
 	  This option enables the led sysfs class in /sys/class/leds.  You'll
 	  need this to do anything useful with LEDs.  If unsure, say N.
@@ -106,7 +105,6 @@ comment "LED Triggers"
 
 config LEDS_TRIGGERS
 	bool "LED Trigger support"
-	depends on NEW_LEDS
 	help
 	  This option enables trigger support for the leds class.
 	  These triggers allow kernel events to drive the LEDs and can
@@ -135,5 +133,4 @@ config LEDS_TRIGGER_HEARTBEAT
 	  load average.
 	  If unsure, say Y.
 
-endmenu
-
+endif # NEW_LEDS

^ permalink raw reply	[flat|nested] 70+ messages in thread

* [PATCH 15/36] Use menuconfig objects II - Macintosh
  2007-04-30 11:03 [PATCH 00/36] Use menuconfig objects II - (overview) Jan Engelhardt
                   ` (13 preceding siblings ...)
  2007-04-30 11:36 ` [PATCH 14/36] Use menuconfig objects II - LED Jan Engelhardt
@ 2007-04-30 11:37 ` Jan Engelhardt
  2007-04-30 11:38 ` [PATCH 16/36] Use menuconfig objects II - MD Jan Engelhardt
                   ` (20 subsequent siblings)
  35 siblings, 0 replies; 70+ messages in thread
From: Jan Engelhardt @ 2007-04-30 11:37 UTC (permalink / raw)
  To: Benjamin Herrenschmidt
  Cc: Linux Kernel Mailing List, linuxppc-dev, Andrew Morton


Make a "menuconfig" out of the Kconfig objects "menu, ..., endmenu",
so that the user can disable all the options in that menu at once
instead of having to disable each option separately.

Signed-off-by: Jan Engelhardt <jengelh@gmx.de>

---
 drivers/macintosh/Kconfig |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

--- linux-2.6.21-mm_20070428.orig/drivers/macintosh/Kconfig
+++ linux-2.6.21-mm_20070428/drivers/macintosh/Kconfig
@@ -1,6 +1,10 @@
 
-menu "Macintosh device drivers"
+menuconfig MACINTOSH_DRIVERS
+	bool "Macintosh device drivers"
 	depends on PPC || MAC || X86
+	default y
+
+if MACINTOSH_DRIVERS
 
 config ADB
 	bool "Apple Desktop Bus (ADB) support"
@@ -234,4 +238,4 @@ config PMAC_RACKMETER
 	  This driver procides some support to control the front panel
           blue LEDs "vu-meter" of the XServer macs.
 
-endmenu
+endif # MACINTOSH_DRIVERS

^ permalink raw reply	[flat|nested] 70+ messages in thread

* [PATCH 16/36] Use menuconfig objects II - MD
  2007-04-30 11:03 [PATCH 00/36] Use menuconfig objects II - (overview) Jan Engelhardt
                   ` (14 preceding siblings ...)
  2007-04-30 11:37 ` [PATCH 15/36] Use menuconfig objects II - Macintosh Jan Engelhardt
@ 2007-04-30 11:38 ` Jan Engelhardt
  2007-04-30 11:40 ` [PATCH 17/36] Use menuconfig objects II - misc strange dev Jan Engelhardt
                   ` (19 subsequent siblings)
  35 siblings, 0 replies; 70+ messages in thread
From: Jan Engelhardt @ 2007-04-30 11:38 UTC (permalink / raw)
  To: Neil Brown; +Cc: Linux Kernel Mailing List, Andrew Morton, linux-raid


Change Kconfig objects from "menu, config" into "menuconfig" so
that the user can disable the whole feature without having to
enter the menu first.

Signed-off-by: Jan Engelhardt <jengelh@gmx.de>

---
 drivers/md/Kconfig |   15 +++++----------
 1 file changed, 5 insertions(+), 10 deletions(-)

--- linux-2.6.21-mm_20070428.orig/drivers/md/Kconfig
+++ linux-2.6.21-mm_20070428/drivers/md/Kconfig
@@ -2,20 +2,18 @@
 # Block device driver configuration
 #
 
-if BLOCK
-
-menu "Multi-device support (RAID and LVM)"
-
-config MD
+menuconfig MD
 	bool "Multiple devices driver support (RAID and LVM)"
+	depends on BLOCK
 	select ASYNC_TX_DMA
 	help
 	  Support multiple physical spindles through a single logical device.
 	  Required for RAID and logical volume management.
 
+if MD
+
 config BLK_DEV_MD
 	tristate "RAID support"
-	depends on MD
 	---help---
 	  This driver lets you combine several hard disk partitions into one
 	  logical block device. This can be used to simply append one
@@ -190,7 +188,6 @@ config MD_FAULTY
 
 config BLK_DEV_DM
 	tristate "Device mapper support"
-	depends on MD
 	---help---
 	  Device-mapper is a low level volume manager.  It works by allowing
 	  people to specify mappings for ranges of logical sectors.  Various
@@ -272,6 +269,4 @@ config DM_DELAY
 
 	If unsure, say N.
 
-endmenu
-
-endif
+endif # MD

^ permalink raw reply	[flat|nested] 70+ messages in thread

* [PATCH 17/36] Use menuconfig objects II - misc strange dev
  2007-04-30 11:03 [PATCH 00/36] Use menuconfig objects II - (overview) Jan Engelhardt
                   ` (15 preceding siblings ...)
  2007-04-30 11:38 ` [PATCH 16/36] Use menuconfig objects II - MD Jan Engelhardt
@ 2007-04-30 11:40 ` Jan Engelhardt
  2007-04-30 11:40 ` [PATCH 18/36] Use menuconfig objects II - MMC Jan Engelhardt
                   ` (18 subsequent siblings)
  35 siblings, 0 replies; 70+ messages in thread
From: Jan Engelhardt @ 2007-04-30 11:40 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Linux Kernel Mailing List


Make a "menuconfig" out of the Kconfig objects "menu, ..., endmenu",
so that the user can disable all the options in that menu at once
instead of having to disable each option separately.

Signed-off-by: Jan Engelhardt <jengelh@gmx.de>

---
 drivers/misc/Kconfig |    9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

--- linux-2.6.21-mm_20070428.orig/drivers/misc/Kconfig
+++ linux-2.6.21-mm_20070428/drivers/misc/Kconfig
@@ -2,7 +2,11 @@
 # Misc strange devices
 #
 
-menu "Misc devices"
+menuconfig MISC_STRANGE_DEV
+	bool "Misc devices"
+	default y
+
+if MISC_STRANGE_DEV
 
 config IBM_ASM
 	tristate "Device driver for IBM RSA service processor"
@@ -186,5 +190,4 @@ config BLINK
 	  output something to the screen like kexec kernels to give the user
 	  a visual indication that the kernel is doing something.
 
-
-endmenu
+endif # MISC_STRANGE_DEV

^ permalink raw reply	[flat|nested] 70+ messages in thread

* [PATCH 18/36] Use menuconfig objects II - MMC
  2007-04-30 11:03 [PATCH 00/36] Use menuconfig objects II - (overview) Jan Engelhardt
                   ` (16 preceding siblings ...)
  2007-04-30 11:40 ` [PATCH 17/36] Use menuconfig objects II - misc strange dev Jan Engelhardt
@ 2007-04-30 11:40 ` Jan Engelhardt
  2007-04-30 13:51   ` Pierre Ossman
  2007-05-01 15:57   ` Pierre Ossman
  2007-04-30 11:41 ` [PATCH 19/36] Use menuconfig objects II - module menu Jan Engelhardt
                   ` (17 subsequent siblings)
  35 siblings, 2 replies; 70+ messages in thread
From: Jan Engelhardt @ 2007-04-30 11:40 UTC (permalink / raw)
  To: Pierre Ossman; +Cc: Linux Kernel Mailing List, Andrew Morton


Change Kconfig objects from "menu, config" into "menuconfig" so
that the user can disable the whole feature without having to
enter the menu first.

Signed-off-by: Jan Engelhardt <jengelh@gmx.de>

---
 drivers/mmc/Kconfig      |   10 +++++-----
 drivers/mmc/card/Kconfig |    3 +--
 drivers/mmc/host/Kconfig |   19 +++++++++----------
 3 files changed, 15 insertions(+), 17 deletions(-)

--- linux-2.6.21-mm_20070428.orig/drivers/mmc/Kconfig
+++ linux-2.6.21-mm_20070428/drivers/mmc/Kconfig
@@ -2,10 +2,8 @@
 # MMC subsystem configuration
 #
 
-menu "MMC/SD Card support"
-
-config MMC
-	tristate "MMC support"
+menuconfig MMC
+	tristate "MMC/SD card support"
 	help
 	  MMC is the "multi-media card" bus protocol.
 
@@ -19,8 +17,10 @@ config MMC_DEBUG
 	  This is an option for use by developers; most people should
 	  say N here.  This enables MMC core and driver debugging.
 
+if MMC
+
 source "drivers/mmc/card/Kconfig"
 
 source "drivers/mmc/host/Kconfig"
 
-endmenu
+endif # MMC
--- linux-2.6.21-mm_20070428.orig/drivers/mmc/card/Kconfig
+++ linux-2.6.21-mm_20070428/drivers/mmc/card/Kconfig
@@ -3,11 +3,10 @@
 #
 
 comment "MMC/SD Card Drivers"
-	depends MMC
 
 config MMC_BLOCK
 	tristate "MMC block device driver"
-	depends on MMC && BLOCK
+	depends on BLOCK
 	default y
 	help
 	  Say Y here to enable the MMC block device driver support.
--- linux-2.6.21-mm_20070428.orig/drivers/mmc/host/Kconfig
+++ linux-2.6.21-mm_20070428/drivers/mmc/host/Kconfig
@@ -3,11 +3,10 @@
 #
 
 comment "MMC/SD Host Controller Drivers"
-	depends on MMC
 
 config MMC_ARMMMCI
 	tristate "ARM AMBA Multimedia Card Interface support"
-	depends on ARM_AMBA && MMC
+	depends on ARM_AMBA
 	help
 	  This selects the ARM(R) AMBA(R) PrimeCell Multimedia Card
 	  Interface (PL180 and PL181) support.  If you have an ARM(R)
@@ -17,7 +16,7 @@ config MMC_ARMMMCI
 
 config MMC_PXA
 	tristate "Intel PXA25x/26x/27x Multimedia Card Interface support"
-	depends on ARCH_PXA && MMC
+	depends on ARCH_PXA
 	help
 	  This selects the Intel(R) PXA(R) Multimedia card Interface.
 	  If you have a PXA(R) platform with a Multimedia Card slot,
@@ -27,7 +26,7 @@ config MMC_PXA
 
 config MMC_SDHCI
 	tristate "Secure Digital Host Controller Interface support  (EXPERIMENTAL)"
-	depends on PCI && MMC && EXPERIMENTAL
+	depends on PCI && EXPERIMENTAL
 	help
 	  This select the generic Secure Digital Host Controller Interface.
 	  It is used by manufacturers such as Texas Instruments(R), Ricoh(R)
@@ -38,7 +37,7 @@ config MMC_SDHCI
 
 config MMC_OMAP
 	tristate "TI OMAP Multimedia Card Interface support"
-	depends on ARCH_OMAP && MMC
+	depends on ARCH_OMAP
 	select TPS65010 if MACH_OMAP_H2
 	help
 	  This selects the TI OMAP Multimedia card Interface.
@@ -49,7 +48,7 @@ config MMC_OMAP
 
 config MMC_WBSD
 	tristate "Winbond W83L51xD SD/MMC Card Interface support"
-	depends on MMC && ISA_DMA_API
+	depends on ISA_DMA_API
 	help
 	  This selects the Winbond(R) W83L51xD Secure digital and
           Multimedia card Interface.
@@ -60,7 +59,7 @@ config MMC_WBSD
 
 config MMC_AU1X
 	tristate "Alchemy AU1XX0 MMC Card Interface support"
-	depends on MMC && SOC_AU1200
+	depends on SOC_AU1200
 	help
 	  This selects the AMD Alchemy(R) Multimedia card interface.
 	  If you have a Alchemy platform with a MMC slot, say Y or M here.
@@ -69,7 +68,7 @@ config MMC_AU1X
 
 config MMC_AT91
 	tristate "AT91 SD/MMC Card Interface support"
-	depends on ARCH_AT91 && MMC
+	depends on ARCH_AT91
 	help
 	  This selects the AT91 MCI controller.
 
@@ -77,7 +76,7 @@ config MMC_AT91
 
 config MMC_IMX
 	tristate "Motorola i.MX Multimedia Card Interface support"
-	depends on ARCH_IMX && MMC
+	depends on ARCH_IMX
 	help
 	  This selects the Motorola i.MX Multimedia card Interface.
 	  If you have a i.MX platform with a Multimedia Card slot,
@@ -87,7 +86,7 @@ config MMC_IMX
 
 config MMC_TIFM_SD
 	tristate "TI Flash Media MMC/SD Interface support  (EXPERIMENTAL)"
-	depends on MMC && EXPERIMENTAL && PCI
+	depends on EXPERIMENTAL && PCI
 	select TIFM_CORE
 	help
 	  Say Y here if you want to be able to access MMC/SD cards with

^ permalink raw reply	[flat|nested] 70+ messages in thread

* [PATCH 19/36] Use menuconfig objects II - module menu
  2007-04-30 11:03 [PATCH 00/36] Use menuconfig objects II - (overview) Jan Engelhardt
                   ` (17 preceding siblings ...)
  2007-04-30 11:40 ` [PATCH 18/36] Use menuconfig objects II - MMC Jan Engelhardt
@ 2007-04-30 11:41 ` Jan Engelhardt
  2007-04-30 11:43 ` [PATCH 20/36] Use menuconfig objects II - netdev (general+100mbit) Jan Engelhardt
                   ` (16 subsequent siblings)
  35 siblings, 0 replies; 70+ messages in thread
From: Jan Engelhardt @ 2007-04-30 11:41 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Linux Kernel Mailing List, Jens Axboe, Rusty Russell


(This one depends on [PATCH 01/36] as `quilt graph` tells me.)

Change menuconfig objects from "menu, config" into "menuconfig" so
that the user can disable the whole feature without entering its
menu first.

Signed-off-by: Jan Engelhardt <jengelh@gmx.de>

---
 init/Kconfig |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

--- linux-2.6.21-mm_20070428.orig/init/Kconfig
+++ linux-2.6.21-mm_20070428/init/Kconfig
@@ -657,9 +657,7 @@ config BASE_SMALL
 	default 0 if BASE_FULL
 	default 1 if !BASE_FULL
 
-menu "Loadable module support"
-
-config MODULES
+menuconfig MODULES
 	bool "Enable loadable module support"
 	help
 	  Kernel modules are small pieces of compiled code which can
@@ -739,6 +737,5 @@ config STOP_MACHINE
 	depends on (SMP && MODULE_UNLOAD) || HOTPLUG_CPU
 	help
 	  Need stop_machine() primitive.
-endmenu
 
 source "block/Kconfig"

^ permalink raw reply	[flat|nested] 70+ messages in thread

* [PATCH 20/36] Use menuconfig objects II - netdev (general+100mbit)
  2007-04-30 11:03 [PATCH 00/36] Use menuconfig objects II - (overview) Jan Engelhardt
                   ` (18 preceding siblings ...)
  2007-04-30 11:41 ` [PATCH 19/36] Use menuconfig objects II - module menu Jan Engelhardt
@ 2007-04-30 11:43 ` Jan Engelhardt
  2007-04-30 11:44 ` [PATCH 21/36] Use menuconfig objects II - netdev/atm Jan Engelhardt
                   ` (15 subsequent siblings)
  35 siblings, 0 replies; 70+ messages in thread
From: Jan Engelhardt @ 2007-04-30 11:43 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Linux Kernel Mailing List, Jeff Garzik, netdev


CONFIG_NETDEVICES, CONFIG_NET_ETHERNET:
Change Kconfig objects from "menu, config" into "menuconfig" so
that the user can disable the whole feature without having to
enter the menu first.

CONFIG_SMC9194:
Move it so that it appears correctly in menuconfig.

Signed-off-by: Jan Engelhardt <jengelh@gmx.de>

---
 drivers/net/Kconfig         |  167 +++++++++++++++++++++-----------------------
 drivers/net/arm/Kconfig     |   12 +--
 drivers/net/fec_8xx/Kconfig |    2 
 drivers/net/fs_enet/Kconfig |    2 
 drivers/net/tulip/Kconfig   |   27 +++----
 5 files changed, 102 insertions(+), 108 deletions(-)

--- linux-2.6.21-mm_20070428.orig/drivers/net/Kconfig
+++ linux-2.6.21-mm_20070428/drivers/net/Kconfig
@@ -3,10 +3,7 @@
 # Network device configuration
 #
 
-menu "Network device support"
-	depends on NET
-
-config NETDEVICES
+menuconfig NETDEVICES
 	default y if UML
 	bool "Network device support"
 	---help---
@@ -151,11 +148,9 @@ source "drivers/net/phy/Kconfig"
 #	Ethernet
 #
 
-menu "Ethernet (10 or 100Mbit)"
-	depends on !UML
-
-config NET_ETHERNET
+menuconfig NET_ETHERNET
 	bool "Ethernet (10 or 100Mbit)"
+	depends on !UML
 	---help---
 	  Ethernet (also called IEEE 802.3 or ISO 8802-2) is the most common
 	  type of Local Area Network (LAN) in universities and companies.
@@ -180,9 +175,10 @@ config NET_ETHERNET
 	  kernel: saying N will just cause the configurator to skip all
 	  the questions about Ethernet network cards. If unsure, say N.
 
+if NET_ETHERNET
+
 config MII
 	tristate "Generic Media Independent Interface device support"
-	depends on NET_ETHERNET
 	help
 	  Most ethernet controllers have MII transceiver either as an external
 	  or internal device.  It is safe to say Y or M here even if your
@@ -190,7 +186,7 @@ config MII
 
 config MACB
 	tristate "Atmel MACB support"
-	depends on NET_ETHERNET && (AVR32 || ARCH_AT91SAM9260 || ARCH_AT91SAM9263)
+	depends on AVR32 || ARCH_AT91SAM9260 || ARCH_AT91SAM9263
 	select MII
 	help
 	  The Atmel MACB ethernet interface is found on many AT32 and AT91
@@ -203,7 +199,7 @@ source "drivers/net/arm/Kconfig"
 
 config MACE
 	tristate "MACE (Power Mac ethernet) support"
-	depends on NET_ETHERNET && PPC_PMAC && PPC32
+	depends on PPC_PMAC && PPC32
 	select CRC32
 	help
 	  Power Macintoshes and clones with Ethernet built-in on the
@@ -226,7 +222,7 @@ config MACE_AAUI_PORT
 
 config BMAC
 	tristate "BMAC (G3 ethernet) support"
-	depends on NET_ETHERNET && PPC_PMAC && PPC32
+	depends on PPC_PMAC && PPC32
 	select CRC32
 	help
 	  Say Y for support of BMAC Ethernet interfaces. These are used on G3
@@ -237,7 +233,7 @@ config BMAC
 
 config ARIADNE
 	tristate "Ariadne support"
-	depends on NET_ETHERNET && ZORRO
+	depends on ZORRO
 	help
 	  If you have a Village Tronic Ariadne Ethernet adapter, say Y.
 	  Otherwise, say N.
@@ -247,7 +243,7 @@ config ARIADNE
 
 config A2065
 	tristate "A2065 support"
-	depends on NET_ETHERNET && ZORRO
+	depends on ZORRO
 	select CRC32
 	help
 	  If you have a Commodore A2065 Ethernet adapter, say Y. Otherwise,
@@ -258,7 +254,7 @@ config A2065
 
 config HYDRA
 	tristate "Hydra support"
-	depends on NET_ETHERNET && ZORRO
+	depends on ZORRO
 	select CRC32
 	help
 	  If you have a Hydra Ethernet adapter, say Y. Otherwise, say N.
@@ -268,7 +264,7 @@ config HYDRA
 
 config ZORRO8390
 	tristate "Zorro NS8390-based Ethernet support"
-	depends on NET_ETHERNET && ZORRO
+	depends on ZORRO
 	select CRC32
 	help
 	  This driver is for Zorro Ethernet cards using an NS8390-compatible
@@ -281,7 +277,7 @@ config ZORRO8390
 
 config APNE
 	tristate "PCMCIA NE2000 support"
-	depends on NET_ETHERNET && AMIGA_PCMCIA
+	depends on AMIGA_PCMCIA
 	select CRC32
 	help
 	  If you have a PCMCIA NE2000 compatible adapter, say Y.  Otherwise,
@@ -292,7 +288,7 @@ config APNE
 
 config APOLLO_ELPLUS
 	tristate "Apollo 3c505 support"
-	depends on NET_ETHERNET && APOLLO
+	depends on APOLLO
 	help
 	  Say Y or M here if your Apollo has a 3Com 3c505 ISA Ethernet card.
 	  If you don't have one made for Apollos, you can use one from a PC,
@@ -301,7 +297,7 @@ config APOLLO_ELPLUS
 
 config MAC8390
 	bool "Macintosh NS 8390 based ethernet cards"
-	depends on NET_ETHERNET && MAC
+	depends on MAC
 	select CRC32
 	help
 	  If you want to include a driver to support Nubus or LC-PDS
@@ -311,7 +307,7 @@ config MAC8390
 
 config MAC89x0
 	tristate "Macintosh CS89x0 based ethernet cards"
-	depends on NET_ETHERNET && MAC && BROKEN
+	depends on MAC && BROKEN
 	---help---
 	  Support for CS89x0 chipset based Ethernet cards.  If you have a
 	  Nubus or LC-PDS network (Ethernet) card of this type, say Y and
@@ -324,7 +320,7 @@ config MAC89x0
 
 config MACSONIC
 	tristate "Macintosh SONIC based ethernet (onboard, NuBus, LC, CS)"
-	depends on NET_ETHERNET && MAC
+	depends on MAC
 	---help---
 	  Support for NatSemi SONIC based Ethernet devices.  This includes
 	  the onboard Ethernet in many Quadras as well as some LC-PDS,
@@ -338,7 +334,7 @@ config MACSONIC
 
 config MACMACE
 	bool "Macintosh (AV) onboard MACE ethernet (EXPERIMENTAL)"
-	depends on NET_ETHERNET && MAC && EXPERIMENTAL
+	depends on MAC && EXPERIMENTAL
 	select CRC32
 	help
 	  Support for the onboard AMD 79C940 MACE Ethernet controller used in
@@ -348,7 +344,7 @@ config MACMACE
 
 config MVME147_NET
 	tristate "MVME147 (Lance) Ethernet support"
-	depends on NET_ETHERNET && MVME147
+	depends on MVME147
 	select CRC32
 	help
 	  Support for the on-board Ethernet interface on the Motorola MVME147
@@ -358,7 +354,7 @@ config MVME147_NET
 
 config MVME16x_NET
 	tristate "MVME16x Ethernet support"
-	depends on NET_ETHERNET && MVME16x
+	depends on MVME16x
 	help
 	  This is the driver for the Ethernet interface on the Motorola
 	  MVME162, 166, 167, 172 and 177 boards.  Say Y here to include the
@@ -367,7 +363,7 @@ config MVME16x_NET
 
 config BVME6000_NET
 	tristate "BVME6000 Ethernet support"
-	depends on NET_ETHERNET && BVME6000
+	depends on BVME6000
 	help
 	  This is the driver for the Ethernet interface on BVME4000 and
 	  BVME6000 VME boards.  Say Y here to include the driver for this chip
@@ -376,7 +372,7 @@ config BVME6000_NET
 
 config ATARILANCE
 	tristate "Atari Lance support"
-	depends on NET_ETHERNET && ATARI
+	depends on ATARI
 	help
 	  Say Y to include support for several Atari Ethernet adapters based
 	  on the AMD Lance chipset: RieblCard (with or without battery), or
@@ -384,7 +380,7 @@ config ATARILANCE
 
 config ATARI_BIONET
 	tristate "BioNet-100 support"
-	depends on NET_ETHERNET && ATARI && ATARI_ACSI && BROKEN
+	depends on ATARI && ATARI_ACSI && BROKEN
 	help
 	  Say Y to include support for BioData's BioNet-100 Ethernet adapter
 	  for the ACSI port. The driver works (has to work...) with a polled
@@ -392,7 +388,7 @@ config ATARI_BIONET
 
 config ATARI_PAMSNET
 	tristate "PAMsNet support"
-	depends on NET_ETHERNET && ATARI && ATARI_ACSI && BROKEN
+	depends on ATARI && ATARI_ACSI && BROKEN
 	help
 	  Say Y to include support for the PAMsNet Ethernet adapter for the
 	  ACSI port ("ACSI node"). The driver works (has to work...) with a
@@ -400,7 +396,7 @@ config ATARI_PAMSNET
 
 config SUN3LANCE
 	tristate "Sun3/Sun3x on-board LANCE support"
-	depends on NET_ETHERNET && (SUN3 || SUN3X)
+	depends on SUN3 || SUN3X
 	help
 	  Most Sun3 and Sun3x motherboards (including the 3/50, 3/60 and 3/80)
 	  featured an AMD Lance 10Mbit Ethernet controller on board; say Y
@@ -413,7 +409,7 @@ config SUN3LANCE
 
 config SUN3_82586
 	bool "Sun3 on-board Intel 82586 support"
-	depends on NET_ETHERNET && SUN3
+	depends on SUN3
 	help
 	  This driver enables support for the on-board Intel 82586 based
 	  Ethernet adapter found on Sun 3/1xx and 3/2xx motherboards.  Note
@@ -422,7 +418,7 @@ config SUN3_82586
 
 config HPLANCE
 	bool "HP on-board LANCE support"
-	depends on NET_ETHERNET && DIO
+	depends on DIO
 	select CRC32
 	help
 	  If you want to use the builtin "LANCE" Ethernet controller on an
@@ -430,21 +426,21 @@ config HPLANCE
 
 config LASI_82596
 	tristate "Lasi ethernet"
-	depends on NET_ETHERNET && GSC
+	depends on GSC
 	help
 	  Say Y here to support the builtin Intel 82596 ethernet controller
 	  found in Hewlett-Packard PA-RISC machines with 10Mbit ethernet.
 
 config MIPS_JAZZ_SONIC
 	tristate "MIPS JAZZ onboard SONIC Ethernet support"
-	depends on NET_ETHERNET && MACH_JAZZ
+	depends on MACH_JAZZ
 	help
 	  This is the driver for the onboard card of MIPS Magnum 4000,
 	  Acer PICA, Olivetti M700-10 and a few other identical OEM systems.
 
 config MIPS_AU1X00_ENET
 	bool "MIPS AU1000 Ethernet support"
-	depends on NET_ETHERNET && SOC_AU1X00
+	depends on SOC_AU1X00
 	select PHYLIB
 	select CRC32
 	help
@@ -453,11 +449,11 @@ config MIPS_AU1X00_ENET
 
 config NET_SB1250_MAC
 	tristate "SB1250 Ethernet support"
-	depends on NET_ETHERNET && SIBYTE_SB1xxx_SOC
+	depends on SIBYTE_SB1xxx_SOC
 
 config SGI_IOC3_ETH
 	bool "SGI IOC3 Ethernet"
-	depends on NET_ETHERNET && PCI && SGI_IP27
+	depends on PCI && SGI_IP27
 	select CRC32
 	select MII
 	help
@@ -487,7 +483,7 @@ config SGI_IOC3_ETH_HW_TX_CSUM
 
 config MIPS_SIM_NET
 	tristate "MIPS simulator Network device"
-	depends on NET_ETHERNET && MIPS_SIM
+	depends on MIPS_SIM
 	help
 	  The MIPSNET device is a simple Ethernet network device which is
 	  emulated by the MIPS Simulator.
@@ -495,11 +491,11 @@ config MIPS_SIM_NET
 
 config SGI_O2MACE_ETH
 	tristate "SGI O2 MACE Fast Ethernet support"
-	depends on NET_ETHERNET && SGI_IP32=y
+	depends on SGI_IP32=y
 
 config STNIC
 	tristate "National DP83902AV  support"
-	depends on NET_ETHERNET && SUPERH
+	depends on SUPERH
 	select CRC32
 	help
 	  Support for cards based on the National Semiconductor DP83902AV
@@ -511,7 +507,7 @@ config STNIC
 
 config SUNLANCE
 	tristate "Sun LANCE support"
-	depends on NET_ETHERNET && SBUS
+	depends on SBUS
 	select CRC32
 	help
 	  This driver supports the "le" interface present on all 32-bit Sparc
@@ -524,7 +520,7 @@ config SUNLANCE
 
 config HAPPYMEAL
 	tristate "Sun Happy Meal 10/100baseT support"
-	depends on NET_ETHERNET && (SBUS || PCI)
+	depends on SBUS || PCI
 	select CRC32
 	help
 	  This driver supports the "hme" interface present on most Ultra
@@ -537,7 +533,7 @@ config HAPPYMEAL
 
 config SUNBMAC
 	tristate "Sun BigMAC 10/100baseT support (EXPERIMENTAL)"
-	depends on NET_ETHERNET && SBUS && EXPERIMENTAL
+	depends on SBUS && EXPERIMENTAL
 	select CRC32
 	help
 	  This driver supports the "be" interface available as an Sbus option.
@@ -548,7 +544,7 @@ config SUNBMAC
 
 config SUNQE
 	tristate "Sun QuadEthernet support"
-	depends on NET_ETHERNET && SBUS
+	depends on SBUS
 	select CRC32
 	help
 	  This driver supports the "qe" 10baseT Ethernet device, available as
@@ -560,7 +556,7 @@ config SUNQE
 
 config SUNGEM
 	tristate "Sun GEM support"
-	depends on NET_ETHERNET && PCI
+	depends on PCI
 	select CRC32
 	help
 	  Support for the Sun GEM chip, aka Sun GigabitEthernet/P 2.0.  See also
@@ -568,7 +564,7 @@ config SUNGEM
 
 config CASSINI
 	tristate "Sun Cassini support"
-	depends on NET_ETHERNET && PCI
+	depends on PCI
 	select CRC32
 	help
 	  Support for the Sun Cassini chip, aka Sun GigaSwift Ethernet. See also
@@ -576,7 +572,7 @@ config CASSINI
 
 config NET_VENDOR_3COM
 	bool "3COM cards"
-	depends on NET_ETHERNET && (ISA || EISA || MCA || PCI)
+	depends on ISA || EISA || MCA || PCI
 	help
 	  If you have a network (Ethernet) card belonging to this class, say Y
 	  and read the Ethernet-HOWTO, available from
@@ -736,7 +732,7 @@ config TYPHOON
 
 config LANCE
 	tristate "AMD LANCE and PCnet (AT1500 and NE2100) support"
-	depends on NET_ETHERNET && ISA && ISA_DMA_API
+	depends on ISA && ISA_DMA_API
 	help
 	  If you have a network (Ethernet) card of this type, say Y and read
 	  the Ethernet-HOWTO, available from
@@ -748,7 +744,7 @@ config LANCE
 
 config NET_VENDOR_SMC
 	bool "Western Digital/SMC cards"
-	depends on NET_ETHERNET && (ISA || MCA || EISA || MAC)
+	depends on ISA || MCA || EISA || MAC
 	help
 	  If you have a network (Ethernet) card belonging to this class, say Y
 	  and read the Ethernet-HOWTO, available from
@@ -818,11 +814,27 @@ config ULTRA32
 	  <file:Documentation/networking/net-modules.txt>. The module
 	  will be called smc-ultra32.
 
+config SMC9194
+	tristate "SMC 9194 support"
+	depends on NET_VENDOR_SMC && (ISA || MAC && BROKEN)
+	select CRC32
+	---help---
+	  This is support for the SMC9xxx based Ethernet cards. Choose this
+	  option if you have a DELL laptop with the docking station, or
+	  another SMC9192/9194 based chipset.  Say Y if you want it compiled
+	  into the kernel, and read the file
+	  <file:Documentation/networking/smc9.txt> and the Ethernet-HOWTO,
+	  available from <http://www.tldp.org/docs.html#howto>.
+
+	  To compile this driver as a module, choose M here and read
+	  <file:Documentation/networking/net-modules.txt>. The module
+	  will be called smc9194.
+
 config SMC91X
 	tristate "SMC 91C9x/91C1xxx support"
 	select CRC32
 	select MII
-	depends on NET_ETHERNET && (ARM || REDWOOD_5 || REDWOOD_6 || M32R || SUPERH || SOC_AU1X00 || BFIN)
+	depends on ARM || REDWOOD_5 || REDWOOD_6 || M32R || SUPERH || SOC_AU1X00 || BFIN
 	help
 	  This is a driver for SMC's 91x series of Ethernet chipsets,
 	  including the SMC91C94 and the SMC91C111. Say Y if you want it
@@ -838,7 +850,7 @@ config SMC91X
 
 config BFIN_MAC
 	tristate "Blackfin 536/537 on-chip mac support"
-	depends on NET_ETHERNET && (BF537 || BF536) && (!BF537_PORT_H)
+	depends on (BF537 || BF536) && !BF537_PORT_H
 	select CRC32
 	select BFIN_MAC_USE_L1 if DMA_UNCACHED_NONE
 	help
@@ -880,26 +892,10 @@ config BFIN_MAC_RMII
 	help
 	  Use Reduced PHY MII Interface
 
-config SMC9194
-	tristate "SMC 9194 support"
-	depends on NET_VENDOR_SMC && (ISA || MAC && BROKEN)
-	select CRC32
-	---help---
-	  This is support for the SMC9xxx based Ethernet cards. Choose this
-	  option if you have a DELL laptop with the docking station, or
-	  another SMC9192/9194 based chipset.  Say Y if you want it compiled
-	  into the kernel, and read the file
-	  <file:Documentation/networking/smc9.txt> and the Ethernet-HOWTO,
-	  available from <http://www.tldp.org/docs.html#howto>.
-
-	  To compile this driver as a module, choose M here and read
-	  <file:Documentation/networking/net-modules.txt>. The module
-	  will be called smc9194.
-
 config NET_NETX
 	tristate "NetX Ethernet support"
 	select MII
-	depends on NET_ETHERNET && ARCH_NETX
+	depends on ARCH_NETX
 	help
 	  This is support for the Hilscher netX builtin Ethernet ports
 
@@ -909,7 +905,7 @@ config NET_NETX
 
 config DM9000
 	tristate "DM9000 support"
-	depends on (ARM || MIPS) && NET_ETHERNET
+	depends on ARM || MIPS
 	select CRC32
 	select MII
 	---help---
@@ -923,7 +919,7 @@ config SMC911X
 	tristate "SMSC LAN911[5678] support"
 	select CRC32
 	select MII
-	depends on NET_ETHERNET && ARCH_PXA
+	depends on ARCH_PXA
 	help
 	  This is a driver for SMSC's LAN911x series of Ethernet chipsets
 	  including the new LAN9115, LAN9116, LAN9117, and LAN9118.
@@ -937,7 +933,7 @@ config SMC911X
 
 config NET_VENDOR_RACAL
 	bool "Racal-Interlan (Micom) NI cards"
-	depends on NET_ETHERNET && ISA
+	depends on ISA
 	help
 	  If you have a network (Ethernet) card belonging to this class, such
 	  as the NI5010, NI5210 or NI6210, say Y and read the Ethernet-HOWTO,
@@ -989,7 +985,7 @@ source "drivers/net/tulip/Kconfig"
 
 config AT1700
 	tristate "AT1700/1720 support (EXPERIMENTAL)"
-	depends on NET_ETHERNET && (ISA || MCA_LEGACY) && EXPERIMENTAL
+	depends on (ISA || MCA_LEGACY) && EXPERIMENTAL
 	select CRC32
 	---help---
 	  If you have a network (Ethernet) card of this type, say Y and read
@@ -1002,7 +998,7 @@ config AT1700
 
 config DEPCA
 	tristate "DEPCA, DE10x, DE200, DE201, DE202, DE422 support"
-	depends on NET_ETHERNET && (ISA || EISA || MCA)
+	depends on ISA || EISA || MCA
 	select CRC32
 	---help---
 	  If you have a network (Ethernet) card of this type, say Y and read
@@ -1016,7 +1012,7 @@ config DEPCA
 
 config HP100
 	tristate "HP 10/100VG PCLAN (ISA, EISA, PCI) support"
-	depends on NET_ETHERNET && (ISA || EISA || PCI)
+	depends on ISA || EISA || PCI
 	help
 	  If you have a network (Ethernet) card of this type, say Y and read
 	  the Ethernet-HOWTO, available from
@@ -1028,7 +1024,7 @@ config HP100
 
 config NET_ISA
 	bool "Other ISA cards"
-	depends on NET_ETHERNET && ISA
+	depends on ISA
 	---help---
 	  If your network (Ethernet) card hasn't been mentioned yet and its
 	  bus system (that's the way the cards talks to the other components
@@ -1191,7 +1187,7 @@ config SEEQ8005
 
 config NE2_MCA
 	tristate "NE/2 (ne2000 MCA version) support"
-	depends on NET_ETHERNET && MCA_LEGACY
+	depends on MCA_LEGACY
 	select CRC32
 	help
 	  If you have a network (Ethernet) card of this type, say Y and read
@@ -1204,7 +1200,7 @@ config NE2_MCA
 
 config IBMLANA
 	tristate "IBM LAN Adapter/A support"
-	depends on NET_ETHERNET && MCA && MCA_LEGACY
+	depends on MCA && MCA_LEGACY
 	---help---
 	  This is a Micro Channel Ethernet adapter.  You need to set
 	  CONFIG_MCA to use this driver.  It is both available as an in-kernel
@@ -1220,7 +1216,7 @@ config IBMLANA
 
 config IBMVETH
 	tristate "IBM LAN Virtual Ethernet support"
-	depends on NET_ETHERNET && PPC_PSERIES
+	depends on PPC_PSERIES
 	---help---
 	  This driver supports virtual ethernet adapters on newer IBM iSeries
 	  and pSeries systems.
@@ -1301,7 +1297,7 @@ config IBM_EMAC_TAH
 
 config NET_PCI
 	bool "EISA, VLB, PCI and on board controllers"
-	depends on NET_ETHERNET && (ISA || EISA || PCI)
+	depends on ISA || EISA || PCI
 	help
 	  This is another class of network cards which attach directly to the
 	  bus. If you have one of those, say Y and read the Ethernet-HOWTO,
@@ -1357,6 +1353,7 @@ config AMD8111_ETH
 	  To compile this driver as a module, choose M here and read
 	  <file:Documentation/networking/net-modules.txt>. The module
 	  will be called amd8111e.
+
 config AMD8111E_NAPI
 	bool "Enable NAPI support"
 	depends on AMD8111_ETH
@@ -1822,7 +1819,7 @@ config SC92031
 
 config NET_POCKET
 	bool "Pocket and portable adapters"
-	depends on NET_ETHERNET && PARPORT
+	depends on PARPORT
 	---help---
 	  Cute little network (Ethernet) devices which attach to the parallel
 	  port ("pocket adapters"), commonly used with laptops. If you have
@@ -1891,14 +1888,14 @@ config DE620
 
 config SGISEEQ
 	tristate "SGI Seeq ethernet controller support"
-	depends on NET_ETHERNET && SGI_IP22
+	depends on SGI_IP22
 	help
 	  Say Y here if you have an Seeq based Ethernet network card. This is
 	  used in many Silicon Graphics machines.
 
 config DECLANCE
 	tristate "DEC LANCE ethernet controller support"
-	depends on NET_ETHERNET && MACH_DECSTATION
+	depends on MACH_DECSTATION
 	select CRC32
 	help
 	  This driver is for the series of Ethernet controllers produced by
@@ -1928,7 +1925,7 @@ config FEC2
 
 config NE_H8300
 	tristate "NE2000 compatible support for H8/300"
-	depends on H8300 && NET_ETHERNET
+	depends on H8300
 	help
 	  Say Y here if you want to use the NE2000 compatible
 	  controller on the Renesas H8/300 processor.
@@ -1936,7 +1933,7 @@ config NE_H8300
 source "drivers/net/fec_8xx/Kconfig"
 source "drivers/net/fs_enet/Kconfig"
 
-endmenu
+endif # NET_ETHERNET
 
 #
 #	Gigabit Ethernet
@@ -3009,8 +3006,6 @@ config NETCONSOLE
 	If you want to log kernel messages over the network, enable this.
 	See <file:Documentation/networking/netconsole.txt> for details.
 
-endif #NETDEVICES
-
 config NETPOLL
 	def_bool NETCONSOLE
 
@@ -3027,4 +3022,4 @@ config NETPOLL_TRAP
 config NET_POLL_CONTROLLER
 	def_bool NETPOLL
 
-endmenu
+endif # NETDEVICES
--- linux-2.6.21-mm_20070428.orig/drivers/net/arm/Kconfig
+++ linux-2.6.21-mm_20070428/drivers/net/arm/Kconfig
@@ -4,7 +4,7 @@
 #
 config ARM_AM79C961A
 	bool "ARM EBSA110 AM79C961A support"
-	depends on NET_ETHERNET && ARM && ARCH_EBSA110
+	depends on ARM && ARCH_EBSA110
 	select CRC32
 	help
 	  If you wish to compile a kernel for the EBSA-110, then you should
@@ -12,21 +12,21 @@ config ARM_AM79C961A
 
 config ARM_ETHER1
 	tristate "Acorn Ether1 support"
-	depends on NET_ETHERNET && ARM && ARCH_ACORN
+	depends on ARM && ARCH_ACORN
 	help
 	  If you have an Acorn system with one of these (AKA25) network cards,
 	  you should say Y to this option if you wish to use it with Linux.
 
 config ARM_ETHER3
 	tristate "Acorn/ANT Ether3 support"
-	depends on NET_ETHERNET && ARM && ARCH_ACORN
+	depends on ARM && ARCH_ACORN
 	help
 	  If you have an Acorn system with one of these network cards, you
 	  should say Y to this option if you wish to use it with Linux.
 
 config ARM_ETHERH
 	tristate "I-cubed EtherH/ANT EtherM support"
-	depends on NET_ETHERNET && ARM && ARCH_ACORN
+	depends on ARM && ARCH_ACORN
 	select CRC32
 	help
 	  If you have an Acorn system with one of these network cards, you
@@ -34,7 +34,7 @@ config ARM_ETHERH
 
 config ARM_AT91_ETHER
 	tristate "AT91RM9200 Ethernet support"
-	depends on NET_ETHERNET && ARM && ARCH_AT91RM9200
+	depends on ARM && ARCH_AT91RM9200
 	select MII
 	help
 	  If you wish to compile a kernel for the AT91RM9200 and enable
@@ -42,7 +42,7 @@ config ARM_AT91_ETHER
 
 config EP93XX_ETH
 	tristate "EP93xx Ethernet support"
-	depends on NET_ETHERNET && ARM && ARCH_EP93XX
+	depends on ARM && ARCH_EP93XX
 	help
 	  This is a driver for the ethernet hardware included in EP93xx CPUs.
 	  Say Y if you are building a kernel for EP93xx based devices.
--- linux-2.6.21-mm_20070428.orig/drivers/net/fec_8xx/Kconfig
+++ linux-2.6.21-mm_20070428/drivers/net/fec_8xx/Kconfig
@@ -1,6 +1,6 @@
 config FEC_8XX
 	tristate "Motorola 8xx FEC driver"
-	depends on NET_ETHERNET && 8xx
+	depends on 8XX
 	select MII
 
 config FEC_8XX_GENERIC_PHY
--- linux-2.6.21-mm_20070428.orig/drivers/net/fs_enet/Kconfig
+++ linux-2.6.21-mm_20070428/drivers/net/fs_enet/Kconfig
@@ -1,6 +1,6 @@
 config FS_ENET
        tristate "Freescale Ethernet Driver"
-       depends on NET_ETHERNET && (CPM1 || CPM2)
+       depends on CPM1 || CPM2
        select MII
 
 config FS_ENET_HAS_SCC
--- linux-2.6.21-mm_20070428.orig/drivers/net/tulip/Kconfig
+++ linux-2.6.21-mm_20070428/drivers/net/tulip/Kconfig
@@ -2,17 +2,17 @@
 # Tulip family network device configuration
 #
 
-menu "Tulip family network device support"
-	depends on NET_ETHERNET && (PCI || EISA || CARDBUS)
-
-config NET_TULIP
+menuconfig NET_TULIP
 	bool "\"Tulip\" family network device support"
+	depends on PCI || EISA || CARDBUS
 	help
 	  This selects the "Tulip" family of EISA/PCI network cards.
 
+if NET_TULIP
+
 config DE2104X
 	tristate "Early DECchip Tulip (dc2104x) PCI support (EXPERIMENTAL)"
-	depends on NET_TULIP && PCI && EXPERIMENTAL
+	depends on PCI && EXPERIMENTAL
 	select CRC32
 	---help---
 	  This driver is developed for the SMC EtherPower series Ethernet
@@ -30,7 +30,7 @@ config DE2104X
 
 config TULIP
 	tristate "DECchip Tulip (dc2114x) PCI support"
-	depends on NET_TULIP && PCI
+	depends on PCI
 	select CRC32
 	---help---
 	  This driver is developed for the SMC EtherPower series Ethernet
@@ -95,7 +95,7 @@ config TULIP_NAPI_HW_MITIGATION
 
 config DE4X5
 	tristate "Generic DECchip & DIGITAL EtherWORKS PCI/EISA"
-	depends on NET_TULIP && (PCI || EISA)
+	depends on PCI || EISA
 	select CRC32
 	---help---
 	  This is support for the DIGITAL series of PCI/EISA Ethernet cards.
@@ -112,7 +112,7 @@ config DE4X5
 
 config WINBOND_840
 	tristate "Winbond W89c840 Ethernet support"
-	depends on NET_TULIP && PCI
+	depends on PCI
 	select CRC32
 	select MII
 	help
@@ -123,7 +123,7 @@ config WINBOND_840
 
 config DM9102
 	tristate "Davicom DM910x/DM980x support"
-	depends on NET_TULIP && PCI
+	depends on PCI
 	select CRC32
 	---help---
 	  This driver is for DM9102(A)/DM9132/DM9801 compatible PCI cards from
@@ -137,7 +137,7 @@ config DM9102
 
 config ULI526X
 	tristate "ULi M526x controller support"
-	depends on NET_TULIP && PCI
+	depends on PCI
 	select CRC32
 	---help---
 	  This driver is for ULi M5261/M5263 10/100M Ethernet Controller
@@ -149,7 +149,7 @@ config ULI526X
 	  
 config PCMCIA_XIRCOM
 	tristate "Xircom CardBus support (new driver)"
-	depends on NET_TULIP && CARDBUS
+	depends on CARDBUS
 	---help---
 	  This driver is for the Digital "Tulip" Ethernet CardBus adapters.
 	  It should work with most DEC 21*4*-based chips/ethercards, as well
@@ -162,7 +162,7 @@ config PCMCIA_XIRCOM
 
 config PCMCIA_XIRTULIP
 	tristate "Xircom Tulip-like CardBus support (old driver)"
-	depends on NET_TULIP && CARDBUS && BROKEN_ON_SMP
+	depends on CARDBUS && BROKEN_ON_SMP
 	select CRC32
 	---help---
 	  This driver is for the Digital "Tulip" Ethernet CardBus adapters.
@@ -174,5 +174,4 @@ config PCMCIA_XIRTULIP
 	  <file:Documentation/networking/net-modules.txt>.  The module will
 	  be called xircom_tulip_cb.  If unsure, say N.
 
-endmenu
-
+endif # NET_TULIP

^ permalink raw reply	[flat|nested] 70+ messages in thread

* [PATCH 21/36] Use menuconfig objects II - netdev/atm
  2007-04-30 11:03 [PATCH 00/36] Use menuconfig objects II - (overview) Jan Engelhardt
                   ` (19 preceding siblings ...)
  2007-04-30 11:43 ` [PATCH 20/36] Use menuconfig objects II - netdev (general+100mbit) Jan Engelhardt
@ 2007-04-30 11:44 ` Jan Engelhardt
  2007-04-30 11:45 ` [PATCH 22/36] Use menuconfig objects II - netdev/pcmcia Jan Engelhardt
                   ` (14 subsequent siblings)
  35 siblings, 0 replies; 70+ messages in thread
From: Jan Engelhardt @ 2007-04-30 11:44 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Linux Kernel Mailing List, netdev, Jeff Garzik


Make a "menuconfig" out of the Kconfig objects "menu, ..., endmenu",
so that the user can disable all the options in that menu at once
instead of having to disable each option separately.

Signed-off-by: Jan Engelhardt <jengelh@gmx.de>

---
 drivers/atm/Kconfig |   32 +++++++++++++++++---------------
 1 file changed, 17 insertions(+), 15 deletions(-)

--- linux-2.6.21-mm_20070428.orig/drivers/atm/Kconfig
+++ linux-2.6.21-mm_20070428/drivers/atm/Kconfig
@@ -2,19 +2,22 @@
 # ATM device configuration
 #
 
-menu "ATM drivers"
+menuconfig ATM_DRIVERS
+	bool "ATM drivers"
 	depends on NETDEVICES && ATM
+	default y
+
+if ATM_DRIVERS
 
 config ATM_DUMMY
 	tristate "Dummy ATM driver"
-	depends on ATM
 	help
 	  Dummy ATM driver. Useful for proxy signalling, testing,
 	  and development.  If unsure, say N.
 
 config ATM_TCP
 	tristate "ATM over TCP"
-	depends on INET && ATM
+	depends on INET
 	help
 	  ATM over TCP driver. Useful mainly for development and for
 	  experiments. If unsure, say N.
@@ -30,7 +33,7 @@ config ATM_LANAI
 
 config ATM_ENI
 	tristate "Efficient Networks ENI155P"
-	depends on PCI && ATM
+	depends on PCI
 	---help---
 	  Driver for the Efficient Networks ENI155p series and SMC ATM
 	  Power155 155 Mbps ATM adapters. Both, the versions with 512KB and
@@ -139,7 +142,7 @@ config ATM_ENI_BURST_RX_2W
 
 config ATM_FIRESTREAM
 	tristate "Fujitsu FireStream (FS50/FS155) "
-	depends on PCI && ATM
+	depends on PCI
 	help
 	  Driver for the Fujitsu FireStream 155 (MB86697) and
 	  FireStream 50 (MB86695) ATM PCI chips.
@@ -149,7 +152,7 @@ config ATM_FIRESTREAM
 
 config ATM_ZATM
 	tristate "ZeitNet ZN1221/ZN1225"
-	depends on PCI && ATM
+	depends on PCI
 	help
 	  Driver for the ZeitNet ZN1221 (MMF) and ZN1225 (UTP-5) 155 Mbps ATM
 	  adapters.
@@ -169,7 +172,7 @@ config ATM_ZATM_DEBUG
 
 config ATM_NICSTAR
 	tristate "IDT 77201 (NICStAR) (ForeRunnerLE)"
-	depends on PCI && ATM && !64BIT
+	depends on PCI && !64BIT
 	help
 	  The NICStAR chipset family is used in a large number of ATM NICs for
 	  25 and for 155 Mbps, including IDT cards and the Fore ForeRunnerLE
@@ -202,7 +205,7 @@ config ATM_NICSTAR_USE_IDT77105
 
 config ATM_IDT77252
 	tristate "IDT 77252 (NICStAR II)"
-	depends on PCI && ATM
+	depends on PCI
 	help
 	  Driver for the IDT 77252 ATM PCI chips.
 
@@ -237,7 +240,7 @@ config ATM_IDT77252_USE_SUNI
 
 config ATM_AMBASSADOR
 	tristate "Madge Ambassador (Collage PCI 155 Server)"
-	depends on PCI && ATM
+	depends on PCI
 	select BITREVERSE
 	help
 	  This is a driver for ATMizer based ATM card produced by Madge
@@ -262,7 +265,7 @@ config ATM_AMBASSADOR_DEBUG
 
 config ATM_HORIZON
 	tristate "Madge Horizon [Ultra] (Collage PCI 25 and Collage PCI 155 Client)"
-	depends on PCI && ATM
+	depends on PCI
 	help
 	  This is a driver for the Horizon chipset ATM adapter cards once
 	  produced by Madge Networks Ltd. Say Y (or M to compile as a module
@@ -286,7 +289,7 @@ config ATM_HORIZON_DEBUG
 
 config ATM_IA
 	tristate "Interphase ATM PCI x575/x525/x531"
-	depends on PCI && ATM && !64BIT
+	depends on PCI && !64BIT
 	---help---
 	  This is a driver for the Interphase (i)ChipSAR adapter cards
 	  which include a variety of variants in term of the size of the
@@ -319,7 +322,7 @@ config ATM_IA_DEBUG
 
 config ATM_FORE200E_MAYBE
 	tristate "FORE Systems 200E-series"
-	depends on (PCI || SBUS) && ATM
+	depends on PCI || SBUS
 	---help---
 	  This is a driver for the FORE Systems 200E-series ATM adapter
 	  cards. It simultaneously supports PCA-200E and SBA-200E models
@@ -436,7 +439,7 @@ config ATM_FORE200E
 
 config ATM_HE
 	tristate "ForeRunner HE Series"
-	depends on PCI && ATM
+	depends on PCI
 	help
 	  This is a driver for the Marconi ForeRunner HE-series ATM adapter
 	  cards. It simultaneously supports the 155 and 622 versions.
@@ -448,5 +451,4 @@ config ATM_HE_USE_SUNI
 	  Support for the S/UNI-Ultra and S/UNI-622 found in the ForeRunner
 	  HE cards.  This driver provides carrier detection some statistics.
 
-endmenu
-
+endif # ATM

^ permalink raw reply	[flat|nested] 70+ messages in thread

* [PATCH 22/36] Use menuconfig objects II - netdev/pcmcia
  2007-04-30 11:03 [PATCH 00/36] Use menuconfig objects II - (overview) Jan Engelhardt
                   ` (20 preceding siblings ...)
  2007-04-30 11:44 ` [PATCH 21/36] Use menuconfig objects II - netdev/atm Jan Engelhardt
@ 2007-04-30 11:45 ` Jan Engelhardt
  2007-04-30 11:45 ` [PATCH 23/36] Use menuconfig objects II - netdev/wan Jan Engelhardt
                   ` (13 subsequent siblings)
  35 siblings, 0 replies; 70+ messages in thread
From: Jan Engelhardt @ 2007-04-30 11:45 UTC (permalink / raw)
  To: Andrew Morton
  Cc: Linux Kernel Mailing List, Jeff Garzik, netdev, linux-pcmcia


Change Kconfig objects from "menu, config" into "menuconfig" so
that the user can disable the whole feature without having to
enter the menu first.

Signed-off-by: Jan Engelhardt <jengelh@gmx.de>

---
 drivers/net/pcmcia/Kconfig |   23 +++++++----------------
 1 file changed, 7 insertions(+), 16 deletions(-)

--- linux-2.6.21-mm_20070428.orig/drivers/net/pcmcia/Kconfig
+++ linux-2.6.21-mm_20070428/drivers/net/pcmcia/Kconfig
@@ -2,11 +2,9 @@
 # PCMCIA Network device configuration
 #
 
-menu "PCMCIA network device support"
-	depends on NETDEVICES && PCMCIA!=n
-
-config NET_PCMCIA
+menuconfig NET_PCMCIA
 	bool "PCMCIA network device support"
+	depends on PCMCIA
 	---help---
 	  Say Y if you would like to include support for any PCMCIA or CardBus
 	  network adapters, then say Y to the driver for your particular card
@@ -21,9 +19,10 @@ config NET_PCMCIA
 
 	  If unsure, say N.
 
+if NET_PCMCIA
+
 config PCMCIA_3C589
 	tristate "3Com 3c589 PCMCIA support"
-	depends on NET_PCMCIA && PCMCIA
 	help
 	  Say Y here if you intend to attach a 3Com 3c589 or compatible PCMCIA
 	  (PC-card) Ethernet card to your computer.
@@ -33,7 +32,6 @@ config PCMCIA_3C589
 
 config PCMCIA_3C574
 	tristate "3Com 3c574 PCMCIA support"
-	depends on NET_PCMCIA && PCMCIA
 	help
 	  Say Y here if you intend to attach a 3Com 3c574 or compatible PCMCIA
 	  (PC-card) Fast Ethernet card to your computer.
@@ -43,7 +41,6 @@ config PCMCIA_3C574
 
 config PCMCIA_FMVJ18X
 	tristate "Fujitsu FMV-J18x PCMCIA support"
-	depends on NET_PCMCIA && PCMCIA
 	select CRC32
 	help
 	  Say Y here if you intend to attach a Fujitsu FMV-J18x or compatible
@@ -54,7 +51,6 @@ config PCMCIA_FMVJ18X
 
 config PCMCIA_PCNET
 	tristate "NE2000 compatible PCMCIA support"
-	depends on NET_PCMCIA && PCMCIA
 	select CRC32
 	help
 	  Say Y here if you intend to attach an NE2000 compatible PCMCIA
@@ -65,7 +61,6 @@ config PCMCIA_PCNET
 
 config PCMCIA_NMCLAN
 	tristate "New Media PCMCIA support"
-	depends on NET_PCMCIA && PCMCIA
 	help
 	  Say Y here if you intend to attach a New Media Ethernet or LiveWire
 	  PCMCIA (PC-card) Ethernet card to your computer.
@@ -75,7 +70,6 @@ config PCMCIA_NMCLAN
 
 config PCMCIA_SMC91C92
 	tristate "SMC 91Cxx PCMCIA support"
-	depends on NET_PCMCIA && PCMCIA
 	select CRC32
 	select MII
 	help
@@ -87,7 +81,6 @@ config PCMCIA_SMC91C92
 
 config PCMCIA_XIRC2PS
 	tristate "Xircom 16-bit PCMCIA support"
-	depends on NET_PCMCIA && PCMCIA
 	help
 	  Say Y here if you intend to attach a Xircom 16-bit PCMCIA (PC-card)
 	  Ethernet or Fast Ethernet card to your computer.
@@ -97,7 +90,6 @@ config PCMCIA_XIRC2PS
 
 config PCMCIA_AXNET
 	tristate "Asix AX88190 PCMCIA support"
-	depends on NET_PCMCIA && PCMCIA
 	---help---
 	  Say Y here if you intend to attach an Asix AX88190-based PCMCIA
 	  (PC-card) Fast Ethernet card to your computer.  These cards are
@@ -109,7 +101,7 @@ config PCMCIA_AXNET
 
 config ARCNET_COM20020_CS
 	tristate "COM20020 ARCnet PCMCIA support"
-	depends on NET_PCMCIA && ARCNET_COM20020 && PCMCIA
+	depends on ARCNET_COM20020
 	help
 	  Say Y here if you intend to attach this type of ARCnet PCMCIA card
 	  to your computer.
@@ -119,7 +111,7 @@ config ARCNET_COM20020_CS
 
 config PCMCIA_IBMTR
 	tristate "IBM PCMCIA tokenring adapter support"
-	depends on NET_PCMCIA && IBMTR!=y && TR && PCMCIA && !64BIT
+	depends on IBMTR!=y && TR && !64BIT
 	help
 	  Say Y here if you intend to attach this type of Token Ring PCMCIA
 	  card to your computer. You then also need to say Y to "Token Ring
@@ -128,5 +120,4 @@ config PCMCIA_IBMTR
 	  To compile this driver as a module, choose M here: the module will be
 	  called ibmtr_cs.
 
-endmenu
-
+endif # NET_PCMCIA

^ permalink raw reply	[flat|nested] 70+ messages in thread

* [PATCH 23/36] Use menuconfig objects II - netdev/wan
  2007-04-30 11:03 [PATCH 00/36] Use menuconfig objects II - (overview) Jan Engelhardt
                   ` (21 preceding siblings ...)
  2007-04-30 11:45 ` [PATCH 22/36] Use menuconfig objects II - netdev/pcmcia Jan Engelhardt
@ 2007-04-30 11:45 ` Jan Engelhardt
  2007-05-01 20:04   ` Krzysztof Halasa
  2007-04-30 11:46 ` [PATCH 24/36] Use menuconfig objects II - oprofile Jan Engelhardt
                   ` (12 subsequent siblings)
  35 siblings, 1 reply; 70+ messages in thread
From: Jan Engelhardt @ 2007-04-30 11:45 UTC (permalink / raw)
  To: Krzysztof Halasa; +Cc: Linux Kernel Mailing List, Andrew Morton, netdev


Change Kconfig objects from "menu, config" into "menuconfig" so
that the user can disable the whole feature without having to
enter the menu first.

Signed-off-by: Jan Engelhardt <jengelh@gmx.de>

---
 drivers/net/wan/Kconfig |   34 +++++++++++++++-------------------
 1 file changed, 15 insertions(+), 19 deletions(-)

--- linux-2.6.21-mm_20070428.orig/drivers/net/wan/Kconfig
+++ linux-2.6.21-mm_20070428/drivers/net/wan/Kconfig
@@ -2,10 +2,7 @@
 # wan devices configuration
 #
 
-menu "Wan interfaces"
-	depends on NETDEVICES
-
-config WAN
+menuconfig WAN
 	bool "Wan interfaces support"
 	---help---
 	  Wide Area Networks (WANs), such as X.25, Frame Relay and leased
@@ -23,10 +20,12 @@ config WAN
 
 	  If unsure, say N.
 
+if WAN
+
 # There is no way to detect a comtrol sv11 - force it modular for now.
 config HOSTESS_SV11
 	tristate "Comtrol Hostess SV-11 support"
-	depends on WAN && ISA && m && ISA_DMA_API && INET
+	depends on ISA && m && ISA_DMA_API && INET
 	help
 	  Driver for Comtrol Hostess SV-11 network card which
 	  operates on low speed synchronous serial links at up to
@@ -38,7 +37,7 @@ config HOSTESS_SV11
 # The COSA/SRP driver has not been tested as non-modular yet.
 config COSA
 	tristate "COSA/SRP sync serial boards support"
-	depends on WAN && ISA && m && ISA_DMA_API
+	depends on ISA && m && ISA_DMA_API
 	---help---
 	  Driver for COSA and SRP synchronous serial boards.
 
@@ -62,7 +61,7 @@ config COSA
 #
 config LANMEDIA
 	tristate "LanMedia Corp. SSI/V.35, T1/E1, HSSI, T3 boards"
-	depends on WAN && PCI
+	depends on PCI
 	---help---
 	  Driver for the following Lan Media family of serial boards:
 
@@ -89,7 +88,7 @@ config LANMEDIA
 # There is no way to detect a Sealevel board. Force it modular
 config SEALEVEL_4021
 	tristate "Sealevel Systems 4021 support"
-	depends on WAN && ISA && m && ISA_DMA_API && INET
+	depends on ISA && m && ISA_DMA_API && INET
 	help
 	  This is a driver for the Sealevel Systems ACB 56 serial I/O adapter.
 
@@ -99,7 +98,6 @@ config SEALEVEL_4021
 # Generic HDLC
 config HDLC
 	tristate "Generic HDLC layer"
-	depends on WAN
 	help
 	  Say Y to this option if your Linux box contains a WAN (Wide Area
 	  Network) card supported by this driver and you are planning to
@@ -167,7 +165,7 @@ config HDLC_X25
 	  If unsure, say N.
 
 comment "X.25/LAPB support is disabled"
-	depends on WAN && HDLC && (LAPB!=m || HDLC!=m) && LAPB!=y
+	depends on HDLC && (LAPB!=m || HDLC!=m) && LAPB!=y
 
 config PCI200SYN
 	tristate "Goramo PCI200SYN support"
@@ -230,10 +228,10 @@ config PC300_MLPPP
 	  Multilink PPP over the PC300 synchronous communication boards.
 
 comment "Cyclades-PC300 MLPPP support is disabled."
-	depends on WAN && HDLC && PC300 && (PPP=n || !PPP_MULTILINK || PPP_SYNC_TTY=n || !HDLC_PPP)
+	depends on HDLC && PC300 && (PPP=n || !PPP_MULTILINK || PPP_SYNC_TTY=n || !HDLC_PPP)
 
 comment "Refer to the file README.mlppp, provided by PC300 package."
-	depends on WAN && HDLC && PC300 && (PPP=n || !PPP_MULTILINK || PPP_SYNC_TTY=n || !HDLC_PPP)
+	depends on HDLC && PC300 && (PPP=n || !PPP_MULTILINK || PPP_SYNC_TTY=n || !HDLC_PPP)
 
 config PC300TOO
 	tristate "Cyclades PC300 RSV/X21 alternative support"
@@ -338,7 +336,6 @@ config DSCC4_PCI_RST
 
 config DLCI
 	tristate "Frame Relay DLCI support"
-	depends on WAN
 	---help---
 	  Support for the Frame Relay protocol.
 
@@ -385,7 +382,7 @@ config SDLA
 # Wan router core.
 config WAN_ROUTER_DRIVERS
 	tristate "WAN router drivers"
-	depends on WAN && WAN_ROUTER
+	depends on WAN_ROUTER
 	---help---
 	  Connect LAN to WAN via Linux box.
 
@@ -440,7 +437,7 @@ config CYCLOMX_X25
 # X.25 network drivers
 config LAPBETHER
 	tristate "LAPB over Ethernet driver (EXPERIMENTAL)"
-	depends on WAN && LAPB && X25
+	depends on LAPB && X25
 	---help---
 	  Driver for a pseudo device (typically called /dev/lapb0) which allows
 	  you to open an LAPB point-to-point connection to some other computer
@@ -456,7 +453,7 @@ config LAPBETHER
 
 config X25_ASY
 	tristate "X.25 async driver (EXPERIMENTAL)"
-	depends on WAN && LAPB && X25
+	depends on LAPB && X25
 	---help---
 	  Send and receive X.25 frames over regular asynchronous serial
 	  lines such as telephone lines equipped with ordinary modems.
@@ -471,7 +468,7 @@ config X25_ASY
 
 config SBNI
 	tristate "Granch SBNI12 Leased Line adapter support"
-	depends on WAN && X86
+	depends on X86
 	---help---
 	  Driver for ISA SBNI12-xx cards which are low cost alternatives to
 	  leased line modems.
@@ -497,5 +494,4 @@ config SBNI_MULTILINE
 
 	  If unsure, say N.
 
-endmenu
-
+endif # WAN

^ permalink raw reply	[flat|nested] 70+ messages in thread

* [PATCH 24/36] Use menuconfig objects II - oprofile
  2007-04-30 11:03 [PATCH 00/36] Use menuconfig objects II - (overview) Jan Engelhardt
                   ` (22 preceding siblings ...)
  2007-04-30 11:45 ` [PATCH 23/36] Use menuconfig objects II - netdev/wan Jan Engelhardt
@ 2007-04-30 11:46 ` Jan Engelhardt
  2007-04-30 11:48 ` [PATCH 25/36] Use menuconfig objects II - (external_)power Jan Engelhardt
                   ` (11 subsequent siblings)
  35 siblings, 0 replies; 70+ messages in thread
From: Jan Engelhardt @ 2007-04-30 11:46 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Linux Kernel Mailing List


Make a "menuconfig" out of the Kconfig objects "menu, ..., endmenu",
so that the user can disable all the options in that menu at once
instead of having to disable each option separately.

Signed-off-by: Jan Engelhardt <jengelh@gmx.de>

---
 arch/i386/Kconfig |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

--- linux-2.6.21-mm_20070428.orig/arch/i386/Kconfig
+++ linux-2.6.21-mm_20070428/arch/i386/Kconfig
@@ -1210,8 +1210,12 @@ source "drivers/Kconfig"
 
 source "fs/Kconfig"
 
-menu "Instrumentation Support"
+menuconfig INSTRUMENTATION
+	bool "Instrumentation Support"
 	depends on EXPERIMENTAL
+	default y
+
+if INSTRUMENTATION
 
 source "arch/i386/oprofile/Kconfig"
 
@@ -1227,7 +1231,7 @@ config KPROBES
 
 source "kernel/Kconfig.marker"
 
-endmenu
+endif # INSTRUMENTATION
 
 source "arch/i386/Kconfig.debug"
 

^ permalink raw reply	[flat|nested] 70+ messages in thread

* [PATCH 25/36] Use menuconfig objects II - (external_)power
  2007-04-30 11:03 [PATCH 00/36] Use menuconfig objects II - (overview) Jan Engelhardt
                   ` (23 preceding siblings ...)
  2007-04-30 11:46 ` [PATCH 24/36] Use menuconfig objects II - oprofile Jan Engelhardt
@ 2007-04-30 11:48 ` Jan Engelhardt
  2007-04-30 11:49 ` [PATCH 26/36] Use menuconfig objects II - RTC Jan Engelhardt
                   ` (10 subsequent siblings)
  35 siblings, 0 replies; 70+ messages in thread
From: Jan Engelhardt @ 2007-04-30 11:48 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Linux Kernel Mailing List, Anton Vorontsov


Change Kconfig objects from "menu, config" into "menuconfig" so
that the user can disable the whole feature without having to
enter the menu first.

Signed-off-by: Jan Engelhardt <jengelh@gmx.de>

---
 drivers/power/Kconfig |    9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

--- linux-2.6.21-mm_20070428.orig/drivers/power/Kconfig
+++ linux-2.6.21-mm_20070428/drivers/power/Kconfig
@@ -1,7 +1,5 @@
 
-menu "External power support"
-
-config EXTERNAL_POWER
+menuconfig EXTERNAL_POWER
 	tristate "External power kernel interface"
 	help
 	  Say Y here to enable kernel external power detection interface,
@@ -10,12 +8,13 @@ config EXTERNAL_POWER
 
 	  This interface is mandatory for battery class support.
 
+if EXTERNAL_POWER
+
 config PDA_POWER
 	tristate "Generic PDA/phone power driver"
-	depends on EXTERNAL_POWER
 	help
 	  Say Y here to enable generic power driver for PDAs and phones with
 	  one or two external power supplies (AC/USB) connected to main and
 	  backup batteries, and optional builtin charger.
 
-endmenu
+endif # EXTERNAL_POWER

^ permalink raw reply	[flat|nested] 70+ messages in thread

* [PATCH 26/36] Use menuconfig objects II - RTC
  2007-04-30 11:03 [PATCH 00/36] Use menuconfig objects II - (overview) Jan Engelhardt
                   ` (24 preceding siblings ...)
  2007-04-30 11:48 ` [PATCH 25/36] Use menuconfig objects II - (external_)power Jan Engelhardt
@ 2007-04-30 11:49 ` Jan Engelhardt
  2007-04-30 11:50 ` [PATCH 27/36] Use menuconfig objects II - SCSI Jan Engelhardt
                   ` (9 subsequent siblings)
  35 siblings, 0 replies; 70+ messages in thread
From: Jan Engelhardt @ 2007-04-30 11:49 UTC (permalink / raw)
  To: Alessandro Zummo; +Cc: Linux Kernel Mailing List, rtc-linux, Andrew Morton


Change Kconfig objects from "menu, config" into "menuconfig" so
that the user can disable the whole feature without having to
enter the menu first.

Signed-off-by: Jan Engelhardt <jengelh@gmx.de>

---
 drivers/rtc/Kconfig |   69 +++++++++++++++++++++-------------------------------
 1 file changed, 28 insertions(+), 41 deletions(-)

--- linux-2.6.21-mm_20070428.orig/drivers/rtc/Kconfig
+++ linux-2.6.21-mm_20070428/drivers/rtc/Kconfig
@@ -2,13 +2,11 @@
 # RTC class/drivers configuration
 #
 
-menu "Real Time Clock"
-
 config RTC_LIB
 	tristate
 
-config RTC_CLASS
-	tristate "RTC class"
+menuconfig RTC_CLASS
+	tristate "Real Time Clock class"
 	depends on EXPERIMENTAL
 	default n
 	select RTC_LIB
@@ -20,6 +18,8 @@ config RTC_CLASS
 	  This driver can also be built as a module. If so, the module
 	  will be called rtc-class.
 
+if RTC_CLASS
+
 config RTC_HCTOSYS
 	bool "Set system time from RTC on startup and resume"
 	depends on RTC_CLASS = y
@@ -55,11 +55,10 @@ config RTC_DEBUG
 	  and individual RTC drivers.
 
 comment "RTC interfaces"
-	depends on RTC_CLASS
 
 config RTC_INTF_SYSFS
 	boolean "sysfs"
-	depends on RTC_CLASS && SYSFS
+	depends on SYSFS
 	default RTC_CLASS
 	help
 	  Say yes here if you want to use your RTCs using sysfs interfaces,
@@ -70,7 +69,7 @@ config RTC_INTF_SYSFS
 
 config RTC_INTF_PROC
 	boolean "proc"
-	depends on RTC_CLASS && PROC_FS
+	depends on PROC_FS
 	default RTC_CLASS
 	help
 	  Say yes here if you want to use your first RTC through the proc
@@ -82,7 +81,6 @@ config RTC_INTF_PROC
 
 config RTC_INTF_DEV
 	boolean "dev"
-	depends on RTC_CLASS
 	default RTC_CLASS
 	help
 	  Say yes here if you want to use your RTCs using the /dev
@@ -104,7 +102,6 @@ config RTC_INTF_DEV_UIE_EMUL
 
 config RTC_DRV_TEST
 	tristate "Test driver/device"
-	depends on RTC_CLASS
 	help
 	  If you say yes here you get support for the
 	  RTC test driver. It's a software RTC which can be
@@ -118,11 +115,10 @@ config RTC_DRV_TEST
 	  will be called rtc-test.
 
 comment "I2C RTC drivers"
-	depends on RTC_CLASS
 
 config RTC_DRV_DS1307
 	tristate "Dallas/Maxim DS1307/37/38/39/40, ST M41T00"
-	depends on RTC_CLASS && I2C
+	depends on I2C
 	help
 	  If you say yes here you get support for various compatible RTC
 	  chips (often with battery backup) connected with I2C.  This driver
@@ -140,7 +136,7 @@ config RTC_DRV_DS1307
 
 config RTC_DRV_DS1672
 	tristate "Dallas/Maxim DS1672"
-	depends on RTC_CLASS && I2C
+	depends on I2C
 	help
 	  If you say yes here you get support for the
 	  Dallas/Maxim DS1672 timekeeping chip.
@@ -150,7 +146,7 @@ config RTC_DRV_DS1672
 
 config RTC_DRV_MAX6900
 	tristate "Maxim 6900"
-	depends on RTC_CLASS && I2C
+	depends on I2C
 	help
 	  If you say yes here you will get support for the
 	  Maxim MAX6900 I2C RTC chip.
@@ -160,7 +156,7 @@ config RTC_DRV_MAX6900
 
 config RTC_DRV_RS5C372
 	tristate "Ricoh RS5C372A/B"
-	depends on RTC_CLASS && I2C
+	depends on I2C
 	help
 	  If you say yes here you get support for the
 	  Ricoh RS5C372A and RS5C372B RTC chips.
@@ -170,7 +166,7 @@ config RTC_DRV_RS5C372
 
 config RTC_DRV_ISL1208
 	tristate "Intersil 1208"
-	depends on RTC_CLASS && I2C
+	depends on I2C
 	help
 	  If you say yes here you get support for the
 	  Intersil 1208 RTC chip.
@@ -180,7 +176,7 @@ config RTC_DRV_ISL1208
 
 config RTC_DRV_X1205
 	tristate "Xicor/Intersil X1205"
-	depends on RTC_CLASS && I2C
+	depends on I2C
 	help
 	  If you say yes here you get support for the
 	  Xicor/Intersil X1205 RTC chip.
@@ -190,7 +186,7 @@ config RTC_DRV_X1205
 
 config RTC_DRV_PCF8563
 	tristate "Philips PCF8563/Epson RTC8564"
-	depends on RTC_CLASS && I2C
+	depends on I2C
 	help
 	  If you say yes here you get support for the
 	  Philips PCF8563 RTC chip. The Epson RTC8564
@@ -201,7 +197,7 @@ config RTC_DRV_PCF8563
 
 config RTC_DRV_PCF8583
 	tristate "Philips PCF8583"
-	depends on RTC_CLASS && I2C
+	depends on I2C
 	help
 	  If you say yes here you get support for the Philips PCF8583
 	  RTC chip found on Acorn RiscPCs. This driver supports the
@@ -213,11 +209,10 @@ config RTC_DRV_PCF8583
 	  will be called rtc-pcf8583.
 
 comment "SPI RTC drivers"
-	depends on RTC_CLASS
 
 config RTC_DRV_RS5C348
 	tristate "Ricoh RS5C348A/B"
-	depends on RTC_CLASS && SPI
+	depends on SPI
 	help
 	  If you say yes here you get support for the
 	  Ricoh RS5C348A and RS5C348B RTC chips.
@@ -227,7 +222,7 @@ config RTC_DRV_RS5C348
 
 config RTC_DRV_MAX6902
 	tristate "Maxim 6902"
-	depends on RTC_CLASS && SPI
+	depends on SPI
 	help
 	  If you say yes here you will get support for the
 	  Maxim MAX6902 SPI RTC chip.
@@ -236,7 +231,6 @@ config RTC_DRV_MAX6902
 	  will be called rtc-max6902.
 
 comment "Platform RTC drivers"
-	depends on RTC_CLASS
 
 # this 'CMOS' RTC driver is arch dependent because <asm-generic/rtc.h>
 # requires <asm/mc146818rtc.h> defining CMOS_READ/CMOS_WRITE, and a
@@ -244,8 +238,7 @@ comment "Platform RTC drivers"
 
 config RTC_DRV_CMOS
 	tristate "PC-style 'CMOS'"
-	depends on RTC_CLASS && (X86 || ALPHA || ARM26 || ARM \
-		|| M32R || ATARI || POWERPC)
+	depends on X86 || ALPHA || ARM26 || ARM || M32R || ATARI || POWERPC
 	help
 	  Say "yes" here to get direct support for the real time clock
 	  found in every PC or ACPI-based system, and some other boards.
@@ -263,7 +256,6 @@ config RTC_DRV_CMOS
 
 config RTC_DRV_DS1553
 	tristate "Dallas DS1553"
-	depends on RTC_CLASS
 	help
 	  If you say yes here you get support for the
 	  Dallas DS1553 timekeeping chip.
@@ -273,7 +265,6 @@ config RTC_DRV_DS1553
 
 config RTC_DRV_DS1742
 	tristate "Dallas DS1742/1743"
-	depends on RTC_CLASS
 	help
 	  If you say yes here you get support for the
 	  Dallas DS1742/1743 timekeeping chip.
@@ -283,7 +274,6 @@ config RTC_DRV_DS1742
 
 config RTC_DRV_M48T86
 	tristate "ST M48T86/Dallas DS12887"
-	depends on RTC_CLASS
 	help
 	  If you say Y here you will get support for the
 	  ST M48T86 and Dallas DS12887 RTC chips.
@@ -293,7 +283,6 @@ config RTC_DRV_M48T86
 
 config RTC_DRV_V3020
 	tristate "EM Microelectronic V3020"
-	depends on RTC_CLASS
 	help
 	  If you say yes here you will get support for the
 	  EM Microelectronic v3020 RTC chip.
@@ -302,19 +291,17 @@ config RTC_DRV_V3020
 	  will be called rtc-v3020.
 
 comment "on-CPU RTC drivers"
-	depends on RTC_CLASS
 
 config RTC_DRV_OMAP
 	tristate "TI OMAP1"
-	depends on RTC_CLASS && ( \
-		ARCH_OMAP15XX || ARCH_OMAP16XX || ARCH_OMAP730 )
+	depends on ARCH_OMAP15XX || ARCH_OMAP16XX || ARCH_OMAP730
 	help
 	  Say "yes" here to support the real time clock on TI OMAP1 chips.
 	  This driver can also be built as a module called rtc-omap.
 
 config RTC_DRV_S3C
 	tristate "Samsung S3C series SoC RTC"
-	depends on RTC_CLASS && ARCH_S3C2410
+	depends on ARCH_S3C2410
 	help
 	  RTC (Realtime Clock) driver for the clock inbuilt into the
 	  Samsung S3C24XX series of SoCs. This can provide periodic
@@ -330,7 +317,7 @@ config RTC_DRV_S3C
 
 config RTC_DRV_EP93XX
 	tristate "Cirrus Logic EP93XX"
-	depends on RTC_CLASS && ARCH_EP93XX
+	depends on ARCH_EP93XX
 	help
 	  If you say yes here you get support for the
 	  RTC embedded in the Cirrus Logic EP93XX processors.
@@ -340,7 +327,7 @@ config RTC_DRV_EP93XX
 
 config RTC_DRV_SA1100
 	tristate "SA11x0/PXA2xx"
-	depends on RTC_CLASS && (ARCH_SA1100 || ARCH_PXA)
+	depends on ARCH_SA1100 || ARCH_PXA
 	help
 	  If you say Y here you will get access to the real time clock
 	  built into your SA11x0 or PXA2xx CPU.
@@ -350,7 +337,7 @@ config RTC_DRV_SA1100
 
 config RTC_DRV_SH
 	tristate "SuperH On-Chip RTC"
-	depends on RTC_CLASS && SUPERH
+	depends on SUPERH
 	help
 	  Say Y here to enable support for the on-chip RTC found in
 	  most SuperH processors.
@@ -360,7 +347,7 @@ config RTC_DRV_SH
 
 config RTC_DRV_VR41XX
 	tristate "NEC VR41XX"
-	depends on RTC_CLASS && CPU_VR41XX
+	depends on CPU_VR41XX
 	help
 	  If you say Y here you will get access to the real time clock
 	  built into your NEC VR41XX CPU.
@@ -370,7 +357,7 @@ config RTC_DRV_VR41XX
 
 config RTC_DRV_PL031
 	tristate "ARM AMBA PL031 RTC"
-	depends on RTC_CLASS && ARM_AMBA
+	depends on ARM_AMBA
 	help
 	  If you say Y here you will get access to ARM AMBA
 	  PrimeCell PL031 RTC found on certain ARM SOCs.
@@ -380,13 +367,13 @@ config RTC_DRV_PL031
 
 config RTC_DRV_AT91RM9200
 	tristate "AT91RM9200"
-	depends on RTC_CLASS && ARCH_AT91RM9200
+	depends on ARCH_AT91RM9200
 	help
 	  Driver for the Atmel AT91RM9200's internal RTC (Realtime Clock).
 
 config RTC_DRV_BFIN
 	tristate "Blackfin On-Chip RTC"
-	depends on RTC_CLASS && BFIN
+	depends on BFIN
 	help
 	  If you say yes here you will get support for the
 	  Blackfin On-Chip Real Time Clock.
@@ -396,8 +383,8 @@ config RTC_DRV_BFIN
 
 config RTC_DRV_RS5C313
 	tristate "Ricoh RS5C313"
-	depends on RTC_CLASS && BROKEN
+	depends on BROKEN
 	help
 	  If you say yes here you get support for the Ricoh RS5C313 RTC chips.
 
-endmenu
+endif # RTC_CLASS

^ permalink raw reply	[flat|nested] 70+ messages in thread

* [PATCH 27/36] Use menuconfig objects II - SCSI
  2007-04-30 11:03 [PATCH 00/36] Use menuconfig objects II - (overview) Jan Engelhardt
                   ` (25 preceding siblings ...)
  2007-04-30 11:49 ` [PATCH 26/36] Use menuconfig objects II - RTC Jan Engelhardt
@ 2007-04-30 11:50 ` Jan Engelhardt
  2007-04-30 11:52 ` [PATCH 28/36] Use menuconfig objects II - sound Jan Engelhardt
                   ` (8 subsequent siblings)
  35 siblings, 0 replies; 70+ messages in thread
From: Jan Engelhardt @ 2007-04-30 11:50 UTC (permalink / raw)
  To: James E.J. Bottomley; +Cc: Linux Kernel Mailing List, Andrew Morton, linux-scsi


Make a "menuconfig" out of the Kconfig objects "menu, ..., endmenu",
so that the user can disable all the options in that menu at once
instead of having to disable each option separately.

Signed-off-by: Jan Engelhardt <jengelh@gmx.de>

---
 drivers/scsi/Kconfig        |    8 ++++++--
 drivers/scsi/pcmcia/Kconfig |    8 ++++++--
 2 files changed, 12 insertions(+), 4 deletions(-)

--- linux-2.6.21-mm_20070428.orig/drivers/scsi/Kconfig
+++ linux-2.6.21-mm_20070428/drivers/scsi/Kconfig
@@ -285,8 +285,12 @@ source "drivers/scsi/libsas/Kconfig"
 
 endmenu
 
-menu "SCSI low-level drivers"
+menuconfig SCSI_LOWLEVEL
+	bool "SCSI low-level drivers"
 	depends on SCSI!=n
+	default y
+
+if SCSI_LOWLEVEL
 
 config ISCSI_TCP
 	tristate "iSCSI Initiator over TCP/IP"
@@ -1795,7 +1799,7 @@ config SCSI_SRP
 	  To compile this driver as a module, choose M here: the
 	  module will be called libsrp.
 
-endmenu
+endif # SCSI_LOWLEVEL
 
 source "drivers/scsi/pcmcia/Kconfig"
 
--- linux-2.6.21-mm_20070428.orig/drivers/scsi/pcmcia/Kconfig
+++ linux-2.6.21-mm_20070428/drivers/scsi/pcmcia/Kconfig
@@ -2,8 +2,12 @@
 # PCMCIA SCSI adapter configuration
 #
 
-menu "PCMCIA SCSI adapter support"
+menuconfig SCSI_LOWLEVEL_PCMCIA
+	bool "PCMCIA SCSI adapter support"
 	depends on SCSI!=n && PCMCIA!=n
+	default y
+
+if SCSI_LOWLEVEL_PCMCIA
 
 config PCMCIA_AHA152X
 	tristate "Adaptec AHA152X PCMCIA support"
@@ -77,4 +81,4 @@ config PCMCIA_SYM53C500
 	  To compile this driver as a module, choose M here: the
 	  module will be called sym53c500_cs.
 
-endmenu
+endif # SCSI_LOWLEVEL_PCMCIA

^ permalink raw reply	[flat|nested] 70+ messages in thread

* [PATCH 28/36] Use menuconfig objects II - sound
  2007-04-30 11:03 [PATCH 00/36] Use menuconfig objects II - (overview) Jan Engelhardt
                   ` (26 preceding siblings ...)
  2007-04-30 11:50 ` [PATCH 27/36] Use menuconfig objects II - SCSI Jan Engelhardt
@ 2007-04-30 11:52 ` Jan Engelhardt
  2007-04-30 14:19   ` Johannes Berg
  2007-04-30 15:21   ` [PATCH 28/36 #2] " Jan Engelhardt
  2007-04-30 11:53 ` [PATCH 29/36] Use menuconfig objects II - Telephony Jan Engelhardt
                   ` (7 subsequent siblings)
  35 siblings, 2 replies; 70+ messages in thread
From: Jan Engelhardt @ 2007-04-30 11:52 UTC (permalink / raw)
  To: Jaroslav Kysela
  Cc: Linux Kernel Mailing List, Andrew Morton, Johannes Berg, Liam Girdwood


CONFIG_SOUND, CONFIG_SND, CONFIG_SOUND_PRIME, ...:
Change Kconfig objects from "menu, config" into "menuconfig" so
that the user can disable the whole feature without having to
enter the menu first.

CONFIG_SND_*_DRIVERS:
Make a "menuconfig" out of the Kconfig objects "menu, ..., endmenu",
so that the user can disable all the options in that menu at once
instead of having to disable each option separately.

CONFIG_SOUND_KAHULA:
Move it so that it appears correctly in menuconfig.

Signed-off-by: Jan Engelhardt <jengelh@gmx.de>

---
 sound/Kconfig            |   30 +++++++++-----------
 sound/aoa/Kconfig        |   11 ++++---
 sound/arm/Kconfig        |   16 ++++++----
 sound/core/Kconfig       |   18 ++----------
 sound/drivers/Kconfig    |   20 ++++++-------
 sound/isa/Kconfig        |   45 +++++++++---------------------
 sound/mips/Kconfig       |   13 +++++---
 sound/oss/Kconfig        |   29 ++++++-------------
 sound/parisc/Kconfig     |   11 ++++---
 sound/pci/Kconfig        |   70 ++++++-----------------------------------------
 sound/pcmcia/Kconfig     |   12 ++++----
 sound/ppc/Kconfig        |   16 ++++++----
 sound/soc/Kconfig        |   10 ++++--
 sound/soc/codecs/Kconfig |    9 ++----
 sound/sparc/Kconfig      |   15 ++++++----
 sound/usb/Kconfig        |   15 +++++-----
 16 files changed, 136 insertions(+), 204 deletions(-)

--- linux-2.6.21-mm_20070428.orig/sound/Kconfig
+++ linux-2.6.21-mm_20070428/sound/Kconfig
@@ -1,9 +1,7 @@
 # sound/Config.in
 #
 
-menu "Sound"
-
-config SOUND
+menuconfig SOUND
 	tristate "Sound card support"
 	help
 	  If you have a sound card in your computer, i.e. if it can say more
@@ -32,14 +30,13 @@ config SOUND
 	  Kernel patches and supporting utilities to do that are in the pcsp
 	  package, available at <ftp://ftp.infradead.org/pub/pcsp/>.
 
+if SOUND
+
 source "sound/oss/dmasound/Kconfig"
 
 if !M68K
 
-menu "Advanced Linux Sound Architecture"
-	depends on SOUND!=n
-
-config SND
+menuconfig SND
 	tristate "Advanced Linux Sound Architecture"
 	depends on SOUND
 	help
@@ -48,6 +45,8 @@ config SND
 
 	  For more information, see <http://www.alsa-project.org/>
 
+if SND
+
 source "sound/core/Kconfig"
 
 source "sound/drivers/Kconfig"
@@ -78,22 +77,23 @@ source "sound/parisc/Kconfig"
 
 source "sound/soc/Kconfig"
 
-endmenu
+endif # SND
 
-menu "Open Sound System"
-	depends on SOUND!=n
-
-config SOUND_PRIME
+menuconfig SOUND_PRIME
 	tristate "Open Sound System (DEPRECATED)"
 	depends on SOUND
 	help
 	  Say 'Y' or 'M' to enable Open Sound System drivers.
 
+if SOUND_PRIME
+
 source "sound/oss/Kconfig"
 
-endmenu
+endif # SOUND_PRIME
 
-endif
+endif # !M68K
+
+endif # SOUND
 
 config AC97_BUS
 	tristate
@@ -102,5 +102,3 @@ config AC97_BUS
 	  sound subsystem and other function drivers completely unrelated to
 	  sound although they're sharing the AC97 bus. Concerned drivers
 	  should "select" this.
-
-endmenu
--- linux-2.6.21-mm_20070428.orig/sound/aoa/Kconfig
+++ linux-2.6.21-mm_20070428/sound/aoa/Kconfig
@@ -1,9 +1,12 @@
-menu "Apple Onboard Audio driver"
-	depends on SND!=n && PPC_PMAC
+menuconfig SND_AOA_DRIVERS
+	bool "Apple Onboard Audio driver"
+	depends on PPC_PMAC
+	default y
+
+if SND_AOA_DRIVERS
 
 config SND_AOA
 	tristate "Apple Onboard Audio driver"
-	depends on SND
 	select SND_PCM
 	---help---
 	This option enables the new driver for the various
@@ -15,4 +18,4 @@ source "sound/aoa/codecs/Kconfig"
 
 source "sound/aoa/soundbus/Kconfig"
 
-endmenu
+endif # SND_AOA_DRIVERS
--- linux-2.6.21-mm_20070428.orig/sound/arm/Kconfig
+++ linux-2.6.21-mm_20070428/sound/arm/Kconfig
@@ -1,11 +1,15 @@
 # ALSA ARM drivers
 
-menu "ALSA ARM devices"
-	depends on SND!=n && ARM
+menuconfig SND_ARM_DRIVERS
+	bool "ALSA ARM devices"
+	depends on ARM
+	default y
+
+if SND_ARM_DRIVERS
 
 config SND_SA11XX_UDA1341
 	tristate "SA11xx UDA1341TS driver (iPaq H3600)"
-	depends on ARCH_SA1100 && SND && L3
+	depends on ARCH_SA1100 && L3
 	select SND_PCM
 	help
 	  Say Y here if you have a Compaq iPaq H3x00 handheld computer
@@ -16,7 +20,7 @@ config SND_SA11XX_UDA1341
 
 config SND_ARMAACI
 	tristate "ARM PrimeCell PL041 AC Link support"
-	depends on SND && ARM_AMBA
+	depends on ARM_AMBA
 	select SND_PCM
 	select SND_AC97_CODEC
 
@@ -26,11 +30,11 @@ config SND_PXA2XX_PCM
 
 config SND_PXA2XX_AC97
 	tristate "AC97 driver for the Intel PXA2xx chip"
-	depends on ARCH_PXA && SND
+	depends on ARCH_PXA
 	select SND_PXA2XX_PCM
 	select SND_AC97_CODEC
 	help
 	  Say Y or M if you want to support any AC97 codec attached to
 	  the PXA2xx AC97 interface.
 
-endmenu
+endif # SND_ARM_DRIVERS
--- linux-2.6.21-mm_20070428.orig/sound/core/Kconfig
+++ linux-2.6.21-mm_20070428/sound/core/Kconfig
@@ -1,24 +1,19 @@
 # ALSA soundcard-configuration
 config SND_TIMER
 	tristate
-	depends on SND
 
 config SND_PCM
 	tristate
 	select SND_TIMER
-	depends on SND
 
 config SND_HWDEP
 	tristate
-	depends on SND
 
 config SND_RAWMIDI
 	tristate
-	depends on SND
 
 config SND_SEQUENCER
 	tristate "Sequencer support"
-	depends on SND
 	select SND_TIMER
 	help
 	  Say Y or M to enable MIDI sequencer and router support.  This
@@ -44,11 +39,9 @@ config SND_SEQ_DUMMY
 
 config SND_OSSEMUL
 	bool
-	depends on SND
 
 config SND_MIXER_OSS
 	tristate "OSS Mixer API"
-	depends on SND
 	select SND_OSSEMUL
 	help
 	  To enable OSS mixer API emulation (/dev/mixer*), say Y here
@@ -61,7 +54,6 @@ config SND_MIXER_OSS
 
 config SND_PCM_OSS
 	tristate "OSS PCM (digital audio) API"
-	depends on SND
 	select SND_OSSEMUL
 	select SND_PCM
 	help
@@ -84,7 +76,7 @@ config SND_PCM_OSS_PLUGINS
 
 config SND_SEQUENCER_OSS
 	bool "OSS Sequencer API"
-	depends on SND && SND_SEQUENCER
+	depends on SND_SEQUENCER
 	select SND_OSSEMUL
 	help
 	  Say Y here to enable OSS sequencer emulation (both
@@ -98,7 +90,7 @@ config SND_SEQUENCER_OSS
 
 config SND_RTCTIMER
 	tristate "RTC Timer support"
-	depends on SND && RTC
+	depends on RTC
 	select SND_TIMER
 	help
 	  Say Y here to enable RTC timer support for ALSA.  ALSA uses
@@ -123,7 +115,6 @@ config SND_SEQ_RTCTIMER_DEFAULT
 
 config SND_DYNAMIC_MINORS
 	bool "Dynamic device file minor numbers"
-	depends on SND
 	help
 	  If you say Y here, the minor numbers of ALSA device files in
 	  /dev/snd/ are allocated dynamically.  This allows you to have
@@ -134,7 +125,6 @@ config SND_DYNAMIC_MINORS
 
 config SND_SUPPORT_OLD_API
 	bool "Support old ALSA API"
-	depends on SND
 	default y
 	help
 	  Say Y here to support the obsolete ALSA PCM API (ver.0.9.0 rc3
@@ -142,7 +132,7 @@ config SND_SUPPORT_OLD_API
 
 config SND_VERBOSE_PROCFS
 	bool "Verbose procfs contents"
-	depends on SND && PROC_FS
+	depends on PROC_FS
 	default y
 	help
 	  Say Y here to include code for verbose procfs contents (provides
@@ -151,7 +141,6 @@ config SND_VERBOSE_PROCFS
 
 config SND_VERBOSE_PRINTK
 	bool "Verbose printk"
-	depends on SND
 	help
 	  Say Y here to enable verbose log messages.  These messages
 	  will help to identify source file and position containing
@@ -161,7 +150,6 @@ config SND_VERBOSE_PRINTK
 
 config SND_DEBUG
 	bool "Debug"
-	depends on SND
 	help
 	  Say Y here to enable ALSA debug code.
 
--- linux-2.6.21-mm_20070428.orig/sound/drivers/Kconfig
+++ linux-2.6.21-mm_20070428/sound/drivers/Kconfig
@@ -1,9 +1,5 @@
 # ALSA generic drivers
 
-menu "Generic devices"
-	depends on SND!=n
-
-
 config SND_MPU401_UART
         tristate
         select SND_RAWMIDI
@@ -28,9 +24,14 @@ config SND_AC97_CODEC
 	select SND_PCM
 	select AC97_BUS
 
+menuconfig SND_GENERIC_DRIVERS
+	bool "Generic devices"
+	default y
+
+if SND_GENERIC_DRIVERS
+
 config SND_DUMMY
 	tristate "Dummy (/dev/null) soundcard"
-	depends on SND
 	select SND_PCM
 	help
 	  Say Y here to include the dummy driver.  This driver does
@@ -59,7 +60,6 @@ config SND_VIRMIDI
 
 config SND_MTPAV
 	tristate "MOTU MidiTimePiece AV multiport MIDI"
-	depends on SND
 	select SND_RAWMIDI
 	help
 	  To use a MOTU MidiTimePiece AV multiport MIDI adapter
@@ -71,7 +71,7 @@ config SND_MTPAV
 
 config SND_MTS64
 	tristate "ESI Miditerminal 4140 driver"
-	depends on SND && PARPORT
+	depends on PARPORT
 	select SND_RAWMIDI
 	help
 	  The ESI Miditerminal 4140 is a 4 In 4 Out MIDI Interface with 
@@ -84,7 +84,6 @@ config SND_MTS64
 
 config SND_SERIAL_U16550
 	tristate "UART16550 serial MIDI driver"
-	depends on SND
 	select SND_RAWMIDI
 	help
 	  To include support for MIDI serial port interfaces, say Y here
@@ -100,7 +99,6 @@ config SND_SERIAL_U16550
 
 config SND_MPU401
 	tristate "Generic MPU-401 UART driver"
-	depends on SND
 	select SND_MPU401_UART
 	help
 	  Say Y here to include support for MIDI ports compatible with
@@ -111,7 +109,7 @@ config SND_MPU401
 
 config SND_PORTMAN2X4
 	tristate "Portman 2x4 driver"
-	depends on SND && PARPORT
+	depends on PARPORT
 	select SND_RAWMIDI
 	help
 	  Say Y here to include support for Midiman Portman 2x4 parallel
@@ -120,4 +118,4 @@ config SND_PORTMAN2X4
 	  To compile this driver as a module, choose M here: the module
 	  will be called snd-portman2x4.
 
-endmenu
+endif # SND_GENERIC_DRIVERS
--- linux-2.6.21-mm_20070428.orig/sound/isa/Kconfig
+++ linux-2.6.21-mm_20070428/sound/isa/Kconfig
@@ -1,7 +1,11 @@
 # ALSA ISA drivers
 
-menu "ISA devices"
-	depends on SND!=n && ISA && ISA_DMA_API
+menuconfig SND_ISA_DRIVERS
+	bool "ISA devices"
+	depends on ISA && ISA_DMA_API
+	default y
+
+if SND_ISA_DRIVERS
 
 config SND_AD1848_LIB
         tristate
@@ -13,7 +17,6 @@ config SND_CS4231_LIB
 
 config SND_ADLIB
 	tristate "AdLib FM card"
-	depends on SND
 	select SND_OPL3_LIB
 	help
 	  Say Y here to include support for AdLib FM cards.
@@ -23,7 +26,7 @@ config SND_ADLIB
 
 config SND_AD1816A
 	tristate "Analog Devices SoundPort AD1816A"
-	depends on SND && PNP && ISA
+	depends on PNP
 	select ISAPNP
 	select SND_OPL3_LIB
 	select SND_MPU401_UART
@@ -37,7 +40,6 @@ config SND_AD1816A
 
 config SND_AD1848
 	tristate "Generic AD1848/CS4248 driver"
-	depends on SND
 	select SND_AD1848_LIB
 	help
 	  Say Y here to include support for AD1848 (Analog Devices) or
@@ -51,7 +53,7 @@ config SND_AD1848
 
 config SND_ALS100
 	tristate "Avance Logic ALS100/ALS120"
-	depends on SND && PNP && ISA
+	depends on PNP
 	select ISAPNP
 	select SND_OPL3_LIB
 	select SND_MPU401_UART
@@ -65,7 +67,7 @@ config SND_ALS100
 
 config SND_AZT2320
 	tristate "Aztech Systems AZT2320"
-	depends on SND && PNP && ISA
+	depends on PNP
 	select ISAPNP
 	select SND_OPL3_LIB
 	select SND_MPU401_UART
@@ -79,7 +81,6 @@ config SND_AZT2320
 
 config SND_CMI8330
 	tristate "C-Media CMI8330"
-	depends on SND
 	select SND_AD1848_LIB
 	help
 	  Say Y here to include support for soundcards based on the
@@ -90,7 +91,6 @@ config SND_CMI8330
 
 config SND_CS4231
 	tristate "Generic Cirrus Logic CS4231 driver"
-	depends on SND
 	select SND_MPU401_UART
 	select SND_CS4231_LIB
 	help
@@ -102,7 +102,6 @@ config SND_CS4231
 
 config SND_CS4232
 	tristate "Generic Cirrus Logic CS4232 driver"
-	depends on SND
 	select SND_OPL3_LIB
 	select SND_MPU401_UART
 	select SND_CS4231_LIB
@@ -115,7 +114,6 @@ config SND_CS4232
 
 config SND_CS4236
 	tristate "Generic Cirrus Logic CS4236+ driver"
-	depends on SND
 	select SND_OPL3_LIB
 	select SND_MPU401_UART
 	select SND_CS4231_LIB
@@ -128,7 +126,7 @@ config SND_CS4236
 
 config SND_DT019X
 	tristate "Diamond Technologies DT-019X, Avance Logic ALS-007"
-	depends on SND && PNP && ISA
+	depends on PNP
 	select ISAPNP
 	select SND_OPL3_LIB
 	select SND_MPU401_UART
@@ -142,7 +140,7 @@ config SND_DT019X
 
 config SND_ES968
 	tristate "Generic ESS ES968 driver"
-	depends on SND && PNP && ISA
+	depends on PNP
 	select ISAPNP
 	select SND_MPU401_UART
 	select SND_PCM
@@ -154,7 +152,6 @@ config SND_ES968
 
 config SND_ES1688
 	tristate "Generic ESS ES688/ES1688 driver"
-	depends on SND
 	select SND_OPL3_LIB
 	select SND_MPU401_UART
 	select SND_PCM
@@ -167,7 +164,6 @@ config SND_ES1688
 
 config SND_ES18XX
 	tristate "Generic ESS ES18xx driver"
-	depends on SND
 	select SND_OPL3_LIB
 	select SND_MPU401_UART
 	select SND_PCM
@@ -182,7 +178,6 @@ config SND_GUS_SYNTH
 
 config SND_GUSCLASSIC
 	tristate "Gravis UltraSound Classic"
-	depends on SND
 	select SND_RAWMIDI
 	select SND_PCM
 	select SND_GUS_SYNTH
@@ -195,7 +190,6 @@ config SND_GUSCLASSIC
 
 config SND_GUSEXTREME
 	tristate "Gravis UltraSound Extreme"
-	depends on SND
 	select SND_HWDEP
 	select SND_MPU401_UART
 	select SND_PCM
@@ -209,7 +203,6 @@ config SND_GUSEXTREME
 
 config SND_GUSMAX
 	tristate "Gravis UltraSound MAX"
-	depends on SND
 	select SND_RAWMIDI
 	select SND_CS4231_LIB
 	select SND_GUS_SYNTH
@@ -222,7 +215,7 @@ config SND_GUSMAX
 
 config SND_INTERWAVE
 	tristate "AMD InterWave, Gravis UltraSound PnP"
-	depends on SND && PNP && ISA
+	depends on PNP
 	select SND_RAWMIDI
 	select SND_CS4231_LIB
 	select SND_GUS_SYNTH
@@ -236,7 +229,7 @@ config SND_INTERWAVE
 
 config SND_INTERWAVE_STB
 	tristate "AMD InterWave + TEA6330T (UltraSound 32-Pro)"
-	depends on SND && PNP && ISA
+	depends on PNP
 	select SND_RAWMIDI
 	select SND_CS4231_LIB
 	select SND_GUS_SYNTH
@@ -250,7 +243,6 @@ config SND_INTERWAVE_STB
 
 config SND_OPL3SA2
 	tristate "Yamaha OPL3-SA2/SA3"
-	depends on SND
 	select SND_OPL3_LIB
 	select SND_MPU401_UART
 	select SND_CS4231_LIB
@@ -263,7 +255,6 @@ config SND_OPL3SA2
 
 config SND_OPTI92X_AD1848
 	tristate "OPTi 82C92x - AD1848"
-	depends on SND
 	select SND_OPL3_LIB
 	select SND_OPL4_LIB
 	select SND_MPU401_UART
@@ -277,7 +268,6 @@ config SND_OPTI92X_AD1848
 
 config SND_OPTI92X_CS4231
 	tristate "OPTi 82C92x - CS4231"
-	depends on SND
 	select SND_OPL3_LIB
 	select SND_OPL4_LIB
 	select SND_MPU401_UART
@@ -291,7 +281,6 @@ config SND_OPTI92X_CS4231
 
 config SND_OPTI93X
 	tristate "OPTi 82C93x"
-	depends on SND
 	select SND_OPL3_LIB
 	select SND_MPU401_UART
 	select SND_PCM
@@ -304,7 +293,6 @@ config SND_OPTI93X
 
 config SND_MIRO
 	tristate "Miro miroSOUND PCM1pro/PCM12/PCM20radio driver"
-	depends on SND
 	select SND_OPL4_LIB
 	select SND_CS4231_LIB
 	select SND_MPU401_UART
@@ -318,7 +306,6 @@ config SND_MIRO
 
 config SND_SB8
 	tristate "Sound Blaster 1.0/2.0/Pro (8-bit)"
-	depends on SND
 	select SND_OPL3_LIB
 	select SND_RAWMIDI
 	select SND_PCM
@@ -331,7 +318,6 @@ config SND_SB8
 
 config SND_SB16
 	tristate "Sound Blaster 16 (PnP)"
-	depends on SND
 	select SND_OPL3_LIB
 	select SND_MPU401_UART
 	select SND_PCM
@@ -344,7 +330,6 @@ config SND_SB16
 
 config SND_SBAWE
 	tristate "Sound Blaster AWE (32,64) (PnP)"
-	depends on SND
 	select SND_OPL3_LIB
 	select SND_MPU401_UART
 	select SND_PCM
@@ -386,7 +371,6 @@ config SND_SGALAXY
 
 config SND_SSCAPE
 	tristate "Ensoniq SoundScape PnP driver"
-	depends on SND
 	select SND_HWDEP
 	select SND_MPU401_UART
 	select SND_CS4231_LIB
@@ -399,7 +383,6 @@ config SND_SSCAPE
 
 config SND_WAVEFRONT
 	tristate "Turtle Beach Maui,Tropez,Tropez+ (Wavefront)"
-	depends on SND
 	select FW_LOADER
 	select SND_OPL3_LIB
 	select SND_MPU401_UART
@@ -420,4 +403,4 @@ config SND_WAVEFRONT_FIRMWARE_IN_KERNEL
 	  for the Wavefront driver.  If you choose N here, you need to
 	  install the firmware files from the alsa-firmware package.
 
-endmenu
+endif # SND_ISA_DRIVERS
--- linux-2.6.21-mm_20070428.orig/sound/mips/Kconfig
+++ linux-2.6.21-mm_20070428/sound/mips/Kconfig
@@ -1,15 +1,18 @@
 # ALSA MIPS drivers
 
-menu "ALSA MIPS devices"
-	depends on SND!=n && MIPS
+menuconfig SND_MIPS_DRIVERS
+	bool "ALSA MIPS devices"
+	depends on MIPS
+	default y
+
+if SND_MIPS_DRIVERS
 
 config SND_AU1X00
 	tristate "Au1x00 AC97 Port Driver"
-	depends on (SOC_AU1000 || SOC_AU1100 || SOC_AU1500) && SND
+	depends on SOC_AU1000 || SOC_AU1100 || SOC_AU1500
 	select SND_PCM
 	select SND_AC97_CODEC
 	help
 	  ALSA Sound driver for the Au1x00's AC97 port.
 
-endmenu
-
+endif # SND_MIPS_DRIVERS
--- linux-2.6.21-mm_20070428.orig/sound/oss/Kconfig
+++ linux-2.6.21-mm_20070428/sound/oss/Kconfig
@@ -376,16 +376,16 @@ config SOUND_OSS
 	  driver for your sound card above, then pick your driver from the
 	  list below.
 
+if SOUND_OSS
+
 config SOUND_TRACEINIT
 	bool "Verbose initialisation"
-	depends on SOUND_OSS
 	help
 	  Verbose soundcard initialization -- affects the format of autoprobe
 	  and initialization messages at boot time.
 
 config SOUND_DMAP
 	bool "Persistent DMA buffers"
-	depends on SOUND_OSS
 	---help---
 	  Linux can often have problems allocating DMA buffers for ISA sound
 	  cards on machines with more than 16MB of RAM. This is because ISA
@@ -402,7 +402,7 @@ config SOUND_DMAP
 
 config SOUND_CS4232
 	tristate "Crystal CS4232 based (PnP) cards"
-	depends on SOUND_OSS && OSS_OBSOLETE
+	depends on OSS_OBSOLETE
 	help
 	  Say Y here if you have a card based on the Crystal CS4232 chip set,
 	  which uses its own Plug and Play protocol.
@@ -416,7 +416,6 @@ config SOUND_CS4232
 
 config SOUND_SSCAPE
 	tristate "Ensoniq SoundScape support"
-	depends on SOUND_OSS
 	help
 	  Answer Y if you have a sound card based on the Ensoniq SoundScape
 	  chipset. Such cards are being manufactured at least by Ensoniq, Spea
@@ -429,13 +428,11 @@ config SOUND_SSCAPE
 
 config SOUND_VMIDI
 	tristate "Loopback MIDI device support"
-	depends on SOUND_OSS
 	help
 	  Support for MIDI loopback on port 1 or 2.
 
 config SOUND_TRIX
 	tristate "MediaTrix AudioTrix Pro support"
-	depends on SOUND_OSS
 	help
 	  Answer Y if you have the AudioTriX Pro sound card manufactured
 	  by MediaTrix.
@@ -459,7 +456,6 @@ config TRIX_BOOT_FILE
 
 config SOUND_MSS
 	tristate "Microsoft Sound System support"
-	depends on SOUND_OSS
 	---help---
 	  Again think carefully before answering Y to this question.  It's
 	  safe to answer Y if you have the original Windows Sound System card
@@ -491,7 +487,6 @@ config SOUND_MSS
 
 config SOUND_MPU401
 	tristate "MPU-401 support (NOT for SB16)"
-	depends on SOUND_OSS
 	---help---
 	  Be careful with this question.  The MPU401 interface is supported by
 	  all sound cards.  However, some natively supported cards have their
@@ -507,7 +502,6 @@ config SOUND_MPU401
 
 config SOUND_PAS
 	tristate "ProAudioSpectrum 16 support"
-	depends on SOUND_OSS
 	---help---
 	  Answer Y only if you have a Pro Audio Spectrum 16, ProAudio Studio
 	  16 or Logitech SoundMan 16 sound card. Answer N if you have some
@@ -529,7 +523,6 @@ config PAS_JOYSTICK
 
 config SOUND_PSS
 	tristate "PSS (AD1848, ADSP-2115, ESC614) support"
-	depends on SOUND_OSS
 	help
 	  Answer Y or M if you have an Orchid SW32, Cardinal DSP16, Beethoven
 	  ADSP-16 or some other card based on the PSS chipset (AD1848 codec +
@@ -572,7 +565,6 @@ config PSS_BOOT_FILE
 
 config SOUND_SB
 	tristate "100% Sound Blaster compatibles (SB16/32/64, ESS, Jazz16) support"
-	depends on SOUND_OSS
 	---help---
 	  Answer Y if you have an original Sound Blaster card made by Creative
 	  Labs or a 100% hardware compatible clone (like the Thunderboard or
@@ -597,9 +589,12 @@ config SOUND_SB
 	  You can say M here to compile this driver as a module; the module is
 	  called sb.
 
+config SOUND_KAHLUA
+	tristate "XpressAudio Sound Blaster emulation"
+	depends on SOUND_SB
+
 config SOUND_YM3812
 	tristate "Yamaha FM synthesizer (YM3812/OPL-3) support"
-	depends on SOUND_OSS
 	---help---
 	  Answer Y if your card has a FM chip made by Yamaha (OPL2/OPL3/OPL4).
 	  Answering Y is usually a safe and recommended choice, however some
@@ -615,7 +610,6 @@ config SOUND_YM3812
 
 config SOUND_UART6850
 	tristate "6850 UART support"
-	depends on SOUND_OSS
 	help
 	  This option enables support for MIDI interfaces based on the 6850
 	  UART chip. This interface is rarely found on sound cards. It's safe
@@ -626,7 +620,6 @@ config SOUND_UART6850
 
 config SOUND_AEDSP16
 	tristate "Gallant Audio Cards (SC-6000 and SC-6600 based)"
-	depends on SOUND_OSS
 	---help---
 	  Answer Y if you have a Gallant's Audio Excel DSP 16 card. This
 	  driver supports Audio Excel DSP 16 but not the III nor PnP versions
@@ -707,14 +700,14 @@ endchoice
 
 config SOUND_VIDC
 	tristate "VIDC 16-bit sound"
-	depends on ARM && (ARCH_ACORN || ARCH_CLPS7500) && SOUND_OSS
+	depends on ARM && (ARCH_ACORN || ARCH_CLPS7500)
 	help
 	  16-bit support for the VIDC onboard sound hardware found on Acorn
 	  machines.
 
 config SOUND_WAVEARTIST
 	tristate "Netwinder WaveArtist"
-	depends on ARM && SOUND_OSS && ARCH_NETWINDER
+	depends on ARM && ARCH_NETWINDER
 	help
 	  Say Y here to include support for the Rockwell WaveArtist sound
 	  system.  This driver is mainly for the NetWinder.
@@ -726,9 +719,7 @@ config SOUND_TVMIXER
 	  Support for audio mixer facilities on the BT848 TV frame-grabber
 	  card.
 
-config SOUND_KAHLUA
-	tristate "XpressAudio Sound Blaster emulation"
-	depends on SOUND_SB
+endif # SOUND_OSS
 
 config SOUND_SH_DAC_AUDIO
 	tristate "SuperH DAC audio support"
--- linux-2.6.21-mm_20070428.orig/sound/parisc/Kconfig
+++ linux-2.6.21-mm_20070428/sound/parisc/Kconfig
@@ -1,15 +1,18 @@
 # ALSA PA-RISC drivers
 
-menu "GSC devices"
-	depends on SND!=n && GSC
+menuconfig SND_PARISC_DRIVERS
+	bool "GSC devices"
+	depends on GSC
+	default y
+
+if SND_PARISC_DRIVERS
 
 config SND_HARMONY
 	tristate "Harmony/Vivace sound chip"
-	depends on SND
 	select SND_PCM
 	help
 	  Say 'Y' or 'M' to include support for the Harmony/Vivace sound
 	  chip found in most GSC-based PA-RISC workstations.  It's frequently
 	  provided as part of the Lasi multi-function IC.
 
-endmenu
+endif # SND_PARISC_DRIVERS
--- linux-2.6.21-mm_20070428.orig/sound/pci/Kconfig
+++ linux-2.6.21-mm_20070428/sound/pci/Kconfig
@@ -1,11 +1,14 @@
 # ALSA PCI drivers
 
-menu "PCI devices"
-	depends on SND!=n && PCI
+menuconfig SND_PCI_DRIVERS
+	bool "PCI devices"
+	depends on PCI
+	default y
+
+if SND_PCI_DRIVERS
 
 config SND_AD1889
 	tristate "Analog Devices AD1889"
-	depends on SND
 	select SND_AC97_CODEC
 	help
 	  Say Y here to include support for the integrated AC97 sound
@@ -17,7 +20,6 @@ config SND_AD1889
 
 config SND_ALS300
 	tristate "Avance Logic ALS300/ALS300+"
-	depends on SND
 	select SND_PCM
 	select SND_AC97_CODEC
 	select SND_OPL3_LIB
@@ -29,7 +31,7 @@ config SND_ALS300
 
 config SND_ALS4000
 	tristate "Avance Logic ALS4000"
-	depends on SND && ISA_DMA_API
+	depends on ISA_DMA_API
 	select SND_OPL3_LIB
 	select SND_MPU401_UART
 	select SND_PCM
@@ -42,7 +44,6 @@ config SND_ALS4000
 
 config SND_ALI5451
 	tristate "ALi M5451 PCI Audio Controller"
-	depends on SND
 	select SND_MPU401_UART
 	select SND_AC97_CODEC
 	help
@@ -56,7 +57,6 @@ config SND_ALI5451
 
 config SND_ATIIXP
 	tristate "ATI IXP AC97 Controller"
-	depends on SND
 	select SND_AC97_CODEC
 	help
 	  Say Y here to include support for the integrated AC97 sound
@@ -68,7 +68,6 @@ config SND_ATIIXP
 
 config SND_ATIIXP_MODEM
 	tristate "ATI IXP Modem"
-	depends on SND
 	select SND_AC97_CODEC
 	help
 	  Say Y here to include support for the integrated MC97 modem on
@@ -79,7 +78,6 @@ config SND_ATIIXP_MODEM
 
 config SND_AU8810
 	tristate "Aureal Advantage"
-	depends on SND
 	select SND_MPU401_UART
 	select SND_AC97_CODEC
 	help
@@ -94,7 +92,6 @@ config SND_AU8810
 
 config SND_AU8820
 	tristate "Aureal Vortex"
-	depends on SND
 	select SND_MPU401_UART
 	select SND_AC97_CODEC
 	help
@@ -108,7 +105,6 @@ config SND_AU8820
 
 config SND_AU8830
 	tristate "Aureal Vortex 2"
-	depends on SND
 	select SND_MPU401_UART
 	select SND_AC97_CODEC
 	help
@@ -123,7 +119,7 @@ config SND_AU8830
 
 config SND_AZT3328
 	tristate "Aztech AZF3328 / PCI168 (EXPERIMENTAL)"
-	depends on SND && EXPERIMENTAL
+	depends on EXPERIMENTAL
 	select SND_OPL3_LIB
 	select SND_MPU401_UART
 	select SND_PCM
@@ -136,7 +132,6 @@ config SND_AZT3328
 
 config SND_BT87X
 	tristate "Bt87x Audio Capture"
-	depends on SND
 	select SND_PCM
 	help
 	  If you want to record audio from TV cards based on
@@ -158,7 +153,6 @@ config SND_BT87X_OVERCLOCK
 
 config SND_CA0106
 	tristate "SB Audigy LS / Live 24bit"
-	depends on SND
 	select SND_AC97_CODEC
 	select SND_RAWMIDI
 	help
@@ -170,7 +164,6 @@ config SND_CA0106
 
 config SND_CMIPCI
 	tristate "C-Media 8738, 8338"
-	depends on SND
 	select SND_OPL3_LIB
 	select SND_MPU401_UART
 	select SND_PCM
@@ -184,7 +177,6 @@ config SND_CMIPCI
 
 config SND_CS4281
 	tristate "Cirrus Logic (Sound Fusion) CS4281"
-	depends on SND
 	select SND_OPL3_LIB
 	select SND_RAWMIDI
 	select SND_AC97_CODEC
@@ -196,7 +188,6 @@ config SND_CS4281
 
 config SND_CS46XX
 	tristate "Cirrus Logic (Sound Fusion) CS4280/CS461x/CS462x/CS463x"
-	depends on SND
 	select SND_RAWMIDI
 	select SND_AC97_CODEC
 	help
@@ -217,7 +208,7 @@ config SND_CS46XX_NEW_DSP
 
 config SND_CS5535AUDIO
 	tristate "CS5535/CS5536 Audio"
-	depends on SND && X86 && !X86_64
+	depends on X86 && !X86_64
 	select SND_PCM
 	select SND_AC97_CODEC
 	help
@@ -235,7 +226,6 @@ config SND_CS5535AUDIO
 
 config SND_DARLA20
 	tristate "(Echoaudio) Darla20"
-	depends on SND
 	select FW_LOADER
 	select SND_PCM
 	help
@@ -246,7 +236,6 @@ config SND_DARLA20
 
 config SND_GINA20
 	tristate "(Echoaudio) Gina20"
-	depends on SND
 	select FW_LOADER
 	select SND_PCM
 	help
@@ -257,7 +246,6 @@ config SND_GINA20
 
 config SND_LAYLA20
 	tristate "(Echoaudio) Layla20"
-	depends on SND
 	select FW_LOADER
 	select SND_RAWMIDI
 	select SND_PCM
@@ -269,7 +257,6 @@ config SND_LAYLA20
 
 config SND_DARLA24
 	tristate "(Echoaudio) Darla24"
-	depends on SND
 	select FW_LOADER
 	select SND_PCM
 	help
@@ -280,7 +267,6 @@ config SND_DARLA24
 
 config SND_GINA24
 	tristate "(Echoaudio) Gina24"
-	depends on SND
 	select FW_LOADER
 	select SND_PCM
 	help
@@ -291,7 +277,6 @@ config SND_GINA24
 
 config SND_LAYLA24
 	tristate "(Echoaudio) Layla24"
-	depends on SND
 	select FW_LOADER
 	select SND_RAWMIDI
 	select SND_PCM
@@ -303,7 +288,6 @@ config SND_LAYLA24
 
 config SND_MONA
 	tristate "(Echoaudio) Mona"
-	depends on SND
 	select FW_LOADER
 	select SND_RAWMIDI
 	select SND_PCM
@@ -315,7 +299,6 @@ config SND_MONA
 
 config SND_MIA
 	tristate "(Echoaudio) Mia"
-	depends on SND
 	select FW_LOADER
 	select SND_RAWMIDI
 	select SND_PCM
@@ -327,7 +310,6 @@ config SND_MIA
 
 config SND_ECHO3G
 	tristate "(Echoaudio) 3G cards"
-	depends on SND
 	select FW_LOADER
 	select SND_RAWMIDI
 	select SND_PCM
@@ -339,7 +321,6 @@ config SND_ECHO3G
 
 config SND_INDIGO
 	tristate "(Echoaudio) Indigo"
-	depends on SND
 	select FW_LOADER
 	select SND_PCM
 	help
@@ -350,7 +331,6 @@ config SND_INDIGO
 
 config SND_INDIGOIO
 	tristate "(Echoaudio) Indigo IO"
-	depends on SND
 	select FW_LOADER
 	select SND_PCM
 	help
@@ -361,7 +341,6 @@ config SND_INDIGOIO
 
 config SND_INDIGODJ
 	tristate "(Echoaudio) Indigo DJ"
-	depends on SND
 	select FW_LOADER
 	select SND_PCM
 	help
@@ -372,7 +351,6 @@ config SND_INDIGODJ
 
 config SND_EMU10K1
 	tristate "Emu10k1 (SB Live!, Audigy, E-mu APS)"
-	depends on SND
 	select FW_LOADER
 	select SND_HWDEP
 	select SND_RAWMIDI
@@ -390,7 +368,6 @@ config SND_EMU10K1
 
 config SND_EMU10K1X
 	tristate "Emu10k1X (Dell OEM Version)"
-	depends on SND
 	select SND_AC97_CODEC
 	select SND_RAWMIDI
 	help
@@ -402,7 +379,6 @@ config SND_EMU10K1X
 
 config SND_ENS1370
 	tristate "(Creative) Ensoniq AudioPCI 1370"
-	depends on SND
 	select SND_RAWMIDI
 	select SND_PCM
 	help
@@ -413,7 +389,6 @@ config SND_ENS1370
 
 config SND_ENS1371
 	tristate "(Creative) Ensoniq AudioPCI 1371/1373"
-	depends on SND
 	select SND_RAWMIDI
 	select SND_AC97_CODEC
 	help
@@ -425,7 +400,6 @@ config SND_ENS1371
 
 config SND_ES1938
 	tristate "ESS ES1938/1946/1969 (Solo-1)"
-	depends on SND
 	select SND_OPL3_LIB
 	select SND_MPU401_UART
 	select SND_AC97_CODEC
@@ -438,7 +412,6 @@ config SND_ES1938
 
 config SND_ES1968
 	tristate "ESS ES1968/1978 (Maestro-1/2/2E)"
-	depends on SND
 	select SND_MPU401_UART
 	select SND_AC97_CODEC
 	help
@@ -450,7 +423,6 @@ config SND_ES1968
 
 config SND_FM801
 	tristate "ForteMedia FM801"
-	depends on SND
 	select SND_OPL3_LIB
 	select SND_MPU401_UART
 	select SND_AC97_CODEC
@@ -480,7 +452,6 @@ config SND_FM801_TEA575X
 
 config SND_HDA_INTEL
 	tristate "Intel HD Audio"
-	depends on SND
 	select SND_PCM
 	help
 	  Say Y here to include support for Intel "High Definition
@@ -491,7 +462,6 @@ config SND_HDA_INTEL
 
 config SND_HDSP
 	tristate "RME Hammerfall DSP Audio"
-	depends on SND
 	select SND_HWDEP
 	select SND_RAWMIDI
 	select SND_PCM
@@ -504,7 +474,6 @@ config SND_HDSP
 
 config SND_HDSPM
 	tristate "RME Hammerfall DSP MADI"
-	depends on SND
 	select SND_HWDEP
 	select SND_RAWMIDI
 	select SND_PCM
@@ -517,7 +486,6 @@ config SND_HDSPM
 
 config SND_ICE1712
 	tristate "ICEnsemble ICE1712 (Envy24)"
-	depends on SND
 	select SND_MPU401_UART
 	select SND_AC97_CODEC
 	help
@@ -534,7 +502,6 @@ config SND_ICE1712
 
 config SND_ICE1724
 	tristate "ICE/VT1724/1720 (Envy24HT/PT)"
-	depends on SND
 	select SND_MPU401_UART
 	select SND_AC97_CODEC
 	help
@@ -551,7 +518,6 @@ config SND_ICE1724
 
 config SND_INTEL8X0
 	tristate "Intel/SiS/nVidia/AMD/ALi AC97 Controller"
-	depends on SND
 	select SND_AC97_CODEC
 	help
 	  Say Y here to include support for the integrated AC97 sound
@@ -564,7 +530,6 @@ config SND_INTEL8X0
 
 config SND_INTEL8X0M
 	tristate "Intel/SiS/nVidia/AMD MC97 Modem"
-	depends on SND
 	select SND_AC97_CODEC
 	help
 	  Say Y here to include support for the integrated MC97 modem on
@@ -575,7 +540,6 @@ config SND_INTEL8X0M
 
 config SND_KORG1212
 	tristate "Korg 1212 IO"
-	depends on SND
 	select FW_LOADER
 	select SND_PCM
 	help
@@ -595,7 +559,6 @@ config SND_KORG1212_FIRMWARE_IN_KERNEL
 
 config SND_MAESTRO3
 	tristate "ESS Allegro/Maestro3"
-	depends on SND
 	select FW_LOADER
 	select SND_AC97_CODEC
 	help
@@ -616,7 +579,6 @@ config SND_MAESTRO3_FIRMWARE_IN_KERNEL
 
 config SND_MIXART
 	tristate "Digigram miXart"
-	depends on SND
 	select SND_HWDEP
 	select SND_PCM
 	help
@@ -628,7 +590,6 @@ config SND_MIXART
 
 config SND_NM256
 	tristate "NeoMagic NM256AV/ZX"
-	depends on SND
 	select SND_AC97_CODEC
 	help
 	  Say Y here to include support for NeoMagic NM256AV/ZX chips.
@@ -638,7 +599,6 @@ config SND_NM256
 
 config SND_PCXHR
 	tristate "Digigram PCXHR"
-	depends on SND
 	select SND_PCM
 	select SND_HWDEP
 	help
@@ -649,7 +609,6 @@ config SND_PCXHR
 
 config SND_RIPTIDE
 	tristate "Conexant Riptide"
-	depends on SND
 	select FW_LOADER
 	select SND_OPL3_LIB
 	select SND_MPU401_UART
@@ -662,7 +621,6 @@ config SND_RIPTIDE
 
 config SND_RME32
 	tristate "RME Digi32, 32/8, 32 PRO"
-	depends on SND
 	select SND_PCM
 	help
 	  Say Y to include support for RME Digi32, Digi32 PRO and
@@ -674,7 +632,6 @@ config SND_RME32
 
 config SND_RME96
 	tristate "RME Digi96, 96/8, 96/8 PRO"
-	depends on SND
 	select SND_PCM
 	help
 	  Say Y here to include support for RME Digi96, Digi96/8 and
@@ -685,7 +642,6 @@ config SND_RME96
 
 config SND_RME9652
 	tristate "RME Digi9652 (Hammerfall)"
-	depends on SND
 	select SND_PCM
 	help
 	  Say Y here to include support for RME Hammerfall (RME
@@ -696,7 +652,6 @@ config SND_RME9652
 
 config SND_SONICVIBES
 	tristate "S3 SonicVibes"
-	depends on SND
 	select SND_OPL3_LIB
 	select SND_MPU401_UART
 	select SND_AC97_CODEC
@@ -709,7 +664,6 @@ config SND_SONICVIBES
 
 config SND_TRIDENT
 	tristate "Trident 4D-Wave DX/NX; SiS 7018"
-	depends on SND
 	select SND_MPU401_UART
 	select SND_AC97_CODEC
 	help
@@ -721,7 +675,6 @@ config SND_TRIDENT
 
 config SND_VIA82XX
 	tristate "VIA 82C686A/B, 8233/8235 AC97 Controller"
-	depends on SND
 	select SND_MPU401_UART
 	select SND_AC97_CODEC
 	help
@@ -733,7 +686,6 @@ config SND_VIA82XX
 
 config SND_VIA82XX_MODEM
 	tristate "VIA 82C686A/B, 8233 based Modems"
-	depends on SND
 	select SND_AC97_CODEC
 	help
 	  Say Y here to include support for the integrated MC97 modem on
@@ -744,7 +696,6 @@ config SND_VIA82XX_MODEM
 
 config SND_VX222
 	tristate "Digigram VX222"
-	depends on SND
 	select SND_VX_LIB
 	help
 	  Say Y here to include support for Digigram VX222 soundcards.
@@ -754,7 +705,6 @@ config SND_VX222
 
 config SND_YMFPCI
 	tristate "Yamaha YMF724/740/744/754"
-	depends on SND
 	select FW_LOADER
 	select SND_OPL3_LIB
 	select SND_MPU401_UART
@@ -788,4 +738,4 @@ config SND_AC97_POWER_SAVE
 	  snd-ac97-codec driver.  You can toggle it dynamically over
 	  sysfs, too.
 
-endmenu
+endif # SND_PCI_DRIVERS
--- linux-2.6.21-mm_20070428.orig/sound/pcmcia/Kconfig
+++ linux-2.6.21-mm_20070428/sound/pcmcia/Kconfig
@@ -1,11 +1,14 @@
 # ALSA PCMCIA drivers
 
-menu "PCMCIA devices"
-	depends on SND!=n && PCMCIA
+menuconfig SND_PCMCIA_DRIVERS
+	bool "PCMCIA devices"
+	depends on PCMCIA
+	default y
+
+if SND_PCMCIA_DRIVERS
 
 config SND_VXPOCKET
 	tristate "Digigram VXpocket"
-	depends on SND && PCMCIA
 	select SND_VX_LIB
 	help
 	  Say Y here to include support for Digigram VXpocket and
@@ -16,7 +19,6 @@ config SND_VXPOCKET
 
 config SND_PDAUDIOCF
 	tristate "Sound Core PDAudioCF"
-	depends on SND && PCMCIA
 	select SND_PCM
 	help
 	  Say Y here to include support for Sound Core PDAudioCF
@@ -25,4 +27,4 @@ config SND_PDAUDIOCF
 	  To compile this driver as a module, choose M here: the module
 	  will be called snd-pdaudiocf.
 
-endmenu
+endif # SND_PCMCIA_DRIVERS
--- linux-2.6.21-mm_20070428.orig/sound/ppc/Kconfig
+++ linux-2.6.21-mm_20070428/sound/ppc/Kconfig
@@ -1,17 +1,21 @@
 # ALSA PowerMac drivers
 
-menu "ALSA PowerMac devices"
-	depends on SND!=n && PPC
+menuconfig SND_PPC_DRIVERS
+	bool "ALSA PowerMac devices"
+	depends on PPC
+	default y
+
+if SND_PPC_DRIVERS
 
 comment "ALSA PowerMac requires I2C"
-	depends on SND && I2C=n
+	depends on I2C=n
 
 comment "ALSA PowerMac requires INPUT"
-	depends on SND && INPUT=n
+	depends on INPUT=n
 
 config SND_POWERMAC
 	tristate "PowerMac (AWACS, DACA, Burgundy, Tumbler, Keywest)"
-	depends on SND && I2C && INPUT && PPC_PMAC
+	depends on I2C && INPUT && PPC_PMAC
 	select SND_PCM
 	help
 	  Say Y here to include support for the integrated sound device.
@@ -32,4 +36,4 @@ config SND_POWERMAC_AUTO_DRC
 	  Note that you can turn on/off DRC manually even without this
 	  option.
 
-endmenu
+endif # SND_PPC_DRIVERS
--- linux-2.6.21-mm_20070428.orig/sound/soc/Kconfig
+++ linux-2.6.21-mm_20070428/sound/soc/Kconfig
@@ -2,15 +2,17 @@
 # SoC audio configuration
 #
 
-menu "System on Chip audio support"
-	depends on SND!=n
+menuconfig SND_SOC_DRIVERS
+	bool "System on Chip audio support"
+	default y
+
+if SND_SOC_DRIVERS
 
 config SND_SOC_AC97_BUS
 	bool
 
 config SND_SOC
 	tristate "ALSA for SoC audio support"
-	depends on SND
 	select SND_PCM
 	---help---
 
@@ -31,4 +33,4 @@ source "sound/soc/s3c24xx/Kconfig"
 # Supported codecs
 source "sound/soc/codecs/Kconfig"
 
-endmenu
+endif # SND_SOC_DRIVERS
--- linux-2.6.21-mm_20070428.orig/sound/soc/codecs/Kconfig
+++ linux-2.6.21-mm_20070428/sound/soc/codecs/Kconfig
@@ -1,19 +1,18 @@
+if SND_SOC
+
 config SND_SOC_AC97_CODEC
 	tristate
-	depends on SND_SOC
 
 config SND_SOC_WM8731
 	tristate
-	depends on SND_SOC
 
 config SND_SOC_WM8750
 	tristate
-	depends on SND_SOC
 
 config SND_SOC_WM8753
 	tristate
-	depends on SND_SOC
 
 config SND_SOC_WM9712
 	tristate
-	depends on SND_SOC
+
+endif # SND_SOC
--- linux-2.6.21-mm_20070428.orig/sound/sparc/Kconfig
+++ linux-2.6.21-mm_20070428/sound/sparc/Kconfig
@@ -1,11 +1,15 @@
 # ALSA Sparc drivers
 
-menu "ALSA Sparc devices"
-	depends on SND!=n && SPARC
+menuconfig SND_SPARC_DRIVERS
+	bool "ALSA Sparc devices"
+	depends on SPARC
+	default y
+
+if SND_SPARC_DRIVERS
 
 config SND_SUN_AMD7930
 	tristate "Sun AMD7930"
-	depends on SBUS && SND
+	depends on SBUS
 	select SND_PCM
 	help
 	  Say Y here to include support for AMD7930 sound device on Sun.
@@ -15,7 +19,6 @@ config SND_SUN_AMD7930
 
 config SND_SUN_CS4231
 	tristate "Sun CS4231"
-	depends on SND
 	select SND_PCM
 	help
 	  Say Y here to include support for CS4231 sound device on Sun.
@@ -25,7 +28,7 @@ config SND_SUN_CS4231
 
 config SND_SUN_DBRI
 	tristate "Sun DBRI"
-	depends on SND && SBUS
+	depends on SBUS
 	select SND_PCM
 	help
 	  Say Y here to include support for DBRI sound device on Sun.
@@ -33,4 +36,4 @@ config SND_SUN_DBRI
 	  To compile this driver as a module, choose M here: the module
 	  will be called snd-sun-dbri.
 
-endmenu
+endif # SND_SPARC_DRIVERS
--- linux-2.6.21-mm_20070428.orig/sound/usb/Kconfig
+++ linux-2.6.21-mm_20070428/sound/usb/Kconfig
@@ -1,11 +1,14 @@
 # ALSA USB drivers
 
-menu "USB devices"
-	depends on SND!=n && USB!=n
+menuconfig SND_USB_DRIVERS
+	bool "USB devices"
+	depends on USB
+	default y
+
+if SND_USB_DRIVERS
 
 config SND_USB_AUDIO
 	tristate "USB Audio/MIDI driver"
-	depends on SND && USB
 	select SND_HWDEP
 	select SND_RAWMIDI
 	select SND_PCM
@@ -18,7 +21,7 @@ config SND_USB_AUDIO
 
 config SND_USB_USX2Y
 	tristate "Tascam US-122, US-224 and US-428 USB driver"
-	depends on SND && USB && (X86 || PPC || ALPHA)
+	depends on X86 || PPC || ALPHA
 	select SND_HWDEP
 	select SND_RAWMIDI
 	select SND_PCM
@@ -31,7 +34,6 @@ config SND_USB_USX2Y
 
 config SND_USB_CAIAQ
 	tristate "Native Instruments USB audio devices"
-	 depends on SND && USB
 	 select SND_HWDEP
 	 select SND_RAWMIDI
 	 select SND_PCM
@@ -57,5 +59,4 @@ config SND_USB_CAIAQ_INPUT
 	   * Native Instruments RigKontrol2
 	   * Native Instruments Audio Kontrol 1
 
-endmenu
-
+endif # SND_USB_DRIVERS

^ permalink raw reply	[flat|nested] 70+ messages in thread

* [PATCH 29/36] Use menuconfig objects II - Telephony
  2007-04-30 11:03 [PATCH 00/36] Use menuconfig objects II - (overview) Jan Engelhardt
                   ` (27 preceding siblings ...)
  2007-04-30 11:52 ` [PATCH 28/36] Use menuconfig objects II - sound Jan Engelhardt
@ 2007-04-30 11:53 ` Jan Engelhardt
  2007-04-30 11:53 ` [PATCH 30/36] Use menuconfig objects II - TPM Jan Engelhardt
                   ` (6 subsequent siblings)
  35 siblings, 0 replies; 70+ messages in thread
From: Jan Engelhardt @ 2007-04-30 11:53 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Linux Kernel Mailing List


Change Kconfig objects from "menu, config" into "menuconfig" so
that the user can disable the whole feature without having to
enter the menu first.

Signed-off-by: Jan Engelhardt <jengelh@gmx.de>

---
 drivers/telephony/Kconfig |   12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

--- linux-2.6.21-mm_20070428.orig/drivers/telephony/Kconfig
+++ linux-2.6.21-mm_20070428/drivers/telephony/Kconfig
@@ -2,10 +2,8 @@
 # Telephony device configuration
 #
 
-menu "Telephony Support"
-
-config PHONE
-	tristate "Linux telephony support"
+menuconfig PHONE
+	tristate "Telephony support"
 	---help---
 	  Say Y here if you have a telephony card, which for example allows
 	  you to use a regular phone for voice-over-IP applications.
@@ -16,9 +14,10 @@ config PHONE
 	  To compile this driver as a module, choose M here: the
 	  module will be called phonedev.
 
+if PHONE
+
 config PHONE_IXJ
 	tristate "QuickNet Internet LineJack/PhoneJack support"
-	depends on PHONE
 	---help---
 	  Say M if you have a telephony card manufactured by Quicknet
 	  Technologies, Inc.  These include the Internet PhoneJACK and
@@ -43,5 +42,4 @@ config PHONE_IXJ_PCMCIA
 	  cards manufactured by Quicknet Technologies, Inc.  This changes the
 	  card initialization code to work with the card manager daemon.
 
-endmenu
-
+endif # PHONE

^ permalink raw reply	[flat|nested] 70+ messages in thread

* [PATCH 30/36] Use menuconfig objects II - TPM
  2007-04-30 11:03 [PATCH 00/36] Use menuconfig objects II - (overview) Jan Engelhardt
                   ` (28 preceding siblings ...)
  2007-04-30 11:53 ` [PATCH 29/36] Use menuconfig objects II - Telephony Jan Engelhardt
@ 2007-04-30 11:53 ` Jan Engelhardt
  2007-04-30 11:54 ` [PATCH 31/36] Use menuconfig objects II - UIO Jan Engelhardt
                   ` (5 subsequent siblings)
  35 siblings, 0 replies; 70+ messages in thread
From: Jan Engelhardt @ 2007-04-30 11:53 UTC (permalink / raw)
  To: Kylene Hall
  Cc: Linux Kernel Mailing List, Marcel Selhorst, tpmdd-devel, Andrew Morton


Change Kconfig objects from "menu, config" into "menuconfig" so
that the user can disable the whole feature without having to
enter the menu first.

Signed-off-by: Jan Engelhardt <jengelh@gmx.de>

---
 drivers/char/tpm/Kconfig |   16 +++++++---------
 1 file changed, 7 insertions(+), 9 deletions(-)

--- linux-2.6.21-mm_20070428.orig/drivers/char/tpm/Kconfig
+++ linux-2.6.21-mm_20070428/drivers/char/tpm/Kconfig
@@ -2,9 +2,7 @@
 # TPM device configuration
 #
 
-menu "TPM devices"
-
-config TCG_TPM
+menuconfig TCG_TPM
 	tristate "TPM Hardware Support"
 	depends on EXPERIMENTAL
 	---help---
@@ -20,9 +18,11 @@ config TCG_TPM
 	  Note: For more TPM drivers enable CONFIG_PNP, CONFIG_ACPI
 	  and CONFIG_PNPACPI.
 
+if TCG_TPM
+
 config TCG_TIS
 	tristate "TPM Interface Specification 1.2 Interface"
-	depends on TCG_TPM && PNPACPI
+	depends on PNPACPI
 	---help---
 	  If you have a TPM security chip that is compliant with the
 	  TCG TIS 1.2 TPM specification say Yes and it will be accessible
@@ -31,7 +31,7 @@ config TCG_TIS
 
 config TCG_NSC
 	tristate "National Semiconductor TPM Interface"
-	depends on TCG_TPM && PNPACPI
+	depends on PNPACPI
 	---help---
 	  If you have a TPM security chip from National Semicondutor 
 	  say Yes and it will be accessible from within Linux.  To 
@@ -40,7 +40,6 @@ config TCG_NSC
 
 config TCG_ATMEL
 	tristate "Atmel TPM Interface"
-	depends on TCG_TPM
 	---help---
 	  If you have a TPM security chip from Atmel say Yes and it 
 	  will be accessible from within Linux.  To compile this driver 
@@ -48,7 +47,7 @@ config TCG_ATMEL
 
 config TCG_INFINEON
 	tristate "Infineon Technologies TPM Interface"
-	depends on TCG_TPM && PNPACPI
+	depends on PNPACPI
 	---help---
 	  If you have a TPM security chip from Infineon Technologies
 	  (either SLD 9630 TT 1.1 or SLB 9635 TT 1.2) say Yes and it
@@ -58,5 +57,4 @@ config TCG_INFINEON
 	  Further information on this driver and the supported hardware
 	  can be found at http://www.prosec.rub.de/tpm
 
-endmenu
-
+endif # TCG_TPM

^ permalink raw reply	[flat|nested] 70+ messages in thread

* [PATCH 31/36] Use menuconfig objects II - UIO
  2007-04-30 11:03 [PATCH 00/36] Use menuconfig objects II - (overview) Jan Engelhardt
                   ` (29 preceding siblings ...)
  2007-04-30 11:53 ` [PATCH 30/36] Use menuconfig objects II - TPM Jan Engelhardt
@ 2007-04-30 11:54 ` Jan Engelhardt
  2007-04-30 11:55 ` [PATCH 32/36] Use menuconfig objects II - USB Jan Engelhardt
                   ` (4 subsequent siblings)
  35 siblings, 0 replies; 70+ messages in thread
From: Jan Engelhardt @ 2007-04-30 11:54 UTC (permalink / raw)
  To: Greg KH; +Cc: Linux Kernel Mailing List, Andrew Morton


Change Kconfig objects from "menu, config" into "menuconfig" so
that the user can disable the whole feature without having to
enter the menu first.

Signed-off-by: Jan Engelhardt <jengelh@gmx.de>

---
 drivers/uio/Kconfig |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

--- linux-2.6.21-mm_20070428.orig/drivers/uio/Kconfig
+++ linux-2.6.21-mm_20070428/drivers/uio/Kconfig
@@ -1,5 +1,4 @@
-menu "Userspace I/O"
-config UIO
+menuconfig UIO
 	tristate "Userspace I/O drivers"
 	default n
 	help
@@ -11,9 +10,10 @@ config UIO
 
 	  If you don't know what to do here, say N.
 
+if UIO
+
 config UIO_DUMMY
 	tristate "Userspace I/O dummy driver"
-	depends on UIO
 	default n
 	help
 	  This is an example dummy driver for the Userspace I/O
@@ -25,9 +25,9 @@ config UIO_DUMMY
 
 config UIO_CIF
 	tristate "generic Hilscher CIF Card driver"
-	depends on UIO && PCI
+	depends on PCI
 	default n
 	help
 	  Driver for Hilscher CIF cards.
 
-endmenu
+endif # UIO

^ permalink raw reply	[flat|nested] 70+ messages in thread

* [PATCH 32/36] Use menuconfig objects II - USB
  2007-04-30 11:03 [PATCH 00/36] Use menuconfig objects II - (overview) Jan Engelhardt
                   ` (30 preceding siblings ...)
  2007-04-30 11:54 ` [PATCH 31/36] Use menuconfig objects II - UIO Jan Engelhardt
@ 2007-04-30 11:55 ` Jan Engelhardt
  2007-04-30 11:56 ` [PATCH 33/36] Use menuconfig objects II - video/logo Jan Engelhardt
                   ` (3 subsequent siblings)
  35 siblings, 0 replies; 70+ messages in thread
From: Jan Engelhardt @ 2007-04-30 11:55 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: Linux Kernel Mailing List, Andrew Morton, linux-usb-devel


Make a "menuconfig" out of the Kconfig objects "menu, ..., endmenu",
so that the user can disable all the options in that menu at once
instead of having to disable each option separately.

Signed-off-by: Jan Engelhardt <jengelh@gmx.de>

---
 drivers/usb/Kconfig |    9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

--- linux-2.6.21-mm_20070428.orig/drivers/usb/Kconfig
+++ linux-2.6.21-mm_20070428/drivers/usb/Kconfig
@@ -2,7 +2,11 @@
 # USB device configuration
 #
 
-menu "USB support"
+menuconfig USB_SUPPORT
+	bool "USB support"
+	default y
+
+if USB_SUPPORT
 
 # Host-side USB depends on having a host controller
 # NOTE:  dummy_hcd is always an option, but it's ignored here ...
@@ -133,5 +137,4 @@ source "drivers/usb/atm/Kconfig"
 
 source "drivers/usb/gadget/Kconfig"
 
-endmenu
-
+endif # USB_SUPPORT

^ permalink raw reply	[flat|nested] 70+ messages in thread

* [PATCH 33/36] Use menuconfig objects II - video/logo
  2007-04-30 11:03 [PATCH 00/36] Use menuconfig objects II - (overview) Jan Engelhardt
                   ` (31 preceding siblings ...)
  2007-04-30 11:55 ` [PATCH 32/36] Use menuconfig objects II - USB Jan Engelhardt
@ 2007-04-30 11:56 ` Jan Engelhardt
  2007-05-01  0:08   ` Antonino A. Daplas
  2007-04-30 11:56 ` [PATCH 34/36] Use menuconfig objects II - watchdog Jan Engelhardt
                   ` (2 subsequent siblings)
  35 siblings, 1 reply; 70+ messages in thread
From: Jan Engelhardt @ 2007-04-30 11:56 UTC (permalink / raw)
  To: Antonino Daplas; +Cc: Linux Kernel Mailing List, Andrew Morton


Change Kconfig objects from "menu, config" into "menuconfig" so
that the user can disable the whole feature without having to
enter the menu first.

Signed-off-by: Jan Engelhardt <jengelh@gmx.de>

---
 drivers/video/logo/Kconfig |   30 +++++++++++++-----------------
 1 file changed, 13 insertions(+), 17 deletions(-)

--- linux-2.6.21-mm_20070428.orig/drivers/video/logo/Kconfig
+++ linux-2.6.21-mm_20070428/drivers/video/logo/Kconfig
@@ -2,73 +2,69 @@
 # Logo configuration
 #
 
-menu "Logo configuration"
-
-config LOGO
+menuconfig LOGO
 	bool "Bootup logo"
 	depends on FB || SGI_NEWPORT_CONSOLE
 	help
 	  Enable and select frame buffer bootup logos.
 
+if LOGO
+
 config LOGO_LINUX_MONO
 	bool "Standard black and white Linux logo"
-	depends on LOGO
 	default y
 
 config LOGO_LINUX_VGA16
 	bool "Standard 16-color Linux logo"
-	depends on LOGO
 	default y
 
 config LOGO_LINUX_CLUT224
 	bool "Standard 224-color Linux logo"
-	depends on LOGO
 	default y
 
 config LOGO_DEC_CLUT224
 	bool "224-color Digital Equipment Corporation Linux logo"
-	depends on LOGO && (MACH_DECSTATION || ALPHA)
+	depends on MACH_DECSTATION || ALPHA
 	default y
 
 config LOGO_MAC_CLUT224
 	bool "224-color Macintosh Linux logo"
-	depends on LOGO && MAC
+	depends on MAC
 	default y
 
 config LOGO_PARISC_CLUT224
 	bool "224-color PA-RISC Linux logo"
-	depends on LOGO && PARISC
+	depends on PARISC
 	default y
 
 config LOGO_SGI_CLUT224
 	bool "224-color SGI Linux logo"
-	depends on LOGO && (SGI_IP22 || SGI_IP27 || SGI_IP32 || X86_VISWS)
+	depends on SGI_IP22 || SGI_IP27 || SGI_IP32 || X86_VISWS
 	default y
 
 config LOGO_SUN_CLUT224
 	bool "224-color Sun Linux logo"
-	depends on LOGO && SPARC
+	depends on SPARC
 	default y
 
 config LOGO_SUPERH_MONO
 	bool "Black and white SuperH Linux logo"
-	depends on LOGO && SUPERH
+	depends on SUPERH
 	default y
 
 config LOGO_SUPERH_VGA16
 	bool "16-color SuperH Linux logo"
-	depends on LOGO && SUPERH
+	depends on SUPERH
 	default y
 
 config LOGO_SUPERH_CLUT224
 	bool "224-color SuperH Linux logo"
-	depends on LOGO && SUPERH
+	depends on SUPERH
 	default y
 
 config LOGO_M32R_CLUT224
 	bool "224-color M32R Linux logo"
-	depends on LOGO && M32R
+	depends on M32R
 	default y
 
-endmenu
-
+endif # LOGO

^ permalink raw reply	[flat|nested] 70+ messages in thread

* [PATCH 34/36] Use menuconfig objects II - watchdog
  2007-04-30 11:03 [PATCH 00/36] Use menuconfig objects II - (overview) Jan Engelhardt
                   ` (32 preceding siblings ...)
  2007-04-30 11:56 ` [PATCH 33/36] Use menuconfig objects II - video/logo Jan Engelhardt
@ 2007-04-30 11:56 ` Jan Engelhardt
  2007-04-30 12:30 ` [PATCH 35/36] Use menuconfig objects II - DVB Jan Engelhardt
  2007-04-30 12:30 ` [PATCH 36/36] Use menuconfig objects II - V4L Jan Engelhardt
  35 siblings, 0 replies; 70+ messages in thread
From: Jan Engelhardt @ 2007-04-30 11:56 UTC (permalink / raw)
  To: Wim Van Sebroeck; +Cc: Linux Kernel Mailing List, Andrew Morton


Change Kconfig objects from "menu, config" into "menuconfig" so
that the user can disable the whole feature without having to
enter the menu first.

Signed-off-by: Jan Engelhardt <jengelh@gmx.de>

---
 drivers/char/watchdog/Kconfig |  123 ++++++++++++++++++++----------------------
 1 file changed, 60 insertions(+), 63 deletions(-)

--- linux-2.6.21-mm_20070428.orig/drivers/char/watchdog/Kconfig
+++ linux-2.6.21-mm_20070428/drivers/char/watchdog/Kconfig
@@ -2,9 +2,7 @@
 # Watchdog device configuration
 #
 
-menu "Watchdog Cards"
-
-config WATCHDOG
+menuconfig WATCHDOG
 	bool "Watchdog Timer Support"
 	---help---
 	  If you say Y here (and to one of the following options) and create a
@@ -28,9 +26,10 @@ config WATCHDOG
 
 	  If unsure, say N.
 
+if WATCHDOG
+
 config WATCHDOG_NOWAYOUT
 	bool "Disable watchdog shutdown on close"
-	depends on WATCHDOG
 	help
 	  The default watchdog behaviour (which you get if you say N here) is
 	  to stop the timer if the process managing it closes the file
@@ -43,13 +42,11 @@ config WATCHDOG_NOWAYOUT
 #
 
 comment "Watchdog Device Drivers"
-	depends on WATCHDOG
 
 # Architecture Independent
 
 config SOFT_WATCHDOG
 	tristate "Software watchdog"
-	depends on WATCHDOG
 	help
 	  A software monitoring watchdog. This will fail to reboot your system
 	  from some situations that the hardware watchdog will recover
@@ -62,14 +59,14 @@ config SOFT_WATCHDOG
 
 config AT91RM9200_WATCHDOG
 	tristate "AT91RM9200 watchdog"
-	depends on WATCHDOG && ARCH_AT91RM9200
+	depends on ARCH_AT91RM9200
 	help
 	  Watchdog timer embedded into AT91RM9200 chips. This will reboot your
 	  system when the timeout is reached.
 
 config 21285_WATCHDOG
 	tristate "DC21285 watchdog"
-	depends on WATCHDOG && FOOTBRIDGE
+	depends on FOOTBRIDGE
 	help
 	  The Intel Footbridge chip contains a built-in watchdog circuit. Say Y
 	  here if you wish to use this. Alternatively say M to compile the
@@ -83,7 +80,7 @@ config 21285_WATCHDOG
 
 config 977_WATCHDOG
 	tristate "NetWinder WB83C977 watchdog"
-	depends on WATCHDOG && FOOTBRIDGE && ARCH_NETWINDER
+	depends on FOOTBRIDGE && ARCH_NETWINDER
 	help
 	  Say Y here to include support for the WB977 watchdog included in
 	  NetWinder machines. Alternatively say M to compile the driver as
@@ -93,7 +90,7 @@ config 977_WATCHDOG
 
 config IXP2000_WATCHDOG
 	tristate "IXP2000 Watchdog"
-	depends on WATCHDOG && ARCH_IXP2000
+	depends on ARCH_IXP2000
 	help
 	  Say Y here if to include support for the watchdog timer
 	  in the Intel IXP2000(2400, 2800, 2850) network processors.
@@ -104,7 +101,7 @@ config IXP2000_WATCHDOG
 
 config IXP4XX_WATCHDOG
 	tristate "IXP4xx Watchdog"
-	depends on WATCHDOG && ARCH_IXP4XX
+	depends on ARCH_IXP4XX
 	help
 	  Say Y here if to include support for the watchdog timer
 	  in the Intel IXP4xx network processors. This driver can
@@ -120,7 +117,7 @@ config IXP4XX_WATCHDOG
 
 config S3C2410_WATCHDOG
 	tristate "S3C2410 Watchdog"
-	depends on WATCHDOG && ARCH_S3C2410
+	depends on ARCH_S3C2410
 	help
 	  Watchdog timer block in the Samsung S3C2410 chips. This will
 	  reboot the system when the timer expires with the watchdog
@@ -136,7 +133,7 @@ config S3C2410_WATCHDOG
 
 config SA1100_WATCHDOG
 	tristate "SA1100/PXA2xx watchdog"
-	depends on WATCHDOG && ( ARCH_SA1100 || ARCH_PXA )
+	depends on ARCH_SA1100 || ARCH_PXA
 	help
 	  Watchdog timer embedded into SA11x0 and PXA2xx chips. This will
 	  reboot your system when timeout is reached.
@@ -148,7 +145,7 @@ config SA1100_WATCHDOG
 
 config MPCORE_WATCHDOG
 	tristate "MPcore watchdog"
-	depends on WATCHDOG && ARM_MPCORE_PLATFORM && LOCAL_TIMERS
+	depends on ARM_MPCORE_PLATFORM && LOCAL_TIMERS
 	help
 	  Watchdog timer embedded into the MPcore system.
 
@@ -157,7 +154,7 @@ config MPCORE_WATCHDOG
 
 config EP93XX_WATCHDOG
 	tristate "EP93xx Watchdog"
-	depends on WATCHDOG && ARCH_EP93XX
+	depends on ARCH_EP93XX
 	help
 	  Say Y here if to include support for the watchdog timer
 	  embedded in the Cirrus Logic EP93xx family of devices.
@@ -167,14 +164,14 @@ config EP93XX_WATCHDOG
 
 config OMAP_WATCHDOG
 	tristate "OMAP Watchdog"
-	depends on WATCHDOG && (ARCH_OMAP16XX || ARCH_OMAP24XX)
+	depends on ARCH_OMAP16XX || ARCH_OMAP24XX
 	help
 	  Support for TI OMAP1610/OMAP1710/OMAP2420 watchdog.  Say 'Y' here to
 	  enable the OMAP1610/OMAP1710 watchdog timer.
 
 config PNX4008_WATCHDOG
 	tristate "PNX4008 Watchdog"
-	depends on WATCHDOG && ARCH_PNX4008
+	depends on ARCH_PNX4008
 	help
 	  Say Y here if to include support for the watchdog timer
 	  in the PNX4008 processor.
@@ -187,7 +184,7 @@ config PNX4008_WATCHDOG
 
 config ACQUIRE_WDT
 	tristate "Acquire SBC Watchdog Timer"
-	depends on WATCHDOG && X86
+	depends on X86
 	---help---
 	  This is the driver for the hardware watchdog on Single Board
 	  Computers produced by Acquire Inc (and others). This watchdog
@@ -201,7 +198,7 @@ config ACQUIRE_WDT
 
 config ADVANTECH_WDT
 	tristate "Advantech SBC Watchdog Timer"
-	depends on WATCHDOG && X86
+	depends on X86
 	help
 	  If you are configuring a Linux kernel for the Advantech single-board
 	  computer, say `Y' here to support its built-in watchdog timer
@@ -210,7 +207,7 @@ config ADVANTECH_WDT
 
 config ALIM1535_WDT
 	tristate "ALi M1535 PMU Watchdog Timer"
-	depends on WATCHDOG && X86 && PCI
+	depends on X86 && PCI
 	---help---
 	  This is the driver for the hardware watchdog on the ALi M1535 PMU.
 
@@ -221,7 +218,7 @@ config ALIM1535_WDT
 
 config ALIM7101_WDT
 	tristate "ALi M7101 PMU Computer Watchdog"
-	depends on WATCHDOG && X86 && PCI
+	depends on X86 && PCI
 	help
 	  This is the driver for the hardware watchdog on the ALi M7101 PMU
 	  as used in the x86 Cobalt servers.
@@ -233,7 +230,7 @@ config ALIM7101_WDT
 
 config SC520_WDT
 	tristate "AMD Elan SC520 processor Watchdog"
-	depends on WATCHDOG && X86
+	depends on X86
 	help
 	  This is the driver for the hardware watchdog built in to the
 	  AMD "Elan" SC520 microcomputer commonly used in embedded systems.
@@ -246,7 +243,7 @@ config SC520_WDT
 
 config EUROTECH_WDT
 	tristate "Eurotech CPU-1220/1410 Watchdog Timer"
-	depends on WATCHDOG && X86
+	depends on X86
 	help
 	  Enable support for the watchdog timer on the Eurotech CPU-1220 and
 	  CPU-1410 cards.  These are PC/104 SBCs. Spec sheets and product
@@ -254,7 +251,7 @@ config EUROTECH_WDT
 
 config IB700_WDT
 	tristate "IB700 SBC Watchdog Timer"
-	depends on WATCHDOG && X86
+	depends on X86
 	---help---
 	  This is the driver for the hardware watchdog on the IB700 Single
 	  Board Computer produced by TMC Technology (www.tmc-uk.com). This watchdog
@@ -270,7 +267,7 @@ config IB700_WDT
 
 config IBMASR
 	tristate "IBM Automatic Server Restart"
-	depends on WATCHDOG && X86
+	depends on X86
 	help
 	  This is the driver for the IBM Automatic Server Restart watchdog
 	  timer built-in into some eServer xSeries machines.
@@ -280,7 +277,7 @@ config IBMASR
 
 config WAFER_WDT
 	tristate "ICP Wafer 5823 Single Board Computer Watchdog"
-	depends on WATCHDOG && X86
+	depends on X86
 	help
 	  This is a driver for the hardware watchdog on the ICP Wafer 5823
 	  Single Board Computer (and probably other similar models).
@@ -290,7 +287,7 @@ config WAFER_WDT
 
 config I6300ESB_WDT
 	tristate "Intel 6300ESB Timer/Watchdog"
-	depends on WATCHDOG && X86 && PCI
+	depends on X86 && PCI
 	---help---
 	  Hardware driver for the watchdog timer built into the Intel
 	  6300ESB controller hub.
@@ -300,7 +297,7 @@ config I6300ESB_WDT
 
 config I8XX_TCO
 	tristate "Intel i8xx TCO Timer/Watchdog"
-	depends on WATCHDOG && (X86 || IA64) && PCI
+	depends on (X86 || IA64) && PCI
 	default n
 	---help---
 	  Hardware driver for the TCO timer built into the Intel 82801
@@ -322,7 +319,7 @@ config I8XX_TCO
 
 config ITCO_WDT
 	tristate "Intel TCO Timer/Watchdog"
-	depends on WATCHDOG && (X86 || IA64) && PCI
+	depends on (X86 || IA64) && PCI
 	---help---
 	  Hardware driver for the intel TCO timer based watchdog devices.
 	  These drivers are included in the Intel 82801 I/O Controller
@@ -351,7 +348,7 @@ config ITCO_VENDOR_SUPPORT
 
 config SC1200_WDT
 	tristate "National Semiconductor PC87307/PC97307 (ala SC1200) Watchdog"
-	depends on WATCHDOG && X86
+	depends on X86
 	help
 	  This is a driver for National Semiconductor PC87307/PC97307 hardware
 	  watchdog cards as found on the SC1200. This watchdog is mainly used
@@ -365,7 +362,7 @@ config SC1200_WDT
 
 config SCx200_WDT
 	tristate "National Semiconductor SCx200 Watchdog"
-	depends on WATCHDOG && SCx200 && PCI
+	depends on SCx200 && PCI
 	help
 	  Enable the built-in watchdog timer support on the National
 	  Semiconductor SCx200 processors.
@@ -374,7 +371,7 @@ config SCx200_WDT
 
 config PC87413_WDT
 	tristate "NS PC87413 watchdog"
-	depends on WATCHDOG && X86
+	depends on X86
 	---help---
 	  This is the driver for the hardware watchdog on the PC87413 chipset
 	  This watchdog simply watches your kernel to make sure it doesn't
@@ -388,7 +385,7 @@ config PC87413_WDT
  
 config 60XX_WDT
 	tristate "SBC-60XX Watchdog Timer"
-	depends on WATCHDOG && X86
+	depends on X86
 	help
 	  This driver can be used with the watchdog timer found on some
 	  single board computers, namely the 6010 PII based computer.
@@ -402,7 +399,7 @@ config 60XX_WDT
 
 config SBC8360_WDT
 	tristate "SBC8360 Watchdog Timer"
-	depends on WATCHDOG && X86
+	depends on X86
 	---help---
 
 	  This is the driver for the hardware watchdog on the SBC8360 Single
@@ -415,7 +412,7 @@ config SBC8360_WDT
 
 config CPU5_WDT
 	tristate "SMA CPU5 Watchdog"
-	depends on WATCHDOG && X86
+	depends on X86
 	---help---
 	  TBD.
 	  To compile this driver as a module, choose M here: the
@@ -423,7 +420,7 @@ config CPU5_WDT
 
 config SMSC37B787_WDT
 	tristate "Winbond SMsC37B787 Watchdog Timer"
-	depends on WATCHDOG && X86
+	depends on X86
 	---help---
 	  This is the driver for the hardware watchdog component on the
 	  Winbond SMsC37B787 chipset as used on the NetRunner Mainboard
@@ -443,7 +440,7 @@ config SMSC37B787_WDT
 
 config W83627HF_WDT
 	tristate "W83627HF Watchdog Timer"
-	depends on WATCHDOG && X86
+	depends on X86
 	---help---
 	  This is the driver for the hardware watchdog on the W83627HF chipset
 	  as used in Advantech PC-9578 and Tyan S2721-533 motherboards
@@ -458,7 +455,7 @@ config W83627HF_WDT
 
 config W83697HF_WDT
 	tristate "W83697HF/W83697HG Watchdog Timer"
-	depends on WATCHDOG && X86
+	depends on X86
 	---help---
 	  This is the driver for the hardware watchdog on the W83697HF/HG
 	  chipset as used in Dedibox/VIA motherboards (and likely others).
@@ -473,7 +470,7 @@ config W83697HF_WDT
 
 config W83877F_WDT
 	tristate "W83877F (EMACS) Watchdog Timer"
-	depends on WATCHDOG && X86
+	depends on X86
 	---help---
 	  This is the driver for the hardware watchdog on the W83877F chipset
 	  as used in EMACS PC-104 motherboards (and likely others).  This
@@ -488,7 +485,7 @@ config W83877F_WDT
 
 config W83977F_WDT
 	tristate "W83977F (PCM-5335) Watchdog Timer"
-	depends on WATCHDOG && X86
+	depends on X86
 	---help---
 	  This is the driver for the hardware watchdog on the W83977F I/O chip
 	  as used in AAEON's PCM-5335 SBC (and likely others).  This
@@ -501,7 +498,7 @@ config W83977F_WDT
 
 config MACHZ_WDT
 	tristate "ZF MachZ Watchdog"
-	depends on WATCHDOG && X86
+	depends on X86
 	---help---
 	  If you are using a ZF Micro MachZ processor, say Y here, otherwise
 	  N.  This is the driver for the watchdog timer built-in on that
@@ -514,7 +511,7 @@ config MACHZ_WDT
 
 config SBC_EPX_C3_WATCHDOG
 	tristate "Winsystems SBC EPX-C3 watchdog"
-	depends on WATCHDOG && X86
+	depends on X86
 	---help---
 	  This is the driver for the built-in watchdog timer on the EPX-C3
 	  Single-board computer made by Winsystems, Inc.
@@ -537,19 +534,19 @@ config SBC_EPX_C3_WATCHDOG
 
 config 8xx_WDT
 	tristate "MPC8xx Watchdog Timer"
-	depends on WATCHDOG && 8xx
+	depends on 8xx
 
 config 83xx_WDT
 	tristate "MPC83xx Watchdog Timer"
-	depends on WATCHDOG && PPC_83xx
+	depends on PPC_83xx
 
 config MV64X60_WDT
 	tristate "MV64X60 (Marvell Discovery) Watchdog Timer"
-	depends on WATCHDOG && MV64X60
+	depends on MV64X60
 
 config BOOKE_WDT
 	tristate "PowerPC Book-E Watchdog Timer"
-	depends on WATCHDOG && (BOOKE || 4xx)
+	depends on BOOKE || 4xx
 	---help---
 	  Please see Documentation/watchdog/watchdog-api.txt for
 	  more information.
@@ -558,7 +555,7 @@ config BOOKE_WDT
 
 config WATCHDOG_RTAS
 	tristate "RTAS watchdog"
-	depends on WATCHDOG && PPC_RTAS
+	depends on PPC_RTAS
 	help
 	  This driver adds watchdog support for the RTAS watchdog.
 
@@ -569,7 +566,7 @@ config WATCHDOG_RTAS
 
 config INDYDOG
 	tristate "Indy/I2 Hardware Watchdog"
-	depends on WATCHDOG && SGI_IP22
+	depends on SGI_IP22
 	help
 	  Hardware driver for the Indy's/I2's watchdog. This is a
 	  watchdog timer that will reboot the machine after a 60 second
@@ -578,7 +575,7 @@ config INDYDOG
 
 config WDT_RM9K_GPI
 	tristate "RM9000/GPI hardware watchdog"
-	depends on WATCHDOG && CPU_RM9000
+	depends on CPU_RM9000
 	help
 	  Watchdog implementation using the GPI hardware found on
 	  PMC-Sierra RM9xxx CPUs.
@@ -590,7 +587,7 @@ config WDT_RM9K_GPI
 
 config ZVM_WATCHDOG
 	tristate "z/VM Watchdog Timer"
-	depends on WATCHDOG && S390
+	depends on S390
 	help
 	  IBM s/390 and zSeries machines running under z/VM 5.1 or later
 	  provide a virtual watchdog timer to their guest that cause a
@@ -604,7 +601,7 @@ config ZVM_WATCHDOG
 
 config SH_WDT
 	tristate "SuperH Watchdog"
-	depends on WATCHDOG && SUPERH
+	depends on SUPERH
 	help
 	  This driver adds watchdog support for the integrated watchdog in the
 	  SuperH processors. If you have one of these processors and wish
@@ -631,7 +628,7 @@ config SH_WDT_MMAP
 
 config WATCHDOG_CP1XXX
 	tristate "CP1XXX Hardware Watchdog support"
-	depends on WATCHDOG && SPARC64 && PCI
+	depends on SPARC64 && PCI
 	---help---
 	  This is the driver for the hardware watchdog timers present on
 	  Sun Microsystems CompactPCI models CP1400 and CP1500.
@@ -645,7 +642,7 @@ config WATCHDOG_CP1XXX
 
 config WATCHDOG_RIO
 	tristate "RIO Hardware Watchdog support"
-	depends on WATCHDOG && SPARC64 && PCI
+	depends on SPARC64 && PCI
 	help
 	  Say Y here to support the hardware watchdog capability on Sun RIO
 	  machines.  The watchdog timeout period is normally one minute but
@@ -656,11 +653,11 @@ config WATCHDOG_RIO
 #
 
 comment "ISA-based Watchdog Cards"
-	depends on WATCHDOG && ISA
+	depends on ISA
 
 config PCWATCHDOG
 	tristate "Berkshire Products ISA-PC Watchdog"
-	depends on WATCHDOG && ISA
+	depends on ISA
 	---help---
 	  This is the driver for the Berkshire Products ISA-PC Watchdog card.
 	  This card simply watches your kernel to make sure it doesn't freeze,
@@ -676,7 +673,7 @@ config PCWATCHDOG
 
 config MIXCOMWD
 	tristate "Mixcom Watchdog"
-	depends on WATCHDOG && ISA
+	depends on ISA
 	---help---
 	  This is a driver for the Mixcom hardware watchdog cards.  This
 	  watchdog simply watches your kernel to make sure it doesn't freeze,
@@ -690,7 +687,7 @@ config MIXCOMWD
 
 config WDT
 	tristate "WDT Watchdog timer"
-	depends on WATCHDOG && ISA
+	depends on ISA
 	---help---
 	  If you have a WDT500P or WDT501P watchdog board, say Y here,
 	  otherwise N. It is not possible to probe for this board, which means
@@ -720,11 +717,11 @@ config WDT_501
 #
 
 comment "PCI-based Watchdog Cards"
-	depends on WATCHDOG && PCI
+	depends on PCI
 
 config PCIPCWATCHDOG
 	tristate "Berkshire Products PCI-PC Watchdog"
-	depends on WATCHDOG && PCI
+	depends on PCI
 	---help---
 	  This is the driver for the Berkshire Products PCI-PC Watchdog card.
 	  This card simply watches your kernel to make sure it doesn't freeze,
@@ -739,7 +736,7 @@ config PCIPCWATCHDOG
 
 config WDTPCI
 	tristate "PCI-WDT500/501 Watchdog timer"
-	depends on WATCHDOG && PCI
+	depends on PCI
 	---help---
 	  If you have a PCI-WDT500/501 watchdog board, say Y here, otherwise N.
 
@@ -766,11 +763,11 @@ config WDT_501_PCI
 #
 
 comment "USB-based Watchdog Cards"
-	depends on WATCHDOG && USB
+	depends on USB
 
 config USBPCWATCHDOG
 	tristate "Berkshire Products USB-PC Watchdog"
-	depends on WATCHDOG && USB
+	depends on USB
 	---help---
 	  This is the driver for the Berkshire Products USB-PC Watchdog card.
 	  This card simply watches your kernel to make sure it doesn't freeze,
@@ -783,4 +780,4 @@ config USBPCWATCHDOG
 
 	  Most people will say N.
 
-endmenu
+endif # WATCHDOG

^ permalink raw reply	[flat|nested] 70+ messages in thread

* [PATCH 35/36] Use menuconfig objects II - DVB
  2007-04-30 11:03 [PATCH 00/36] Use menuconfig objects II - (overview) Jan Engelhardt
                   ` (33 preceding siblings ...)
  2007-04-30 11:56 ` [PATCH 34/36] Use menuconfig objects II - watchdog Jan Engelhardt
@ 2007-04-30 12:30 ` Jan Engelhardt
  2007-05-02 18:10   ` [v4l-dvb-maintainer] " Mauro Carvalho Chehab
  2007-04-30 12:30 ` [PATCH 36/36] Use menuconfig objects II - V4L Jan Engelhardt
  35 siblings, 1 reply; 70+ messages in thread
From: Jan Engelhardt @ 2007-04-30 12:30 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Linux Kernel Mailing List, v4l-dvb-maintainer


Change Kconfig objects from "menu, config" into "menuconfig" so
that the user can disable the whole feature without having to
enter the menu first.

Also remove one indirection (CONFIG_DVB) that does not seem to
be really used inside the kernel.

Signed-off-by: Jan Engelhardt <jengelh@gmx.de>

---
 drivers/media/Makefile             |    2 +-
 drivers/media/dvb/Kconfig          |   19 -------------------
 drivers/media/dvb/dvb-core/Kconfig |   16 +++++++++++++---
 3 files changed, 14 insertions(+), 23 deletions(-)

Index: linux-2.6.21-mm_20070428/drivers/media/Makefile
===================================================================
--- linux-2.6.21-mm_20070428.orig/drivers/media/Makefile
+++ linux-2.6.21-mm_20070428/drivers/media/Makefile
@@ -5,4 +5,4 @@
 obj-y := common/
 obj-$(CONFIG_VIDEO_DEV) += video/
 obj-$(CONFIG_VIDEO_DEV) += radio/
-obj-$(CONFIG_DVB)       += dvb/
+obj-$(CONFIG_DVB_CORE)  += dvb/
Index: linux-2.6.21-mm_20070428/drivers/media/dvb/Kconfig
===================================================================
--- linux-2.6.21-mm_20070428.orig/drivers/media/dvb/Kconfig
+++ linux-2.6.21-mm_20070428/drivers/media/dvb/Kconfig
@@ -2,23 +2,6 @@
 # Multimedia device configuration
 #
 
-menu "Digital Video Broadcasting Devices"
-
-config DVB
-	bool "DVB For Linux"
-	depends on NET && INET
-	---help---
-	  Support Digital Video Broadcasting hardware.  Enable this if you
-	  own a DVB adapter and want to use it or if you compile Linux for
-	  a digital SetTopBox.
-
-	  API specs and user tools are available from <http://www.linuxtv.org/>.
-
-	  Please report problems regarding this driver to the LinuxDVB
-	  mailing list.
-
-	  If unsure say N.
-
 source "drivers/media/dvb/dvb-core/Kconfig"
 
 comment "Supported SAA7146 based PCI Adapters"
@@ -47,5 +30,3 @@ source "drivers/media/dvb/pluto2/Kconfig
 comment "Supported DVB Frontends"
 	depends on DVB_CORE
 source "drivers/media/dvb/frontends/Kconfig"
-
-endmenu
Index: linux-2.6.21-mm_20070428/drivers/media/dvb/dvb-core/Kconfig
===================================================================
--- linux-2.6.21-mm_20070428.orig/drivers/media/dvb/dvb-core/Kconfig
+++ linux-2.6.21-mm_20070428/drivers/media/dvb/dvb-core/Kconfig
@@ -1,12 +1,22 @@
-config DVB_CORE
-	tristate "DVB Core Support"
-	depends on DVB
+menuconfig DVB_CORE
+	tristate "DVB for Linux"
+	depends on NET && INET
 	select CRC32
 	help
+	  Support Digital Video Broadcasting hardware.  Enable this if you
+	  own a DVB adapter and want to use it or if you compile Linux for
+	  a digital SetTopBox.
+
 	  DVB core utility functions for device handling, software fallbacks etc.
 	  Say Y when you have a DVB card and want to use it. Say Y if your want
 	  to build your drivers outside the kernel, but need the DVB core. All
 	  in-kernel drivers will select this automatically if needed.
+
+	  API specs and user tools are available from <http://www.linuxtv.org/>.
+
+	  Please report problems regarding this driver to the LinuxDVB
+	  mailing list.
+
 	  If unsure say N.
 
 config DVB_CORE_ATTACH

^ permalink raw reply	[flat|nested] 70+ messages in thread

* [PATCH 36/36] Use menuconfig objects II - V4L
  2007-04-30 11:03 [PATCH 00/36] Use menuconfig objects II - (overview) Jan Engelhardt
                   ` (34 preceding siblings ...)
  2007-04-30 12:30 ` [PATCH 35/36] Use menuconfig objects II - DVB Jan Engelhardt
@ 2007-04-30 12:30 ` Jan Engelhardt
  2007-05-02 18:03   ` [v4l-dvb-maintainer] " Mauro Carvalho Chehab
  35 siblings, 1 reply; 70+ messages in thread
From: Jan Engelhardt @ 2007-04-30 12:30 UTC (permalink / raw)
  To: v4l-dvb-maintainer
  Cc: Linux Kernel Mailing List, video4linux-list, Andrew Morton


Change Kconfig objects from "menu, config" into "menuconfig" so
that the user can disable the whole feature without having to
enter the menu first.

Signed-off-by: Jan Engelhardt <jengelh@gmx.de>

---
 drivers/media/radio/Kconfig           |    9 +++++--
 drivers/media/video/Kconfig           |   43 ++++++++++++++++++----------------
 drivers/media/video/em28xx/Kconfig    |    2 -
 drivers/media/video/et61x251/Kconfig  |    2 -
 drivers/media/video/pvrusb2/Kconfig   |    2 -
 drivers/media/video/pwc/Kconfig       |    2 -
 drivers/media/video/sn9c102/Kconfig   |    2 -
 drivers/media/video/usbvideo/Kconfig  |    8 +++---
 drivers/media/video/usbvision/Kconfig |    2 -
 drivers/media/video/zc0301/Kconfig    |    2 -
 10 files changed, 42 insertions(+), 32 deletions(-)

Index: linux-2.6.21-mm_20070428/drivers/media/radio/Kconfig
===================================================================
--- linux-2.6.21-mm_20070428.orig/drivers/media/radio/Kconfig
+++ linux-2.6.21-mm_20070428/drivers/media/radio/Kconfig
@@ -2,8 +2,12 @@
 # Multimedia Video device configuration
 #
 
-menu "Radio Adapters"
+menuconfig RADIO_ADAPTERS
+	bool "Radio Adapters"
 	depends on VIDEO_DEV
+	default y
+
+if RADIO_ADAPTERS
 
 config RADIO_CADET
 	tristate "ADS Cadet AM/FM Tuner"
@@ -328,4 +332,5 @@ config USB_DSBR
 
 	  To compile this driver as a module, choose M here: the
 	  module will be called dsbr100.
-endmenu
+
+endif # RADIO_ADAPTERS
Index: linux-2.6.21-mm_20070428/drivers/media/video/Kconfig
===================================================================
--- linux-2.6.21-mm_20070428.orig/drivers/media/video/Kconfig
+++ linux-2.6.21-mm_20070428/drivers/media/video/Kconfig
@@ -2,14 +2,15 @@
 # Multimedia Video device configuration
 #
 
-menu "Video Capture Adapters"
+menuconfig VIDEO_CAPTURE_DRIVERS
+	bool "Video capture adapters"
 	depends on VIDEO_DEV
+	default y
 
-comment "Video Capture Adapters"
+if VIDEO_CAPTURE_DRIVERS
 
 config VIDEO_ADV_DEBUG
 	bool "Enable advanced debug functionality"
-	depends on VIDEO_DEV
 	default n
 	---help---
 	  Say Y here to enable advanced debugging functionality on some
@@ -34,7 +35,7 @@ config VIDEO_HELPER_CHIPS_AUTO
 #
 
 menu "Encoders/decoders and other helper chips"
-	depends on VIDEO_DEV && !VIDEO_HELPER_CHIPS_AUTO
+	depends on !VIDEO_HELPER_CHIPS_AUTO
 
 comment "Audio decoders"
 
@@ -61,7 +62,7 @@ config VIDEO_TDA7432
 
 config VIDEO_TDA9840
 	tristate "Philips TDA9840 audio processor"
-	depends on VIDEO_DEV && I2C
+	depends on I2C
 	---help---
 	  Support for tda9840 audio decoder chip found on some Zoran boards.
 
@@ -79,7 +80,7 @@ config VIDEO_TDA9875
 
 config VIDEO_TEA6415C
 	tristate "Philips TEA6415C audio processor"
-	depends on VIDEO_DEV && I2C
+	depends on I2C
 	---help---
 	  Support for tea6415c audio decoder chip found on some bt8xx boards.
 
@@ -88,7 +89,7 @@ config VIDEO_TEA6415C
 
 config VIDEO_TEA6420
 	tristate "Philips TEA6420 audio processor"
-	depends on VIDEO_DEV && I2C
+	depends on I2C
 	---help---
 	  Support for tea6420 audio decoder chip found on some bt8xx boards.
 
@@ -469,7 +470,7 @@ config VIDEO_SAA5246A
 
 config VIDEO_SAA5249
 	tristate "SAA5249 Teletext processor"
-	depends on VIDEO_DEV && I2C && VIDEO_V4L2
+	depends on I2C && VIDEO_V4L2
 	help
 	  Support for I2C bus based teletext using the SAA5249 chip. At the
 	  moment this is only useful on some European WinTV cards.
@@ -479,14 +480,14 @@ config VIDEO_SAA5249
 
 config TUNER_3036
 	tristate "SAB3036 tuner"
-	depends on VIDEO_DEV && I2C && VIDEO_V4L1
+	depends on I2C && VIDEO_V4L1
 	help
 	  Say Y here to include support for Philips SAB3036 compatible tuners.
 	  If in doubt, say N.
 
 config TUNER_TEA5761
 	tristate "TEA 5761 radio tuner (EXPERIMENTAL)"
-	depends on VIDEO_DEV && I2C
+	depends on I2C
 	select VIDEO_TUNER
 	help
 	  Say Y here to include support for Philips TEA5761 radio tuner.
@@ -689,8 +690,12 @@ config VIDEO_CAFE_CCIC
 # USB Multimedia device configuration
 #
 
-menu "V4L USB devices"
-	depends on USB && VIDEO_DEV
+menuconfig V4L_USB_DRIVERS
+	bool "V4L USB devices"
+	depends on USB
+	default y
+
+if V4L_USB_DRIVERS
 
 source "drivers/media/video/pvrusb2/Kconfig"
 
@@ -715,7 +720,7 @@ config VIDEO_OVCAMCHIP
 
 config USB_W9968CF
 	tristate "USB W996[87]CF JPEG Dual Mode Camera support"
-	depends on USB && VIDEO_V4L1 && I2C
+	depends on VIDEO_V4L1 && I2C
 	select VIDEO_OVCAMCHIP
 	---help---
 	  Say Y here if you want support for cameras based on OV681 or
@@ -733,7 +738,7 @@ config USB_W9968CF
 
 config USB_OV511
 	tristate "USB OV511 Camera support"
-	depends on USB && VIDEO_V4L1
+	depends on VIDEO_V4L1
 	---help---
 	  Say Y here if you want to connect this type of camera to your
 	  computer's USB port. See <file:Documentation/video4linux/ov511.txt>
@@ -744,7 +749,7 @@ config USB_OV511
 
 config USB_SE401
 	tristate "USB SE401 Camera support"
-	depends on USB && VIDEO_V4L1
+	depends on VIDEO_V4L1
 	---help---
 	  Say Y here if you want to connect this type of camera to your
 	  computer's USB port. See <file:Documentation/video4linux/se401.txt>
@@ -757,7 +762,7 @@ source "drivers/media/video/sn9c102/Kcon
 
 config USB_STV680
 	tristate "USB STV680 (Pencam) Camera support"
-	depends on USB && VIDEO_V4L1
+	depends on VIDEO_V4L1
 	---help---
 	  Say Y here if you want to connect this type of camera to your
 	  computer's USB port. This includes the Pencam line of cameras.
@@ -773,7 +778,7 @@ source "drivers/media/video/pwc/Kconfig"
 
 config USB_ZR364XX
 	tristate "USB ZR364XX Camera support"
-	depends on USB && VIDEO_V4L2
+	depends on VIDEO_V4L2
 	---help---
 	  Say Y here if you want to connect this type of camera to your
 	  computer's USB port.
@@ -783,6 +788,6 @@ config USB_ZR364XX
 	  To compile this driver as a module, choose M here: the
 	  module will be called zr364xx.
 
-endmenu # V4L USB devices
+endif # V4L_USB_DRIVERS
 
-endmenu
+endif # VIDEO_CAPTURE_DRIVERS
Index: linux-2.6.21-mm_20070428/drivers/media/video/em28xx/Kconfig
===================================================================
--- linux-2.6.21-mm_20070428.orig/drivers/media/video/em28xx/Kconfig
+++ linux-2.6.21-mm_20070428/drivers/media/video/em28xx/Kconfig
@@ -1,6 +1,6 @@
 config VIDEO_EM28XX
 	tristate "Empia EM2800/2820/2840 USB video capture support"
-	depends on VIDEO_V4L1 && USB && I2C
+	depends on VIDEO_V4L1 && I2C
 	select VIDEO_BUF
 	select VIDEO_TUNER
 	select VIDEO_TVEEPROM
Index: linux-2.6.21-mm_20070428/drivers/media/video/et61x251/Kconfig
===================================================================
--- linux-2.6.21-mm_20070428.orig/drivers/media/video/et61x251/Kconfig
+++ linux-2.6.21-mm_20070428/drivers/media/video/et61x251/Kconfig
@@ -1,6 +1,6 @@
 config USB_ET61X251
 	tristate "USB ET61X[12]51 PC Camera Controller support"
-	depends on USB && VIDEO_V4L1
+	depends on VIDEO_V4L1
 	---help---
 	  Say Y here if you want support for cameras based on Etoms ET61X151
 	  or ET61X251 PC Camera Controllers.
Index: linux-2.6.21-mm_20070428/drivers/media/video/pvrusb2/Kconfig
===================================================================
--- linux-2.6.21-mm_20070428.orig/drivers/media/video/pvrusb2/Kconfig
+++ linux-2.6.21-mm_20070428/drivers/media/video/pvrusb2/Kconfig
@@ -1,6 +1,6 @@
 config VIDEO_PVRUSB2
 	tristate "Hauppauge WinTV-PVR USB2 support"
-	depends on VIDEO_V4L2 && USB && I2C && EXPERIMENTAL
+	depends on VIDEO_V4L2 && I2C && EXPERIMENTAL
 	select FW_LOADER
 	select VIDEO_TUNER
 	select VIDEO_TVEEPROM
Index: linux-2.6.21-mm_20070428/drivers/media/video/pwc/Kconfig
===================================================================
--- linux-2.6.21-mm_20070428.orig/drivers/media/video/pwc/Kconfig
+++ linux-2.6.21-mm_20070428/drivers/media/video/pwc/Kconfig
@@ -1,6 +1,6 @@
 config USB_PWC
 	tristate "USB Philips Cameras"
-	depends on USB && VIDEO_V4L1
+	depends on VIDEO_V4L1
 	---help---
 	  Say Y or M here if you want to use one of these Philips & OEM
 	  webcams:
Index: linux-2.6.21-mm_20070428/drivers/media/video/sn9c102/Kconfig
===================================================================
--- linux-2.6.21-mm_20070428.orig/drivers/media/video/sn9c102/Kconfig
+++ linux-2.6.21-mm_20070428/drivers/media/video/sn9c102/Kconfig
@@ -1,6 +1,6 @@
 config USB_SN9C102
 	tristate "USB SN9C1xx PC Camera Controller support"
-	depends on USB && VIDEO_V4L2
+	depends on VIDEO_V4L2
 	---help---
 	  Say Y here if you want support for cameras based on SONiX SN9C101,
 	  SN9C102, SN9C103, SN9C105 and SN9C120 PC Camera Controllers.
Index: linux-2.6.21-mm_20070428/drivers/media/video/usbvideo/Kconfig
===================================================================
--- linux-2.6.21-mm_20070428.orig/drivers/media/video/usbvideo/Kconfig
+++ linux-2.6.21-mm_20070428/drivers/media/video/usbvideo/Kconfig
@@ -3,7 +3,7 @@ config VIDEO_USBVIDEO
 
 config USB_VICAM
 	tristate "USB 3com HomeConnect (aka vicam) support (EXPERIMENTAL)"
-	depends on USB && VIDEO_DEV && VIDEO_V4L1 && EXPERIMENTAL
+	depends on VIDEO_V4L1 && EXPERIMENTAL
 	select VIDEO_USBVIDEO
 	---help---
 	  Say Y here if you have 3com homeconnect camera (vicam).
@@ -13,7 +13,7 @@ config USB_VICAM
 
 config USB_IBMCAM
 	tristate "USB IBM (Xirlink) C-it Camera support"
-	depends on USB && VIDEO_DEV && VIDEO_V4L1
+	depends on VIDEO_V4L1
 	select VIDEO_USBVIDEO
 	---help---
 	  Say Y here if you want to connect a IBM "C-It" camera, also known as
@@ -28,7 +28,7 @@ config USB_IBMCAM
 
 config USB_KONICAWC
 	tristate "USB Konica Webcam support"
-	depends on USB && VIDEO_DEV && VIDEO_V4L1
+	depends on VIDEO_V4L1
 	select VIDEO_USBVIDEO
 	---help---
 	  Say Y here if you want support for webcams based on a Konica
@@ -39,7 +39,7 @@ config USB_KONICAWC
 
 config USB_QUICKCAM_MESSENGER
 	tristate "USB Logitech Quickcam Messenger"
-	depends on USB && VIDEO_DEV && VIDEO_V4L1
+	depends on VIDEO_V4L1
 	select VIDEO_USBVIDEO
 	---help---
 	  Say Y or M here to enable support for the USB Logitech Quickcam
Index: linux-2.6.21-mm_20070428/drivers/media/video/usbvision/Kconfig
===================================================================
--- linux-2.6.21-mm_20070428.orig/drivers/media/video/usbvision/Kconfig
+++ linux-2.6.21-mm_20070428/drivers/media/video/usbvision/Kconfig
@@ -1,6 +1,6 @@
 config VIDEO_USBVISION
 	tristate "USB video devices based on Nogatech NT1003/1004/1005"
-	depends on I2C && VIDEO_V4L2 && USB
+	depends on I2C && VIDEO_V4L2
 	select VIDEO_TUNER
 	select VIDEO_SAA711X if VIDEO_HELPER_CHIPS_AUTO
 	---help---
Index: linux-2.6.21-mm_20070428/drivers/media/video/zc0301/Kconfig
===================================================================
--- linux-2.6.21-mm_20070428.orig/drivers/media/video/zc0301/Kconfig
+++ linux-2.6.21-mm_20070428/drivers/media/video/zc0301/Kconfig
@@ -1,6 +1,6 @@
 config USB_ZC0301
 	tristate "USB ZC0301[P] Image Processor and Control Chip support"
-	depends on USB && VIDEO_V4L1
+	depends on VIDEO_V4L1
 	---help---
 	  Say Y here if you want support for cameras based on the ZC0301 or
 	  ZC0301P Image Processors and Control Chips.

^ permalink raw reply	[flat|nested] 70+ messages in thread

* Re: [PATCH 13/36] Use menuconfig objects II - KVM/Virt
  2007-04-30 11:35 ` [PATCH 13/36] Use menuconfig objects II - KVM/Virt Jan Engelhardt
@ 2007-04-30 13:45   ` Avi Kivity
  0 siblings, 0 replies; 70+ messages in thread
From: Avi Kivity @ 2007-04-30 13:45 UTC (permalink / raw)
  To: Jan Engelhardt; +Cc: Linux Kernel Mailing List, kvm-devel, Andrew Morton

Jan Engelhardt wrote:
> Make a "menuconfig" out of the Kconfig objects "menu, ..., endmenu",
> so that the user can disable all the options in that menu at once
> instead of having to disable each option separately.
>
> Signed-off-by: Jan Engelhardt <jengelh@gmx.de>
>   

Acked-by: Avi Kivity <avi@qumranet.com>

-- 
error compiling committee.c: too many arguments to function


^ permalink raw reply	[flat|nested] 70+ messages in thread

* Re: [PATCH 18/36] Use menuconfig objects II - MMC
  2007-04-30 11:40 ` [PATCH 18/36] Use menuconfig objects II - MMC Jan Engelhardt
@ 2007-04-30 13:51   ` Pierre Ossman
  2007-05-01 15:57   ` Pierre Ossman
  1 sibling, 0 replies; 70+ messages in thread
From: Pierre Ossman @ 2007-04-30 13:51 UTC (permalink / raw)
  To: Jan Engelhardt; +Cc: Linux Kernel Mailing List, Andrew Morton

Jan Engelhardt wrote:
> Change Kconfig objects from "menu, config" into "menuconfig" so
> that the user can disable the whole feature without having to
> enter the menu first.
> 
> Signed-off-by: Jan Engelhardt <jengelh@gmx.de>
> 

Just a heads up, I'll be pushing the restructuring stuff to Linus in a bit and
it will most likely break this patch. I'll hack together an update and send to you.

Rgds
-- 
     -- Pierre Ossman

  Linux kernel, MMC maintainer        http://www.kernel.org
  PulseAudio, core developer          http://pulseaudio.org
  rdesktop, core developer          http://www.rdesktop.org

^ permalink raw reply	[flat|nested] 70+ messages in thread

* Re: [PATCH 28/36] Use menuconfig objects II - sound
  2007-04-30 11:52 ` [PATCH 28/36] Use menuconfig objects II - sound Jan Engelhardt
@ 2007-04-30 14:19   ` Johannes Berg
  2007-04-30 14:25     ` Johannes Berg
                       ` (2 more replies)
  2007-04-30 15:21   ` [PATCH 28/36 #2] " Jan Engelhardt
  1 sibling, 3 replies; 70+ messages in thread
From: Johannes Berg @ 2007-04-30 14:19 UTC (permalink / raw)
  To: Jan Engelhardt
  Cc: Jaroslav Kysela, Linux Kernel Mailing List, Andrew Morton, Liam Girdwood

Jan,

Thanks for doing this.

> --- linux-2.6.21-mm_20070428.orig/sound/aoa/Kconfig
> +++ linux-2.6.21-mm_20070428/sound/aoa/Kconfig
> @@ -1,9 +1,12 @@
[...]

For the aoa bits this ends up having two "Apple Onboard Audio driver"
bits which is a bit confusing. How about this instead? SND_AOA was
pretty much a generic symbol to start with since it will cause snd-aoa
to be compiled but is pretty much useless on it's own. This hence makes
the core bits an invisible symbol.

--- wireless-dev.orig/sound/aoa/Kconfig	2006-10-08 19:56:35.000000000 +0200
+++ wireless-dev/sound/aoa/Kconfig	2007-04-30 16:18:12.935651366 +0200
@@ -1,13 +1,15 @@
-menu "Apple Onboard Audio driver"
-	depends on SND!=n && PPC_PMAC
-
-config SND_AOA
-	tristate "Apple Onboard Audio driver"
-	depends on SND
+menuconfig SND_AOA
+	bool "Apple Onboard Audio driver"
+	depends on PPC_PMAC
 	select SND_PCM
-	---help---
-	This option enables the new driver for the various
-	Apple Onboard Audio components.
+	help
+	  This option enables the new driver for the various
+	  Apple Onboard Audio components.
+
+if SND_AOA
+
+config SND_AOA_CORE
+	tristate
 
 source "sound/aoa/fabrics/Kconfig"
 
@@ -15,4 +17,4 @@ source "sound/aoa/codecs/Kconfig"
 
 source "sound/aoa/soundbus/Kconfig"
 
-endmenu
+endif # SND_AOA
--- wireless-dev.orig/sound/aoa/codecs/Kconfig	2007-04-30 16:15:56.375651366 +0200
+++ wireless-dev/sound/aoa/codecs/Kconfig	2007-04-30 16:16:28.775651366 +0200
@@ -1,8 +1,8 @@
 config SND_AOA_ONYX
 	tristate "support Onyx chip"
-	depends on SND_AOA
 	select I2C
 	select I2C_POWERMAC
+	select SND_AOA_CORE
 	---help---
 	This option enables support for the Onyx (pcm3052)
 	codec chip found in the latest Apple machines
@@ -10,7 +10,7 @@ config SND_AOA_ONYX
 
 config SND_AOA_TOPAZ
 	tristate "support Topaz chips"
-	depends on SND_AOA
+	select SND_AOA_CORE
 	---help---
 	This option enables support for the Topaz (CS84xx)
 	codec chips found in the latest Apple machines,
@@ -22,9 +22,9 @@ config SND_AOA_TOPAZ
 
 config SND_AOA_TAS
 	tristate "support TAS chips"
-	depends on SND_AOA
 	select I2C
 	select I2C_POWERMAC
+	select SND_AOA_CORE
 	---help---
 	This option enables support for the tas chips
 	found in a lot of Apple Machines, especially
@@ -32,7 +32,7 @@ config SND_AOA_TAS
 
 config SND_AOA_TOONIE
 	tristate "support Toonie chip"
-	depends on SND_AOA
+	select SND_AOA_CORE
 	---help---
 	This option enables support for the toonie codec
 	found in the Mac Mini. If you have a Mac Mini and
--- wireless-dev.orig/sound/aoa/core/Makefile	2007-04-30 16:14:29.335651366 +0200
+++ wireless-dev/sound/aoa/core/Makefile	2007-04-30 16:14:51.795651366 +0200
@@ -1,4 +1,4 @@
-obj-$(CONFIG_SND_AOA) += snd-aoa.o
+obj-$(CONFIG_SND_AOA_CORE) += snd-aoa.o
 snd-aoa-objs := snd-aoa-core.o \
 		snd-aoa-alsa.o \
 		snd-aoa-gpio-pmf.o \
--- wireless-dev.orig/sound/aoa/fabrics/Kconfig	2007-04-30 16:15:42.275651366 +0200
+++ wireless-dev/sound/aoa/fabrics/Kconfig	2007-04-30 16:16:31.845651366 +0200
@@ -1,8 +1,8 @@
 config SND_AOA_FABRIC_LAYOUT
 	tristate "layout-id fabric"
-	depends on SND_AOA
 	select SND_AOA_SOUNDBUS
 	select SND_AOA_SOUNDBUS_I2S
+	select SND_AOA_CORE
 	---help---
 	This enables the layout-id fabric for the Apple Onboard
 	Audio driver, the module holding it all together



^ permalink raw reply	[flat|nested] 70+ messages in thread

* Re: [PATCH 28/36] Use menuconfig objects II - sound
  2007-04-30 14:19   ` Johannes Berg
@ 2007-04-30 14:25     ` Johannes Berg
  2007-04-30 14:45     ` Jan Engelhardt
  2007-04-30 15:12     ` Jan Engelhardt
  2 siblings, 0 replies; 70+ messages in thread
From: Johannes Berg @ 2007-04-30 14:25 UTC (permalink / raw)
  To: Jan Engelhardt
  Cc: Jaroslav Kysela, Linux Kernel Mailing List, Andrew Morton, Liam Girdwood

[-- Attachment #1: Type: text/plain, Size: 231 bytes --]


> For the aoa bits this ends up having two "Apple Onboard Audio driver"
> bits which is a bit confusing. How about this instead?

I can of course do that on top of your change instead if that's easier
to handle.

johannes

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 190 bytes --]

^ permalink raw reply	[flat|nested] 70+ messages in thread

* Re: [PATCH 11/36] Use menuconfig objects II - IPMI
  2007-04-30 11:33 ` [PATCH 11/36] Use menuconfig objects II - IPMI Jan Engelhardt
@ 2007-04-30 14:43   ` Corey Minyard
  0 siblings, 0 replies; 70+ messages in thread
From: Corey Minyard @ 2007-04-30 14:43 UTC (permalink / raw)
  To: Jan Engelhardt
  Cc: Linux Kernel Mailing List, openipmi-developer, Andrew Morton

I checked this out and it seems to work fine.  This does seem a little
nicer than the way it was, so if this is the way the kernel is heading
I'll ack it.

-corey

Jan Engelhardt wrote:
> Change Kconfig objects from "menu, config" into "menuconfig" so
> that the user can disable the whole feature without having to
> enter the menu first.
>
> Signed-off-by: Jan Engelhardt <jengelh@gmx.de>
>
> ---
>  drivers/char/ipmi/Kconfig |   12 ++++--------
>  1 file changed, 4 insertions(+), 8 deletions(-)
>
> --- linux-2.6.21-mm_20070428.orig/drivers/char/ipmi/Kconfig
> +++ linux-2.6.21-mm_20070428/drivers/char/ipmi/Kconfig
> @@ -2,8 +2,7 @@
>  # IPMI device configuration
>  #
>  
> -menu "IPMI"
> -config IPMI_HANDLER
> +menuconfig IPMI_HANDLER
>         tristate 'IPMI top-level message handler'
>         help
>           This enables the central IPMI message handler, required for IPMI
> @@ -16,9 +15,10 @@ config IPMI_HANDLER
>  
>  	 If unsure, say N.
>  
> +if IPMI_HANDLER
> +
>  config IPMI_PANIC_EVENT
>         bool 'Generate a panic event to all BMCs on a panic'
> -       depends on IPMI_HANDLER
>         help
>           When a panic occurs, this will cause the IPMI message handler to
>  	 generate an IPMI event describing the panic to each interface
> @@ -38,14 +38,12 @@ config IPMI_PANIC_STRING
>  
>  config IPMI_DEVICE_INTERFACE
>         tristate 'Device interface for IPMI'
> -       depends on IPMI_HANDLER
>         help
>           This provides an IOCTL interface to the IPMI message handler so
>  	 userland processes may use IPMI.  It supports poll() and select().
>  
>  config IPMI_SI
>         tristate 'IPMI System Interface handler'
> -       depends on IPMI_HANDLER
>         help
>           Provides a driver for System Interfaces (KCS, SMIC, BT).
>  	 Currently, only KCS and SMIC are supported.  If
> @@ -53,15 +51,13 @@ config IPMI_SI
>  
>  config IPMI_WATCHDOG
>         tristate 'IPMI Watchdog Timer'
> -       depends on IPMI_HANDLER
>         help
>           This enables the IPMI watchdog timer.
>  
>  config IPMI_POWEROFF
>         tristate 'IPMI Poweroff'
> -       depends on IPMI_HANDLER
>         help
>           This enables a function to power off the system with IPMI if
>  	 the IPMI management controller is capable of this.
>  
> -endmenu
> +endif # IPMI_HANDLER
>   


^ permalink raw reply	[flat|nested] 70+ messages in thread

* Re: [PATCH 28/36] Use menuconfig objects II - sound
  2007-04-30 14:19   ` Johannes Berg
  2007-04-30 14:25     ` Johannes Berg
@ 2007-04-30 14:45     ` Jan Engelhardt
  2007-04-30 14:55       ` Johannes Berg
  2007-04-30 15:12     ` Jan Engelhardt
  2 siblings, 1 reply; 70+ messages in thread
From: Jan Engelhardt @ 2007-04-30 14:45 UTC (permalink / raw)
  To: Johannes Berg
  Cc: Jaroslav Kysela, Linux Kernel Mailing List, Andrew Morton, Liam Girdwood


On Apr 30 2007 16:19, Johannes Berg wrote:
>
>> --- linux-2.6.21-mm_20070428.orig/sound/aoa/Kconfig
>> +++ linux-2.6.21-mm_20070428/sound/aoa/Kconfig
>> @@ -1,9 +1,12 @@
>[...]
>
>For the aoa bits this ends up having two "Apple Onboard Audio driver"
>bits which is a bit confusing.

What, where? Oh damn.

> How about this instead? SND_AOA was
>pretty much a generic symbol to start with since it will cause snd-aoa
>to be compiled but is pretty much useless on it's own. This hence makes
>the core bits an invisible symbol.
>
>--- wireless-dev.orig/sound/aoa/Kconfig	2006-10-08 19:56:35.000000000 +0200
>+++ wireless-dev/sound/aoa/Kconfig	2007-04-30 16:18:12.935651366 +0200
>@@ -1,13 +1,15 @@
>+menuconfig SND_AOA
>+	bool "Apple Onboard Audio driver"
>+	depends on PPC_PMAC
> 	select SND_PCM
>-	---help---
>-	This option enables the new driver for the various
>-	Apple Onboard Audio components.
>+	help
>+	  This option enables the new driver for the various
>+	  Apple Onboard Audio components.
>+
>+if SND_AOA
>+
>+config SND_AOA_CORE
>+	tristate

Why the extra AOA_CORE? Are there some options that require only AOA
but not AOA_CORE?


Jan
-- 

^ permalink raw reply	[flat|nested] 70+ messages in thread

* Re: [PATCH 28/36] Use menuconfig objects II - sound
  2007-04-30 14:45     ` Jan Engelhardt
@ 2007-04-30 14:55       ` Johannes Berg
  0 siblings, 0 replies; 70+ messages in thread
From: Johannes Berg @ 2007-04-30 14:55 UTC (permalink / raw)
  To: Jan Engelhardt
  Cc: Jaroslav Kysela, Linux Kernel Mailing List, Andrew Morton, Liam Girdwood

[-- Attachment #1: Type: text/plain, Size: 374 bytes --]

On Mon, 2007-04-30 at 16:45 +0200, Jan Engelhardt wrote:

> >+config SND_AOA_CORE
> >+	tristate
> 
> Why the extra AOA_CORE? Are there some options that require only AOA
> but not AOA_CORE?

Oh, I did the extra AOA_CORE so that AOA doesn't affect the build at all
and because it's useless to build the core module without any of the
codecs or busses.

johannes

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 190 bytes --]

^ permalink raw reply	[flat|nested] 70+ messages in thread

* Re: [PATCH 28/36] Use menuconfig objects II - sound
  2007-04-30 14:19   ` Johannes Berg
  2007-04-30 14:25     ` Johannes Berg
  2007-04-30 14:45     ` Jan Engelhardt
@ 2007-04-30 15:12     ` Jan Engelhardt
  2007-04-30 15:14       ` Jan Engelhardt
  2 siblings, 1 reply; 70+ messages in thread
From: Jan Engelhardt @ 2007-04-30 15:12 UTC (permalink / raw)
  To: Johannes Berg
  Cc: Jaroslav Kysela, Linux Kernel Mailing List, Andrew Morton, Liam Girdwood


On Apr 30 2007 16:19, Johannes Berg wrote:
>
>For the aoa bits this ends up having two "Apple Onboard Audio driver"
>bits which is a bit confusing.

Hold it hold it. You confuse the hell out of me. :p
There is exactly one SND_AOA in my patch, where do you see the second
menu entry in menuconfig?
(Also note that I don't see a way to make CONFIG_PPC_PMAC turn up anyhow in
`make menuconfig ARCH=ppc`!)



Jan
-- 

^ permalink raw reply	[flat|nested] 70+ messages in thread

* Re: [PATCH 28/36] Use menuconfig objects II - sound
  2007-04-30 15:12     ` Jan Engelhardt
@ 2007-04-30 15:14       ` Jan Engelhardt
  0 siblings, 0 replies; 70+ messages in thread
From: Jan Engelhardt @ 2007-04-30 15:14 UTC (permalink / raw)
  To: Johannes Berg; +Cc: Linux Kernel Mailing List

On Apr 30 2007 17:12, Jan Engelhardt wrote:
>On Apr 30 2007 16:19, Johannes Berg wrote:
>>
>>For the aoa bits this ends up having two "Apple Onboard Audio driver"
>>bits which is a bit confusing.
>
>Hold it hold it. You confuse the hell out of me. :p
>There is exactly one SND_AOA in my patch, where do you see the second
>menu entry in menuconfig?
>(Also note that I don't see a way to make CONFIG_PPC_PMAC turn up anyhow in
>`make menuconfig ARCH=ppc`!)

Argh... my local copy of the patch got twisted. I perhaps should redo it 
from a base kernel - and sorry for the extra mail noise.


Jan
-- 

^ permalink raw reply	[flat|nested] 70+ messages in thread

* Re: [PATCH 28/36 #2] Use menuconfig objects II - sound
  2007-04-30 11:52 ` [PATCH 28/36] Use menuconfig objects II - sound Jan Engelhardt
  2007-04-30 14:19   ` Johannes Berg
@ 2007-04-30 15:21   ` Jan Engelhardt
  2007-04-30 15:41     ` Johannes Berg
  1 sibling, 1 reply; 70+ messages in thread
From: Jan Engelhardt @ 2007-04-30 15:21 UTC (permalink / raw)
  To: Jaroslav Kysela
  Cc: Linux Kernel Mailing List, Andrew Morton, Johannes Berg, Liam Girdwood


Somehow I managed to have the wrong patch on the MUA machine.
Here's the updated thing wrt. AOA.


CONFIG_SOUND, CONFIG_SND, CONFIG_SOUND_PRIME, ...:
Change Kconfig objects from "menu, config" into "menuconfig" so
that the user can disable the whole feature without having to
enter the menu first.

CONFIG_SND_*_DRIVERS:
Make a "menuconfig" out of the Kconfig objects "menu, ..., endmenu",
so that the user can disable all the options in that menu at once
instead of having to disable each option separately.

CONFIG_SOUND_KAHULA:
Move it so that it appears correctly in menuconfig.

Signed-off-by: Jan Engelhardt <jengelh@gmx.de>

---
 sound/Kconfig             |   30 +++++++++----------
 sound/aoa/Kconfig         |   11 +++----
 sound/aoa/fabrics/Kconfig |    1 
 sound/arm/Kconfig         |   16 ++++++----
 sound/core/Kconfig        |   18 +----------
 sound/drivers/Kconfig     |   20 +++++--------
 sound/isa/Kconfig         |   45 +++++++++--------------------
 sound/mips/Kconfig        |   13 +++++---
 sound/oss/Kconfig         |   29 ++++++-------------
 sound/parisc/Kconfig      |   11 ++++---
 sound/pci/Kconfig         |   70 ++++++----------------------------------------
 sound/pcmcia/Kconfig      |   12 ++++---
 sound/ppc/Kconfig         |   16 ++++++----
 sound/soc/Kconfig         |   10 +++---
 sound/soc/codecs/Kconfig  |    9 ++---
 sound/sparc/Kconfig       |   15 +++++----
 sound/usb/Kconfig         |   15 +++++----
 17 files changed, 134 insertions(+), 207 deletions(-)

Index: linux-2.6.21-mm_20070428/sound/Kconfig
===================================================================
--- linux-2.6.21-mm_20070428.orig/sound/Kconfig
+++ linux-2.6.21-mm_20070428/sound/Kconfig
@@ -1,9 +1,7 @@
 # sound/Config.in
 #
 
-menu "Sound"
-
-config SOUND
+menuconfig SOUND
 	tristate "Sound card support"
 	help
 	  If you have a sound card in your computer, i.e. if it can say more
@@ -32,14 +30,13 @@ config SOUND
 	  Kernel patches and supporting utilities to do that are in the pcsp
 	  package, available at <ftp://ftp.infradead.org/pub/pcsp/>.
 
+if SOUND
+
 source "sound/oss/dmasound/Kconfig"
 
 if !M68K
 
-menu "Advanced Linux Sound Architecture"
-	depends on SOUND!=n
-
-config SND
+menuconfig SND
 	tristate "Advanced Linux Sound Architecture"
 	depends on SOUND
 	help
@@ -48,6 +45,8 @@ config SND
 
 	  For more information, see <http://www.alsa-project.org/>
 
+if SND
+
 source "sound/core/Kconfig"
 
 source "sound/drivers/Kconfig"
@@ -78,22 +77,23 @@ source "sound/parisc/Kconfig"
 
 source "sound/soc/Kconfig"
 
-endmenu
+endif # SND
 
-menu "Open Sound System"
-	depends on SOUND!=n
-
-config SOUND_PRIME
+menuconfig SOUND_PRIME
 	tristate "Open Sound System (DEPRECATED)"
 	depends on SOUND
 	help
 	  Say 'Y' or 'M' to enable Open Sound System drivers.
 
+if SOUND_PRIME
+
 source "sound/oss/Kconfig"
 
-endmenu
+endif # SOUND_PRIME
 
-endif
+endif # !M68K
+
+endif # SOUND
 
 config AC97_BUS
 	tristate
@@ -102,5 +102,3 @@ config AC97_BUS
 	  sound subsystem and other function drivers completely unrelated to
 	  sound although they're sharing the AC97 bus. Concerned drivers
 	  should "select" this.
-
-endmenu
Index: linux-2.6.21-mm_20070428/sound/aoa/Kconfig
===================================================================
--- linux-2.6.21-mm_20070428.orig/sound/aoa/Kconfig
+++ linux-2.6.21-mm_20070428/sound/aoa/Kconfig
@@ -1,18 +1,17 @@
-menu "Apple Onboard Audio driver"
-	depends on SND!=n && PPC_PMAC
-
-config SND_AOA
+menuconfig SND_AOA
 	tristate "Apple Onboard Audio driver"
-	depends on SND
+	depends on PPC_PMAC
 	select SND_PCM
 	---help---
 	This option enables the new driver for the various
 	Apple Onboard Audio components.
 
+if SND_AOA
+
 source "sound/aoa/fabrics/Kconfig"
 
 source "sound/aoa/codecs/Kconfig"
 
 source "sound/aoa/soundbus/Kconfig"
 
-endmenu
+endif # SND_AOA
Index: linux-2.6.21-mm_20070428/sound/aoa/fabrics/Kconfig
===================================================================
--- linux-2.6.21-mm_20070428.orig/sound/aoa/fabrics/Kconfig
+++ linux-2.6.21-mm_20070428/sound/aoa/fabrics/Kconfig
@@ -1,6 +1,5 @@
 config SND_AOA_FABRIC_LAYOUT
 	tristate "layout-id fabric"
-	depends on SND_AOA
 	select SND_AOA_SOUNDBUS
 	select SND_AOA_SOUNDBUS_I2S
 	---help---
Index: linux-2.6.21-mm_20070428/sound/arm/Kconfig
===================================================================
--- linux-2.6.21-mm_20070428.orig/sound/arm/Kconfig
+++ linux-2.6.21-mm_20070428/sound/arm/Kconfig
@@ -1,11 +1,15 @@
 # ALSA ARM drivers
 
-menu "ALSA ARM devices"
-	depends on SND!=n && ARM
+menuconfig SND_ARM_DRIVERS
+	bool "ALSA ARM devices"
+	depends on ARM
+	default y
+
+if SND_ARM_DRIVERS
 
 config SND_SA11XX_UDA1341
 	tristate "SA11xx UDA1341TS driver (iPaq H3600)"
-	depends on ARCH_SA1100 && SND && L3
+	depends on ARCH_SA1100 && L3
 	select SND_PCM
 	help
 	  Say Y here if you have a Compaq iPaq H3x00 handheld computer
@@ -16,7 +20,7 @@ config SND_SA11XX_UDA1341
 
 config SND_ARMAACI
 	tristate "ARM PrimeCell PL041 AC Link support"
-	depends on SND && ARM_AMBA
+	depends on ARM_AMBA
 	select SND_PCM
 	select SND_AC97_CODEC
 
@@ -26,11 +30,11 @@ config SND_PXA2XX_PCM
 
 config SND_PXA2XX_AC97
 	tristate "AC97 driver for the Intel PXA2xx chip"
-	depends on ARCH_PXA && SND
+	depends on ARCH_PXA
 	select SND_PXA2XX_PCM
 	select SND_AC97_CODEC
 	help
 	  Say Y or M if you want to support any AC97 codec attached to
 	  the PXA2xx AC97 interface.
 
-endmenu
+endif # SND_ARM_DRIVERS
Index: linux-2.6.21-mm_20070428/sound/core/Kconfig
===================================================================
--- linux-2.6.21-mm_20070428.orig/sound/core/Kconfig
+++ linux-2.6.21-mm_20070428/sound/core/Kconfig
@@ -1,24 +1,19 @@
 # ALSA soundcard-configuration
 config SND_TIMER
 	tristate
-	depends on SND
 
 config SND_PCM
 	tristate
 	select SND_TIMER
-	depends on SND
 
 config SND_HWDEP
 	tristate
-	depends on SND
 
 config SND_RAWMIDI
 	tristate
-	depends on SND
 
 config SND_SEQUENCER
 	tristate "Sequencer support"
-	depends on SND
 	select SND_TIMER
 	help
 	  Say Y or M to enable MIDI sequencer and router support.  This
@@ -44,11 +39,9 @@ config SND_SEQ_DUMMY
 
 config SND_OSSEMUL
 	bool
-	depends on SND
 
 config SND_MIXER_OSS
 	tristate "OSS Mixer API"
-	depends on SND
 	select SND_OSSEMUL
 	help
 	  To enable OSS mixer API emulation (/dev/mixer*), say Y here
@@ -61,7 +54,6 @@ config SND_MIXER_OSS
 
 config SND_PCM_OSS
 	tristate "OSS PCM (digital audio) API"
-	depends on SND
 	select SND_OSSEMUL
 	select SND_PCM
 	help
@@ -84,7 +76,7 @@ config SND_PCM_OSS_PLUGINS
 
 config SND_SEQUENCER_OSS
 	bool "OSS Sequencer API"
-	depends on SND && SND_SEQUENCER
+	depends on SND_SEQUENCER
 	select SND_OSSEMUL
 	help
 	  Say Y here to enable OSS sequencer emulation (both
@@ -98,7 +90,7 @@ config SND_SEQUENCER_OSS
 
 config SND_RTCTIMER
 	tristate "RTC Timer support"
-	depends on SND && RTC
+	depends on RTC
 	select SND_TIMER
 	help
 	  Say Y here to enable RTC timer support for ALSA.  ALSA uses
@@ -123,7 +115,6 @@ config SND_SEQ_RTCTIMER_DEFAULT
 
 config SND_DYNAMIC_MINORS
 	bool "Dynamic device file minor numbers"
-	depends on SND
 	help
 	  If you say Y here, the minor numbers of ALSA device files in
 	  /dev/snd/ are allocated dynamically.  This allows you to have
@@ -134,7 +125,6 @@ config SND_DYNAMIC_MINORS
 
 config SND_SUPPORT_OLD_API
 	bool "Support old ALSA API"
-	depends on SND
 	default y
 	help
 	  Say Y here to support the obsolete ALSA PCM API (ver.0.9.0 rc3
@@ -142,7 +132,7 @@ config SND_SUPPORT_OLD_API
 
 config SND_VERBOSE_PROCFS
 	bool "Verbose procfs contents"
-	depends on SND && PROC_FS
+	depends on PROC_FS
 	default y
 	help
 	  Say Y here to include code for verbose procfs contents (provides
@@ -151,7 +141,6 @@ config SND_VERBOSE_PROCFS
 
 config SND_VERBOSE_PRINTK
 	bool "Verbose printk"
-	depends on SND
 	help
 	  Say Y here to enable verbose log messages.  These messages
 	  will help to identify source file and position containing
@@ -161,7 +150,6 @@ config SND_VERBOSE_PRINTK
 
 config SND_DEBUG
 	bool "Debug"
-	depends on SND
 	help
 	  Say Y here to enable ALSA debug code.
 
Index: linux-2.6.21-mm_20070428/sound/drivers/Kconfig
===================================================================
--- linux-2.6.21-mm_20070428.orig/sound/drivers/Kconfig
+++ linux-2.6.21-mm_20070428/sound/drivers/Kconfig
@@ -1,9 +1,5 @@
 # ALSA generic drivers
 
-menu "Generic devices"
-	depends on SND!=n
-
-
 config SND_MPU401_UART
         tristate
         select SND_RAWMIDI
@@ -28,9 +24,14 @@ config SND_AC97_CODEC
 	select SND_PCM
 	select AC97_BUS
 
+menuconfig SND_GENERIC_DRIVERS
+	bool "Generic devices"
+	default y
+
+if SND_GENERIC_DRIVERS
+
 config SND_DUMMY
 	tristate "Dummy (/dev/null) soundcard"
-	depends on SND
 	select SND_PCM
 	help
 	  Say Y here to include the dummy driver.  This driver does
@@ -59,7 +60,6 @@ config SND_VIRMIDI
 
 config SND_MTPAV
 	tristate "MOTU MidiTimePiece AV multiport MIDI"
-	depends on SND
 	select SND_RAWMIDI
 	help
 	  To use a MOTU MidiTimePiece AV multiport MIDI adapter
@@ -71,7 +71,7 @@ config SND_MTPAV
 
 config SND_MTS64
 	tristate "ESI Miditerminal 4140 driver"
-	depends on SND && PARPORT
+	depends on PARPORT
 	select SND_RAWMIDI
 	help
 	  The ESI Miditerminal 4140 is a 4 In 4 Out MIDI Interface with 
@@ -84,7 +84,6 @@ config SND_MTS64
 
 config SND_SERIAL_U16550
 	tristate "UART16550 serial MIDI driver"
-	depends on SND
 	select SND_RAWMIDI
 	help
 	  To include support for MIDI serial port interfaces, say Y here
@@ -100,7 +99,6 @@ config SND_SERIAL_U16550
 
 config SND_MPU401
 	tristate "Generic MPU-401 UART driver"
-	depends on SND
 	select SND_MPU401_UART
 	help
 	  Say Y here to include support for MIDI ports compatible with
@@ -111,7 +109,7 @@ config SND_MPU401
 
 config SND_PORTMAN2X4
 	tristate "Portman 2x4 driver"
-	depends on SND && PARPORT
+	depends on PARPORT
 	select SND_RAWMIDI
 	help
 	  Say Y here to include support for Midiman Portman 2x4 parallel
@@ -120,4 +118,4 @@ config SND_PORTMAN2X4
 	  To compile this driver as a module, choose M here: the module
 	  will be called snd-portman2x4.
 
-endmenu
+endif # SND_GENERIC_DRIVERS
Index: linux-2.6.21-mm_20070428/sound/isa/Kconfig
===================================================================
--- linux-2.6.21-mm_20070428.orig/sound/isa/Kconfig
+++ linux-2.6.21-mm_20070428/sound/isa/Kconfig
@@ -1,7 +1,11 @@
 # ALSA ISA drivers
 
-menu "ISA devices"
-	depends on SND!=n && ISA && ISA_DMA_API
+menuconfig SND_ISA_DRIVERS
+	bool "ISA devices"
+	depends on ISA && ISA_DMA_API
+	default y
+
+if SND_ISA_DRIVERS
 
 config SND_AD1848_LIB
         tristate
@@ -13,7 +17,6 @@ config SND_CS4231_LIB
 
 config SND_ADLIB
 	tristate "AdLib FM card"
-	depends on SND
 	select SND_OPL3_LIB
 	help
 	  Say Y here to include support for AdLib FM cards.
@@ -23,7 +26,7 @@ config SND_ADLIB
 
 config SND_AD1816A
 	tristate "Analog Devices SoundPort AD1816A"
-	depends on SND && PNP && ISA
+	depends on PNP
 	select ISAPNP
 	select SND_OPL3_LIB
 	select SND_MPU401_UART
@@ -37,7 +40,6 @@ config SND_AD1816A
 
 config SND_AD1848
 	tristate "Generic AD1848/CS4248 driver"
-	depends on SND
 	select SND_AD1848_LIB
 	help
 	  Say Y here to include support for AD1848 (Analog Devices) or
@@ -51,7 +53,7 @@ config SND_AD1848
 
 config SND_ALS100
 	tristate "Avance Logic ALS100/ALS120"
-	depends on SND && PNP && ISA
+	depends on PNP
 	select ISAPNP
 	select SND_OPL3_LIB
 	select SND_MPU401_UART
@@ -65,7 +67,7 @@ config SND_ALS100
 
 config SND_AZT2320
 	tristate "Aztech Systems AZT2320"
-	depends on SND && PNP && ISA
+	depends on PNP
 	select ISAPNP
 	select SND_OPL3_LIB
 	select SND_MPU401_UART
@@ -79,7 +81,6 @@ config SND_AZT2320
 
 config SND_CMI8330
 	tristate "C-Media CMI8330"
-	depends on SND
 	select SND_AD1848_LIB
 	help
 	  Say Y here to include support for soundcards based on the
@@ -90,7 +91,6 @@ config SND_CMI8330
 
 config SND_CS4231
 	tristate "Generic Cirrus Logic CS4231 driver"
-	depends on SND
 	select SND_MPU401_UART
 	select SND_CS4231_LIB
 	help
@@ -102,7 +102,6 @@ config SND_CS4231
 
 config SND_CS4232
 	tristate "Generic Cirrus Logic CS4232 driver"
-	depends on SND
 	select SND_OPL3_LIB
 	select SND_MPU401_UART
 	select SND_CS4231_LIB
@@ -115,7 +114,6 @@ config SND_CS4232
 
 config SND_CS4236
 	tristate "Generic Cirrus Logic CS4236+ driver"
-	depends on SND
 	select SND_OPL3_LIB
 	select SND_MPU401_UART
 	select SND_CS4231_LIB
@@ -128,7 +126,7 @@ config SND_CS4236
 
 config SND_DT019X
 	tristate "Diamond Technologies DT-019X, Avance Logic ALS-007"
-	depends on SND && PNP && ISA
+	depends on PNP
 	select ISAPNP
 	select SND_OPL3_LIB
 	select SND_MPU401_UART
@@ -142,7 +140,7 @@ config SND_DT019X
 
 config SND_ES968
 	tristate "Generic ESS ES968 driver"
-	depends on SND && PNP && ISA
+	depends on PNP
 	select ISAPNP
 	select SND_MPU401_UART
 	select SND_PCM
@@ -154,7 +152,6 @@ config SND_ES968
 
 config SND_ES1688
 	tristate "Generic ESS ES688/ES1688 driver"
-	depends on SND
 	select SND_OPL3_LIB
 	select SND_MPU401_UART
 	select SND_PCM
@@ -167,7 +164,6 @@ config SND_ES1688
 
 config SND_ES18XX
 	tristate "Generic ESS ES18xx driver"
-	depends on SND
 	select SND_OPL3_LIB
 	select SND_MPU401_UART
 	select SND_PCM
@@ -182,7 +178,6 @@ config SND_GUS_SYNTH
 
 config SND_GUSCLASSIC
 	tristate "Gravis UltraSound Classic"
-	depends on SND
 	select SND_RAWMIDI
 	select SND_PCM
 	select SND_GUS_SYNTH
@@ -195,7 +190,6 @@ config SND_GUSCLASSIC
 
 config SND_GUSEXTREME
 	tristate "Gravis UltraSound Extreme"
-	depends on SND
 	select SND_HWDEP
 	select SND_MPU401_UART
 	select SND_PCM
@@ -209,7 +203,6 @@ config SND_GUSEXTREME
 
 config SND_GUSMAX
 	tristate "Gravis UltraSound MAX"
-	depends on SND
 	select SND_RAWMIDI
 	select SND_CS4231_LIB
 	select SND_GUS_SYNTH
@@ -222,7 +215,7 @@ config SND_GUSMAX
 
 config SND_INTERWAVE
 	tristate "AMD InterWave, Gravis UltraSound PnP"
-	depends on SND && PNP && ISA
+	depends on PNP
 	select SND_RAWMIDI
 	select SND_CS4231_LIB
 	select SND_GUS_SYNTH
@@ -236,7 +229,7 @@ config SND_INTERWAVE
 
 config SND_INTERWAVE_STB
 	tristate "AMD InterWave + TEA6330T (UltraSound 32-Pro)"
-	depends on SND && PNP && ISA
+	depends on PNP
 	select SND_RAWMIDI
 	select SND_CS4231_LIB
 	select SND_GUS_SYNTH
@@ -250,7 +243,6 @@ config SND_INTERWAVE_STB
 
 config SND_OPL3SA2
 	tristate "Yamaha OPL3-SA2/SA3"
-	depends on SND
 	select SND_OPL3_LIB
 	select SND_MPU401_UART
 	select SND_CS4231_LIB
@@ -263,7 +255,6 @@ config SND_OPL3SA2
 
 config SND_OPTI92X_AD1848
 	tristate "OPTi 82C92x - AD1848"
-	depends on SND
 	select SND_OPL3_LIB
 	select SND_OPL4_LIB
 	select SND_MPU401_UART
@@ -277,7 +268,6 @@ config SND_OPTI92X_AD1848
 
 config SND_OPTI92X_CS4231
 	tristate "OPTi 82C92x - CS4231"
-	depends on SND
 	select SND_OPL3_LIB
 	select SND_OPL4_LIB
 	select SND_MPU401_UART
@@ -291,7 +281,6 @@ config SND_OPTI92X_CS4231
 
 config SND_OPTI93X
 	tristate "OPTi 82C93x"
-	depends on SND
 	select SND_OPL3_LIB
 	select SND_MPU401_UART
 	select SND_PCM
@@ -304,7 +293,6 @@ config SND_OPTI93X
 
 config SND_MIRO
 	tristate "Miro miroSOUND PCM1pro/PCM12/PCM20radio driver"
-	depends on SND
 	select SND_OPL4_LIB
 	select SND_CS4231_LIB
 	select SND_MPU401_UART
@@ -318,7 +306,6 @@ config SND_MIRO
 
 config SND_SB8
 	tristate "Sound Blaster 1.0/2.0/Pro (8-bit)"
-	depends on SND
 	select SND_OPL3_LIB
 	select SND_RAWMIDI
 	select SND_PCM
@@ -331,7 +318,6 @@ config SND_SB8
 
 config SND_SB16
 	tristate "Sound Blaster 16 (PnP)"
-	depends on SND
 	select SND_OPL3_LIB
 	select SND_MPU401_UART
 	select SND_PCM
@@ -344,7 +330,6 @@ config SND_SB16
 
 config SND_SBAWE
 	tristate "Sound Blaster AWE (32,64) (PnP)"
-	depends on SND
 	select SND_OPL3_LIB
 	select SND_MPU401_UART
 	select SND_PCM
@@ -386,7 +371,6 @@ config SND_SGALAXY
 
 config SND_SSCAPE
 	tristate "Ensoniq SoundScape PnP driver"
-	depends on SND
 	select SND_HWDEP
 	select SND_MPU401_UART
 	select SND_CS4231_LIB
@@ -399,7 +383,6 @@ config SND_SSCAPE
 
 config SND_WAVEFRONT
 	tristate "Turtle Beach Maui,Tropez,Tropez+ (Wavefront)"
-	depends on SND
 	select FW_LOADER
 	select SND_OPL3_LIB
 	select SND_MPU401_UART
@@ -420,4 +403,4 @@ config SND_WAVEFRONT_FIRMWARE_IN_KERNEL
 	  for the Wavefront driver.  If you choose N here, you need to
 	  install the firmware files from the alsa-firmware package.
 
-endmenu
+endif # SND_ISA_DRIVERS
Index: linux-2.6.21-mm_20070428/sound/mips/Kconfig
===================================================================
--- linux-2.6.21-mm_20070428.orig/sound/mips/Kconfig
+++ linux-2.6.21-mm_20070428/sound/mips/Kconfig
@@ -1,15 +1,18 @@
 # ALSA MIPS drivers
 
-menu "ALSA MIPS devices"
-	depends on SND!=n && MIPS
+menuconfig SND_MIPS_DRIVERS
+	bool "ALSA MIPS devices"
+	depends on MIPS
+	default y
+
+if SND_MIPS_DRIVERS
 
 config SND_AU1X00
 	tristate "Au1x00 AC97 Port Driver"
-	depends on (SOC_AU1000 || SOC_AU1100 || SOC_AU1500) && SND
+	depends on SOC_AU1000 || SOC_AU1100 || SOC_AU1500
 	select SND_PCM
 	select SND_AC97_CODEC
 	help
 	  ALSA Sound driver for the Au1x00's AC97 port.
 
-endmenu
-
+endif # SND_MIPS_DRIVERS
Index: linux-2.6.21-mm_20070428/sound/oss/Kconfig
===================================================================
--- linux-2.6.21-mm_20070428.orig/sound/oss/Kconfig
+++ linux-2.6.21-mm_20070428/sound/oss/Kconfig
@@ -376,16 +376,16 @@ config SOUND_OSS
 	  driver for your sound card above, then pick your driver from the
 	  list below.
 
+if SOUND_OSS
+
 config SOUND_TRACEINIT
 	bool "Verbose initialisation"
-	depends on SOUND_OSS
 	help
 	  Verbose soundcard initialization -- affects the format of autoprobe
 	  and initialization messages at boot time.
 
 config SOUND_DMAP
 	bool "Persistent DMA buffers"
-	depends on SOUND_OSS
 	---help---
 	  Linux can often have problems allocating DMA buffers for ISA sound
 	  cards on machines with more than 16MB of RAM. This is because ISA
@@ -402,7 +402,7 @@ config SOUND_DMAP
 
 config SOUND_CS4232
 	tristate "Crystal CS4232 based (PnP) cards"
-	depends on SOUND_OSS && OSS_OBSOLETE
+	depends on OSS_OBSOLETE
 	help
 	  Say Y here if you have a card based on the Crystal CS4232 chip set,
 	  which uses its own Plug and Play protocol.
@@ -416,7 +416,6 @@ config SOUND_CS4232
 
 config SOUND_SSCAPE
 	tristate "Ensoniq SoundScape support"
-	depends on SOUND_OSS
 	help
 	  Answer Y if you have a sound card based on the Ensoniq SoundScape
 	  chipset. Such cards are being manufactured at least by Ensoniq, Spea
@@ -429,13 +428,11 @@ config SOUND_SSCAPE
 
 config SOUND_VMIDI
 	tristate "Loopback MIDI device support"
-	depends on SOUND_OSS
 	help
 	  Support for MIDI loopback on port 1 or 2.
 
 config SOUND_TRIX
 	tristate "MediaTrix AudioTrix Pro support"
-	depends on SOUND_OSS
 	help
 	  Answer Y if you have the AudioTriX Pro sound card manufactured
 	  by MediaTrix.
@@ -459,7 +456,6 @@ config TRIX_BOOT_FILE
 
 config SOUND_MSS
 	tristate "Microsoft Sound System support"
-	depends on SOUND_OSS
 	---help---
 	  Again think carefully before answering Y to this question.  It's
 	  safe to answer Y if you have the original Windows Sound System card
@@ -491,7 +487,6 @@ config SOUND_MSS
 
 config SOUND_MPU401
 	tristate "MPU-401 support (NOT for SB16)"
-	depends on SOUND_OSS
 	---help---
 	  Be careful with this question.  The MPU401 interface is supported by
 	  all sound cards.  However, some natively supported cards have their
@@ -507,7 +502,6 @@ config SOUND_MPU401
 
 config SOUND_PAS
 	tristate "ProAudioSpectrum 16 support"
-	depends on SOUND_OSS
 	---help---
 	  Answer Y only if you have a Pro Audio Spectrum 16, ProAudio Studio
 	  16 or Logitech SoundMan 16 sound card. Answer N if you have some
@@ -529,7 +523,6 @@ config PAS_JOYSTICK
 
 config SOUND_PSS
 	tristate "PSS (AD1848, ADSP-2115, ESC614) support"
-	depends on SOUND_OSS
 	help
 	  Answer Y or M if you have an Orchid SW32, Cardinal DSP16, Beethoven
 	  ADSP-16 or some other card based on the PSS chipset (AD1848 codec +
@@ -572,7 +565,6 @@ config PSS_BOOT_FILE
 
 config SOUND_SB
 	tristate "100% Sound Blaster compatibles (SB16/32/64, ESS, Jazz16) support"
-	depends on SOUND_OSS
 	---help---
 	  Answer Y if you have an original Sound Blaster card made by Creative
 	  Labs or a 100% hardware compatible clone (like the Thunderboard or
@@ -597,9 +589,12 @@ config SOUND_SB
 	  You can say M here to compile this driver as a module; the module is
 	  called sb.
 
+config SOUND_KAHLUA
+	tristate "XpressAudio Sound Blaster emulation"
+	depends on SOUND_SB
+
 config SOUND_YM3812
 	tristate "Yamaha FM synthesizer (YM3812/OPL-3) support"
-	depends on SOUND_OSS
 	---help---
 	  Answer Y if your card has a FM chip made by Yamaha (OPL2/OPL3/OPL4).
 	  Answering Y is usually a safe and recommended choice, however some
@@ -615,7 +610,6 @@ config SOUND_YM3812
 
 config SOUND_UART6850
 	tristate "6850 UART support"
-	depends on SOUND_OSS
 	help
 	  This option enables support for MIDI interfaces based on the 6850
 	  UART chip. This interface is rarely found on sound cards. It's safe
@@ -626,7 +620,6 @@ config SOUND_UART6850
 
 config SOUND_AEDSP16
 	tristate "Gallant Audio Cards (SC-6000 and SC-6600 based)"
-	depends on SOUND_OSS
 	---help---
 	  Answer Y if you have a Gallant's Audio Excel DSP 16 card. This
 	  driver supports Audio Excel DSP 16 but not the III nor PnP versions
@@ -707,14 +700,14 @@ endchoice
 
 config SOUND_VIDC
 	tristate "VIDC 16-bit sound"
-	depends on ARM && (ARCH_ACORN || ARCH_CLPS7500) && SOUND_OSS
+	depends on ARM && (ARCH_ACORN || ARCH_CLPS7500)
 	help
 	  16-bit support for the VIDC onboard sound hardware found on Acorn
 	  machines.
 
 config SOUND_WAVEARTIST
 	tristate "Netwinder WaveArtist"
-	depends on ARM && SOUND_OSS && ARCH_NETWINDER
+	depends on ARM && ARCH_NETWINDER
 	help
 	  Say Y here to include support for the Rockwell WaveArtist sound
 	  system.  This driver is mainly for the NetWinder.
@@ -726,9 +719,7 @@ config SOUND_TVMIXER
 	  Support for audio mixer facilities on the BT848 TV frame-grabber
 	  card.
 
-config SOUND_KAHLUA
-	tristate "XpressAudio Sound Blaster emulation"
-	depends on SOUND_SB
+endif # SOUND_OSS
 
 config SOUND_SH_DAC_AUDIO
 	tristate "SuperH DAC audio support"
Index: linux-2.6.21-mm_20070428/sound/parisc/Kconfig
===================================================================
--- linux-2.6.21-mm_20070428.orig/sound/parisc/Kconfig
+++ linux-2.6.21-mm_20070428/sound/parisc/Kconfig
@@ -1,15 +1,18 @@
 # ALSA PA-RISC drivers
 
-menu "GSC devices"
-	depends on SND!=n && GSC
+menuconfig SND_PARISC_DRIVERS
+	bool "GSC devices"
+	depends on GSC
+	default y
+
+if SND_PARISC_DRIVERS
 
 config SND_HARMONY
 	tristate "Harmony/Vivace sound chip"
-	depends on SND
 	select SND_PCM
 	help
 	  Say 'Y' or 'M' to include support for the Harmony/Vivace sound
 	  chip found in most GSC-based PA-RISC workstations.  It's frequently
 	  provided as part of the Lasi multi-function IC.
 
-endmenu
+endif # SND_PARISC_DRIVERS
Index: linux-2.6.21-mm_20070428/sound/pci/Kconfig
===================================================================
--- linux-2.6.21-mm_20070428.orig/sound/pci/Kconfig
+++ linux-2.6.21-mm_20070428/sound/pci/Kconfig
@@ -1,11 +1,14 @@
 # ALSA PCI drivers
 
-menu "PCI devices"
-	depends on SND!=n && PCI
+menuconfig SND_PCI_DRIVERS
+	bool "PCI devices"
+	depends on PCI
+	default y
+
+if SND_PCI_DRIVERS
 
 config SND_AD1889
 	tristate "Analog Devices AD1889"
-	depends on SND
 	select SND_AC97_CODEC
 	help
 	  Say Y here to include support for the integrated AC97 sound
@@ -17,7 +20,6 @@ config SND_AD1889
 
 config SND_ALS300
 	tristate "Avance Logic ALS300/ALS300+"
-	depends on SND
 	select SND_PCM
 	select SND_AC97_CODEC
 	select SND_OPL3_LIB
@@ -29,7 +31,7 @@ config SND_ALS300
 
 config SND_ALS4000
 	tristate "Avance Logic ALS4000"
-	depends on SND && ISA_DMA_API
+	depends on ISA_DMA_API
 	select SND_OPL3_LIB
 	select SND_MPU401_UART
 	select SND_PCM
@@ -42,7 +44,6 @@ config SND_ALS4000
 
 config SND_ALI5451
 	tristate "ALi M5451 PCI Audio Controller"
-	depends on SND
 	select SND_MPU401_UART
 	select SND_AC97_CODEC
 	help
@@ -56,7 +57,6 @@ config SND_ALI5451
 
 config SND_ATIIXP
 	tristate "ATI IXP AC97 Controller"
-	depends on SND
 	select SND_AC97_CODEC
 	help
 	  Say Y here to include support for the integrated AC97 sound
@@ -68,7 +68,6 @@ config SND_ATIIXP
 
 config SND_ATIIXP_MODEM
 	tristate "ATI IXP Modem"
-	depends on SND
 	select SND_AC97_CODEC
 	help
 	  Say Y here to include support for the integrated MC97 modem on
@@ -79,7 +78,6 @@ config SND_ATIIXP_MODEM
 
 config SND_AU8810
 	tristate "Aureal Advantage"
-	depends on SND
 	select SND_MPU401_UART
 	select SND_AC97_CODEC
 	help
@@ -94,7 +92,6 @@ config SND_AU8810
 
 config SND_AU8820
 	tristate "Aureal Vortex"
-	depends on SND
 	select SND_MPU401_UART
 	select SND_AC97_CODEC
 	help
@@ -108,7 +105,6 @@ config SND_AU8820
 
 config SND_AU8830
 	tristate "Aureal Vortex 2"
-	depends on SND
 	select SND_MPU401_UART
 	select SND_AC97_CODEC
 	help
@@ -123,7 +119,7 @@ config SND_AU8830
 
 config SND_AZT3328
 	tristate "Aztech AZF3328 / PCI168 (EXPERIMENTAL)"
-	depends on SND && EXPERIMENTAL
+	depends on EXPERIMENTAL
 	select SND_OPL3_LIB
 	select SND_MPU401_UART
 	select SND_PCM
@@ -136,7 +132,6 @@ config SND_AZT3328
 
 config SND_BT87X
 	tristate "Bt87x Audio Capture"
-	depends on SND
 	select SND_PCM
 	help
 	  If you want to record audio from TV cards based on
@@ -158,7 +153,6 @@ config SND_BT87X_OVERCLOCK
 
 config SND_CA0106
 	tristate "SB Audigy LS / Live 24bit"
-	depends on SND
 	select SND_AC97_CODEC
 	select SND_RAWMIDI
 	help
@@ -170,7 +164,6 @@ config SND_CA0106
 
 config SND_CMIPCI
 	tristate "C-Media 8738, 8338"
-	depends on SND
 	select SND_OPL3_LIB
 	select SND_MPU401_UART
 	select SND_PCM
@@ -184,7 +177,6 @@ config SND_CMIPCI
 
 config SND_CS4281
 	tristate "Cirrus Logic (Sound Fusion) CS4281"
-	depends on SND
 	select SND_OPL3_LIB
 	select SND_RAWMIDI
 	select SND_AC97_CODEC
@@ -196,7 +188,6 @@ config SND_CS4281
 
 config SND_CS46XX
 	tristate "Cirrus Logic (Sound Fusion) CS4280/CS461x/CS462x/CS463x"
-	depends on SND
 	select SND_RAWMIDI
 	select SND_AC97_CODEC
 	help
@@ -217,7 +208,7 @@ config SND_CS46XX_NEW_DSP
 
 config SND_CS5535AUDIO
 	tristate "CS5535/CS5536 Audio"
-	depends on SND && X86 && !X86_64
+	depends on X86 && !X86_64
 	select SND_PCM
 	select SND_AC97_CODEC
 	help
@@ -235,7 +226,6 @@ config SND_CS5535AUDIO
 
 config SND_DARLA20
 	tristate "(Echoaudio) Darla20"
-	depends on SND
 	select FW_LOADER
 	select SND_PCM
 	help
@@ -246,7 +236,6 @@ config SND_DARLA20
 
 config SND_GINA20
 	tristate "(Echoaudio) Gina20"
-	depends on SND
 	select FW_LOADER
 	select SND_PCM
 	help
@@ -257,7 +246,6 @@ config SND_GINA20
 
 config SND_LAYLA20
 	tristate "(Echoaudio) Layla20"
-	depends on SND
 	select FW_LOADER
 	select SND_RAWMIDI
 	select SND_PCM
@@ -269,7 +257,6 @@ config SND_LAYLA20
 
 config SND_DARLA24
 	tristate "(Echoaudio) Darla24"
-	depends on SND
 	select FW_LOADER
 	select SND_PCM
 	help
@@ -280,7 +267,6 @@ config SND_DARLA24
 
 config SND_GINA24
 	tristate "(Echoaudio) Gina24"
-	depends on SND
 	select FW_LOADER
 	select SND_PCM
 	help
@@ -291,7 +277,6 @@ config SND_GINA24
 
 config SND_LAYLA24
 	tristate "(Echoaudio) Layla24"
-	depends on SND
 	select FW_LOADER
 	select SND_RAWMIDI
 	select SND_PCM
@@ -303,7 +288,6 @@ config SND_LAYLA24
 
 config SND_MONA
 	tristate "(Echoaudio) Mona"
-	depends on SND
 	select FW_LOADER
 	select SND_RAWMIDI
 	select SND_PCM
@@ -315,7 +299,6 @@ config SND_MONA
 
 config SND_MIA
 	tristate "(Echoaudio) Mia"
-	depends on SND
 	select FW_LOADER
 	select SND_RAWMIDI
 	select SND_PCM
@@ -327,7 +310,6 @@ config SND_MIA
 
 config SND_ECHO3G
 	tristate "(Echoaudio) 3G cards"
-	depends on SND
 	select FW_LOADER
 	select SND_RAWMIDI
 	select SND_PCM
@@ -339,7 +321,6 @@ config SND_ECHO3G
 
 config SND_INDIGO
 	tristate "(Echoaudio) Indigo"
-	depends on SND
 	select FW_LOADER
 	select SND_PCM
 	help
@@ -350,7 +331,6 @@ config SND_INDIGO
 
 config SND_INDIGOIO
 	tristate "(Echoaudio) Indigo IO"
-	depends on SND
 	select FW_LOADER
 	select SND_PCM
 	help
@@ -361,7 +341,6 @@ config SND_INDIGOIO
 
 config SND_INDIGODJ
 	tristate "(Echoaudio) Indigo DJ"
-	depends on SND
 	select FW_LOADER
 	select SND_PCM
 	help
@@ -372,7 +351,6 @@ config SND_INDIGODJ
 
 config SND_EMU10K1
 	tristate "Emu10k1 (SB Live!, Audigy, E-mu APS)"
-	depends on SND
 	select FW_LOADER
 	select SND_HWDEP
 	select SND_RAWMIDI
@@ -390,7 +368,6 @@ config SND_EMU10K1
 
 config SND_EMU10K1X
 	tristate "Emu10k1X (Dell OEM Version)"
-	depends on SND
 	select SND_AC97_CODEC
 	select SND_RAWMIDI
 	help
@@ -402,7 +379,6 @@ config SND_EMU10K1X
 
 config SND_ENS1370
 	tristate "(Creative) Ensoniq AudioPCI 1370"
-	depends on SND
 	select SND_RAWMIDI
 	select SND_PCM
 	help
@@ -413,7 +389,6 @@ config SND_ENS1370
 
 config SND_ENS1371
 	tristate "(Creative) Ensoniq AudioPCI 1371/1373"
-	depends on SND
 	select SND_RAWMIDI
 	select SND_AC97_CODEC
 	help
@@ -425,7 +400,6 @@ config SND_ENS1371
 
 config SND_ES1938
 	tristate "ESS ES1938/1946/1969 (Solo-1)"
-	depends on SND
 	select SND_OPL3_LIB
 	select SND_MPU401_UART
 	select SND_AC97_CODEC
@@ -438,7 +412,6 @@ config SND_ES1938
 
 config SND_ES1968
 	tristate "ESS ES1968/1978 (Maestro-1/2/2E)"
-	depends on SND
 	select SND_MPU401_UART
 	select SND_AC97_CODEC
 	help
@@ -450,7 +423,6 @@ config SND_ES1968
 
 config SND_FM801
 	tristate "ForteMedia FM801"
-	depends on SND
 	select SND_OPL3_LIB
 	select SND_MPU401_UART
 	select SND_AC97_CODEC
@@ -480,7 +452,6 @@ config SND_FM801_TEA575X
 
 config SND_HDA_INTEL
 	tristate "Intel HD Audio"
-	depends on SND
 	select SND_PCM
 	help
 	  Say Y here to include support for Intel "High Definition
@@ -491,7 +462,6 @@ config SND_HDA_INTEL
 
 config SND_HDSP
 	tristate "RME Hammerfall DSP Audio"
-	depends on SND
 	select SND_HWDEP
 	select SND_RAWMIDI
 	select SND_PCM
@@ -504,7 +474,6 @@ config SND_HDSP
 
 config SND_HDSPM
 	tristate "RME Hammerfall DSP MADI"
-	depends on SND
 	select SND_HWDEP
 	select SND_RAWMIDI
 	select SND_PCM
@@ -517,7 +486,6 @@ config SND_HDSPM
 
 config SND_ICE1712
 	tristate "ICEnsemble ICE1712 (Envy24)"
-	depends on SND
 	select SND_MPU401_UART
 	select SND_AC97_CODEC
 	help
@@ -534,7 +502,6 @@ config SND_ICE1712
 
 config SND_ICE1724
 	tristate "ICE/VT1724/1720 (Envy24HT/PT)"
-	depends on SND
 	select SND_MPU401_UART
 	select SND_AC97_CODEC
 	help
@@ -551,7 +518,6 @@ config SND_ICE1724
 
 config SND_INTEL8X0
 	tristate "Intel/SiS/nVidia/AMD/ALi AC97 Controller"
-	depends on SND
 	select SND_AC97_CODEC
 	help
 	  Say Y here to include support for the integrated AC97 sound
@@ -564,7 +530,6 @@ config SND_INTEL8X0
 
 config SND_INTEL8X0M
 	tristate "Intel/SiS/nVidia/AMD MC97 Modem"
-	depends on SND
 	select SND_AC97_CODEC
 	help
 	  Say Y here to include support for the integrated MC97 modem on
@@ -575,7 +540,6 @@ config SND_INTEL8X0M
 
 config SND_KORG1212
 	tristate "Korg 1212 IO"
-	depends on SND
 	select FW_LOADER
 	select SND_PCM
 	help
@@ -595,7 +559,6 @@ config SND_KORG1212_FIRMWARE_IN_KERNEL
 
 config SND_MAESTRO3
 	tristate "ESS Allegro/Maestro3"
-	depends on SND
 	select FW_LOADER
 	select SND_AC97_CODEC
 	help
@@ -616,7 +579,6 @@ config SND_MAESTRO3_FIRMWARE_IN_KERNEL
 
 config SND_MIXART
 	tristate "Digigram miXart"
-	depends on SND
 	select SND_HWDEP
 	select SND_PCM
 	help
@@ -628,7 +590,6 @@ config SND_MIXART
 
 config SND_NM256
 	tristate "NeoMagic NM256AV/ZX"
-	depends on SND
 	select SND_AC97_CODEC
 	help
 	  Say Y here to include support for NeoMagic NM256AV/ZX chips.
@@ -638,7 +599,6 @@ config SND_NM256
 
 config SND_PCXHR
 	tristate "Digigram PCXHR"
-	depends on SND
 	select SND_PCM
 	select SND_HWDEP
 	help
@@ -649,7 +609,6 @@ config SND_PCXHR
 
 config SND_RIPTIDE
 	tristate "Conexant Riptide"
-	depends on SND
 	select FW_LOADER
 	select SND_OPL3_LIB
 	select SND_MPU401_UART
@@ -662,7 +621,6 @@ config SND_RIPTIDE
 
 config SND_RME32
 	tristate "RME Digi32, 32/8, 32 PRO"
-	depends on SND
 	select SND_PCM
 	help
 	  Say Y to include support for RME Digi32, Digi32 PRO and
@@ -674,7 +632,6 @@ config SND_RME32
 
 config SND_RME96
 	tristate "RME Digi96, 96/8, 96/8 PRO"
-	depends on SND
 	select SND_PCM
 	help
 	  Say Y here to include support for RME Digi96, Digi96/8 and
@@ -685,7 +642,6 @@ config SND_RME96
 
 config SND_RME9652
 	tristate "RME Digi9652 (Hammerfall)"
-	depends on SND
 	select SND_PCM
 	help
 	  Say Y here to include support for RME Hammerfall (RME
@@ -696,7 +652,6 @@ config SND_RME9652
 
 config SND_SONICVIBES
 	tristate "S3 SonicVibes"
-	depends on SND
 	select SND_OPL3_LIB
 	select SND_MPU401_UART
 	select SND_AC97_CODEC
@@ -709,7 +664,6 @@ config SND_SONICVIBES
 
 config SND_TRIDENT
 	tristate "Trident 4D-Wave DX/NX; SiS 7018"
-	depends on SND
 	select SND_MPU401_UART
 	select SND_AC97_CODEC
 	help
@@ -721,7 +675,6 @@ config SND_TRIDENT
 
 config SND_VIA82XX
 	tristate "VIA 82C686A/B, 8233/8235 AC97 Controller"
-	depends on SND
 	select SND_MPU401_UART
 	select SND_AC97_CODEC
 	help
@@ -733,7 +686,6 @@ config SND_VIA82XX
 
 config SND_VIA82XX_MODEM
 	tristate "VIA 82C686A/B, 8233 based Modems"
-	depends on SND
 	select SND_AC97_CODEC
 	help
 	  Say Y here to include support for the integrated MC97 modem on
@@ -744,7 +696,6 @@ config SND_VIA82XX_MODEM
 
 config SND_VX222
 	tristate "Digigram VX222"
-	depends on SND
 	select SND_VX_LIB
 	help
 	  Say Y here to include support for Digigram VX222 soundcards.
@@ -754,7 +705,6 @@ config SND_VX222
 
 config SND_YMFPCI
 	tristate "Yamaha YMF724/740/744/754"
-	depends on SND
 	select FW_LOADER
 	select SND_OPL3_LIB
 	select SND_MPU401_UART
@@ -788,4 +738,4 @@ config SND_AC97_POWER_SAVE
 	  snd-ac97-codec driver.  You can toggle it dynamically over
 	  sysfs, too.
 
-endmenu
+endif # SND_PCI_DRIVERS
Index: linux-2.6.21-mm_20070428/sound/pcmcia/Kconfig
===================================================================
--- linux-2.6.21-mm_20070428.orig/sound/pcmcia/Kconfig
+++ linux-2.6.21-mm_20070428/sound/pcmcia/Kconfig
@@ -1,11 +1,14 @@
 # ALSA PCMCIA drivers
 
-menu "PCMCIA devices"
-	depends on SND!=n && PCMCIA
+menuconfig SND_PCMCIA_DRIVERS
+	bool "PCMCIA devices"
+	depends on PCMCIA
+	default y
+
+if SND_PCMCIA_DRIVERS
 
 config SND_VXPOCKET
 	tristate "Digigram VXpocket"
-	depends on SND && PCMCIA
 	select SND_VX_LIB
 	help
 	  Say Y here to include support for Digigram VXpocket and
@@ -16,7 +19,6 @@ config SND_VXPOCKET
 
 config SND_PDAUDIOCF
 	tristate "Sound Core PDAudioCF"
-	depends on SND && PCMCIA
 	select SND_PCM
 	help
 	  Say Y here to include support for Sound Core PDAudioCF
@@ -25,4 +27,4 @@ config SND_PDAUDIOCF
 	  To compile this driver as a module, choose M here: the module
 	  will be called snd-pdaudiocf.
 
-endmenu
+endif # SND_PCMCIA_DRIVERS
Index: linux-2.6.21-mm_20070428/sound/ppc/Kconfig
===================================================================
--- linux-2.6.21-mm_20070428.orig/sound/ppc/Kconfig
+++ linux-2.6.21-mm_20070428/sound/ppc/Kconfig
@@ -1,17 +1,21 @@
 # ALSA PowerMac drivers
 
-menu "ALSA PowerMac devices"
-	depends on SND!=n && PPC
+menuconfig SND_PPC_DRIVERS
+	bool "ALSA PowerMac devices"
+	depends on PPC
+	default y
+
+if SND_PPC_DRIVERS
 
 comment "ALSA PowerMac requires I2C"
-	depends on SND && I2C=n
+	depends on I2C=n
 
 comment "ALSA PowerMac requires INPUT"
-	depends on SND && INPUT=n
+	depends on INPUT=n
 
 config SND_POWERMAC
 	tristate "PowerMac (AWACS, DACA, Burgundy, Tumbler, Keywest)"
-	depends on SND && I2C && INPUT && PPC_PMAC
+	depends on I2C && INPUT && PPC_PMAC
 	select SND_PCM
 	help
 	  Say Y here to include support for the integrated sound device.
@@ -32,4 +36,4 @@ config SND_POWERMAC_AUTO_DRC
 	  Note that you can turn on/off DRC manually even without this
 	  option.
 
-endmenu
+endif # SND_PPC_DRIVERS
Index: linux-2.6.21-mm_20070428/sound/soc/Kconfig
===================================================================
--- linux-2.6.21-mm_20070428.orig/sound/soc/Kconfig
+++ linux-2.6.21-mm_20070428/sound/soc/Kconfig
@@ -2,15 +2,17 @@
 # SoC audio configuration
 #
 
-menu "System on Chip audio support"
-	depends on SND!=n
+menuconfig SND_SOC_DRIVERS
+	bool "System on Chip audio support"
+	default y
+
+if SND_SOC_DRIVERS
 
 config SND_SOC_AC97_BUS
 	bool
 
 config SND_SOC
 	tristate "ALSA for SoC audio support"
-	depends on SND
 	select SND_PCM
 	---help---
 
@@ -31,4 +33,4 @@ source "sound/soc/s3c24xx/Kconfig"
 # Supported codecs
 source "sound/soc/codecs/Kconfig"
 
-endmenu
+endif # SND_SOC_DRIVERS
Index: linux-2.6.21-mm_20070428/sound/soc/codecs/Kconfig
===================================================================
--- linux-2.6.21-mm_20070428.orig/sound/soc/codecs/Kconfig
+++ linux-2.6.21-mm_20070428/sound/soc/codecs/Kconfig
@@ -1,19 +1,18 @@
+if SND_SOC
+
 config SND_SOC_AC97_CODEC
 	tristate
-	depends on SND_SOC
 
 config SND_SOC_WM8731
 	tristate
-	depends on SND_SOC
 
 config SND_SOC_WM8750
 	tristate
-	depends on SND_SOC
 
 config SND_SOC_WM8753
 	tristate
-	depends on SND_SOC
 
 config SND_SOC_WM9712
 	tristate
-	depends on SND_SOC
+
+endif # SND_SOC
Index: linux-2.6.21-mm_20070428/sound/sparc/Kconfig
===================================================================
--- linux-2.6.21-mm_20070428.orig/sound/sparc/Kconfig
+++ linux-2.6.21-mm_20070428/sound/sparc/Kconfig
@@ -1,11 +1,15 @@
 # ALSA Sparc drivers
 
-menu "ALSA Sparc devices"
-	depends on SND!=n && SPARC
+menuconfig SND_SPARC_DRIVERS
+	bool "ALSA Sparc devices"
+	depends on SPARC
+	default y
+
+if SND_SPARC_DRIVERS
 
 config SND_SUN_AMD7930
 	tristate "Sun AMD7930"
-	depends on SBUS && SND
+	depends on SBUS
 	select SND_PCM
 	help
 	  Say Y here to include support for AMD7930 sound device on Sun.
@@ -15,7 +19,6 @@ config SND_SUN_AMD7930
 
 config SND_SUN_CS4231
 	tristate "Sun CS4231"
-	depends on SND
 	select SND_PCM
 	help
 	  Say Y here to include support for CS4231 sound device on Sun.
@@ -25,7 +28,7 @@ config SND_SUN_CS4231
 
 config SND_SUN_DBRI
 	tristate "Sun DBRI"
-	depends on SND && SBUS
+	depends on SBUS
 	select SND_PCM
 	help
 	  Say Y here to include support for DBRI sound device on Sun.
@@ -33,4 +36,4 @@ config SND_SUN_DBRI
 	  To compile this driver as a module, choose M here: the module
 	  will be called snd-sun-dbri.
 
-endmenu
+endif # SND_SPARC_DRIVERS
Index: linux-2.6.21-mm_20070428/sound/usb/Kconfig
===================================================================
--- linux-2.6.21-mm_20070428.orig/sound/usb/Kconfig
+++ linux-2.6.21-mm_20070428/sound/usb/Kconfig
@@ -1,11 +1,14 @@
 # ALSA USB drivers
 
-menu "USB devices"
-	depends on SND!=n && USB!=n
+menuconfig SND_USB_DRIVERS
+	bool "USB devices"
+	depends on USB
+	default y
+
+if SND_USB_DRIVERS
 
 config SND_USB_AUDIO
 	tristate "USB Audio/MIDI driver"
-	depends on SND && USB
 	select SND_HWDEP
 	select SND_RAWMIDI
 	select SND_PCM
@@ -18,7 +21,7 @@ config SND_USB_AUDIO
 
 config SND_USB_USX2Y
 	tristate "Tascam US-122, US-224 and US-428 USB driver"
-	depends on SND && USB && (X86 || PPC || ALPHA)
+	depends on X86 || PPC || ALPHA
 	select SND_HWDEP
 	select SND_RAWMIDI
 	select SND_PCM
@@ -31,7 +34,6 @@ config SND_USB_USX2Y
 
 config SND_USB_CAIAQ
 	tristate "Native Instruments USB audio devices"
-	 depends on SND && USB
 	 select SND_HWDEP
 	 select SND_RAWMIDI
 	 select SND_PCM
@@ -57,5 +59,4 @@ config SND_USB_CAIAQ_INPUT
 	   * Native Instruments RigKontrol2
 	   * Native Instruments Audio Kontrol 1
 
-endmenu
-
+endif # SND_USB_DRIVERS

^ permalink raw reply	[flat|nested] 70+ messages in thread

* Re: [PATCH 28/36 #2] Use menuconfig objects II - sound
  2007-04-30 15:21   ` [PATCH 28/36 #2] " Jan Engelhardt
@ 2007-04-30 15:41     ` Johannes Berg
  2007-04-30 16:13       ` Jan Engelhardt
  0 siblings, 1 reply; 70+ messages in thread
From: Johannes Berg @ 2007-04-30 15:41 UTC (permalink / raw)
  To: Jan Engelhardt
  Cc: Jaroslav Kysela, Linux Kernel Mailing List, Andrew Morton, Liam Girdwood

[-- Attachment #1: Type: text/plain, Size: 462 bytes --]

On Mon, 2007-04-30 at 17:21 +0200, Jan Engelhardt wrote:

> Here's the updated thing wrt. AOA.

Looks good, thanks. There is the quirk that now you need the core module
if you want just i2sbus, but that's ok since i2sbus without the rest of
aoa is currently useless (it might become useful if we ever write a
modem driver, but that's probably not going to happen.)

So for the aoa part:
Acked-by: Johannes Berg <johannes@sipsolutions.net>

johannes

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 190 bytes --]

^ permalink raw reply	[flat|nested] 70+ messages in thread

* Re: [PATCH 28/36 #2] Use menuconfig objects II - sound
  2007-04-30 15:41     ` Johannes Berg
@ 2007-04-30 16:13       ` Jan Engelhardt
  0 siblings, 0 replies; 70+ messages in thread
From: Jan Engelhardt @ 2007-04-30 16:13 UTC (permalink / raw)
  To: Johannes Berg
  Cc: Jaroslav Kysela, Linux Kernel Mailing List, Andrew Morton, Liam Girdwood


On Apr 30 2007 17:41, Johannes Berg wrote:
>On Mon, 2007-04-30 at 17:21 +0200, Jan Engelhardt wrote:
>
>> Here's the updated thing wrt. AOA.
>
>Looks good, thanks. There is the quirk that now you need the core module
>if you want just i2sbus, but that's ok since i2sbus without the rest of
>aoa is currently useless (it might become useful if we ever write a
>modem driver, but that's probably not going to happen.)

Ah that also answers my question from the bottom of
http://lkml.org/lkml/2007/4/30/234


Jan
-- 

^ permalink raw reply	[flat|nested] 70+ messages in thread

* Re: [PATCH 33/36] Use menuconfig objects II - video/logo
  2007-04-30 11:56 ` [PATCH 33/36] Use menuconfig objects II - video/logo Jan Engelhardt
@ 2007-05-01  0:08   ` Antonino A. Daplas
  0 siblings, 0 replies; 70+ messages in thread
From: Antonino A. Daplas @ 2007-05-01  0:08 UTC (permalink / raw)
  To: Jan Engelhardt; +Cc: Linux Kernel Mailing List, Andrew Morton

On Mon, 2007-04-30 at 13:56 +0200, Jan Engelhardt wrote:
> Change Kconfig objects from "menu, config" into "menuconfig" so
> that the user can disable the whole feature without having to
> enter the menu first.
> 
> Signed-off-by: Jan Engelhardt <jengelh@gmx.de>
Acked-by: Antonino Daplas <adaplas@gmail.com>

But I'll pick this up nevertheless.

Tony



^ permalink raw reply	[flat|nested] 70+ messages in thread

* Re: [PATCH 18/36] Use menuconfig objects II - MMC
  2007-04-30 11:40 ` [PATCH 18/36] Use menuconfig objects II - MMC Jan Engelhardt
  2007-04-30 13:51   ` Pierre Ossman
@ 2007-05-01 15:57   ` Pierre Ossman
  2007-05-01 20:37     ` Jan Engelhardt
  1 sibling, 1 reply; 70+ messages in thread
From: Pierre Ossman @ 2007-05-01 15:57 UTC (permalink / raw)
  To: Jan Engelhardt; +Cc: Linux Kernel Mailing List, Andrew Morton

[-- Attachment #1: Type: text/plain, Size: 472 bytes --]

Jan Engelhardt wrote:
> Change Kconfig objects from "menu, config" into "menuconfig" so
> that the user can disable the whole feature without having to
> enter the menu first.
> 
> Signed-off-by: Jan Engelhardt <jengelh@gmx.de>
> 

As promised, an updated patch.


-- 
     -- Pierre Ossman

  Linux kernel, MMC maintainer        http://www.kernel.org
  PulseAudio, core developer          http://pulseaudio.org
  rdesktop, core developer          http://www.rdesktop.org

[-- Attachment #2: menuconfig.patch --]
[-- Type: text/x-patch, Size: 4259 bytes --]

diff --git a/drivers/mmc/Kconfig b/drivers/mmc/Kconfig
index 6c97491..45b7d53 100644
--- a/drivers/mmc/Kconfig
+++ b/drivers/mmc/Kconfig
@@ -2,10 +2,8 @@
 # MMC subsystem configuration
 #
 
-menu "MMC/SD Card support"
-
-config MMC
-	tristate "MMC support"
+menuconfig MMC
+	tristate "MMC/SD card support"
 	help
 	  MMC is the "multi-media card" bus protocol.
 
@@ -19,10 +17,12 @@ config MMC_DEBUG
 	  This is an option for use by developers; most people should
 	  say N here.  This enables MMC core and driver debugging.
 
+if MMC
+
 source "drivers/mmc/core/Kconfig"
 
 source "drivers/mmc/card/Kconfig"
 
 source "drivers/mmc/host/Kconfig"
 
-endmenu
+endif # MMC
diff --git a/drivers/mmc/card/Kconfig b/drivers/mmc/card/Kconfig
index 01a9fd3..9320a8c 100644
--- a/drivers/mmc/card/Kconfig
+++ b/drivers/mmc/card/Kconfig
@@ -3,11 +3,10 @@
 #
 
 comment "MMC/SD Card Drivers"
-	depends MMC
 
 config MMC_BLOCK
 	tristate "MMC block device driver"
-	depends on MMC && BLOCK
+	depends on BLOCK
 	default y
 	help
 	  Say Y here to enable the MMC block device driver support.
diff --git a/drivers/mmc/core/Kconfig b/drivers/mmc/core/Kconfig
index 94222b9..ab37a6d 100644
--- a/drivers/mmc/core/Kconfig
+++ b/drivers/mmc/core/Kconfig
@@ -4,7 +4,6 @@
 
 config MMC_UNSAFE_RESUME
 	bool "Allow unsafe resume (DANGEROUS)"
-	depends on MMC != n
 	help
 	  If you say Y here, the MMC layer will assume that all cards
 	  stayed in their respective slots during the suspend. The
diff --git a/drivers/mmc/host/Kconfig b/drivers/mmc/host/Kconfig
index ed4deab..e23082f 100644
--- a/drivers/mmc/host/Kconfig
+++ b/drivers/mmc/host/Kconfig
@@ -3,11 +3,10 @@
 #
 
 comment "MMC/SD Host Controller Drivers"
-	depends on MMC
 
 config MMC_ARMMMCI
 	tristate "ARM AMBA Multimedia Card Interface support"
-	depends on ARM_AMBA && MMC
+	depends on ARM_AMBA
 	help
 	  This selects the ARM(R) AMBA(R) PrimeCell Multimedia Card
 	  Interface (PL180 and PL181) support.  If you have an ARM(R)
@@ -17,7 +16,7 @@ config MMC_ARMMMCI
 
 config MMC_PXA
 	tristate "Intel PXA25x/26x/27x Multimedia Card Interface support"
-	depends on ARCH_PXA && MMC
+	depends on ARCH_PXA
 	help
 	  This selects the Intel(R) PXA(R) Multimedia card Interface.
 	  If you have a PXA(R) platform with a Multimedia Card slot,
@@ -27,7 +26,7 @@ config MMC_PXA
 
 config MMC_SDHCI
 	tristate "Secure Digital Host Controller Interface support  (EXPERIMENTAL)"
-	depends on PCI && MMC && EXPERIMENTAL
+	depends on PCI && EXPERIMENTAL
 	help
 	  This select the generic Secure Digital Host Controller Interface.
 	  It is used by manufacturers such as Texas Instruments(R), Ricoh(R)
@@ -38,7 +37,7 @@ config MMC_SDHCI
 
 config MMC_OMAP
 	tristate "TI OMAP Multimedia Card Interface support"
-	depends on ARCH_OMAP && MMC
+	depends on ARCH_OMAP
 	select TPS65010 if MACH_OMAP_H2
 	help
 	  This selects the TI OMAP Multimedia card Interface.
@@ -49,7 +48,7 @@ config MMC_OMAP
 
 config MMC_WBSD
 	tristate "Winbond W83L51xD SD/MMC Card Interface support"
-	depends on MMC && ISA_DMA_API
+	depends on ISA_DMA_API
 	help
 	  This selects the Winbond(R) W83L51xD Secure digital and
           Multimedia card Interface.
@@ -60,7 +59,7 @@ config MMC_WBSD
 
 config MMC_AU1X
 	tristate "Alchemy AU1XX0 MMC Card Interface support"
-	depends on MMC && SOC_AU1200
+	depends on SOC_AU1200
 	help
 	  This selects the AMD Alchemy(R) Multimedia card interface.
 	  If you have a Alchemy platform with a MMC slot, say Y or M here.
@@ -69,7 +68,7 @@ config MMC_AU1X
 
 config MMC_AT91
 	tristate "AT91 SD/MMC Card Interface support"
-	depends on ARCH_AT91 && MMC
+	depends on ARCH_AT91
 	help
 	  This selects the AT91 MCI controller.
 
@@ -77,7 +76,7 @@ config MMC_AT91
 
 config MMC_IMX
 	tristate "Motorola i.MX Multimedia Card Interface support"
-	depends on ARCH_IMX && MMC
+	depends on ARCH_IMX
 	help
 	  This selects the Motorola i.MX Multimedia card Interface.
 	  If you have a i.MX platform with a Multimedia Card slot,
@@ -87,7 +86,7 @@ config MMC_IMX
 
 config MMC_TIFM_SD
 	tristate "TI Flash Media MMC/SD Interface support  (EXPERIMENTAL)"
-	depends on MMC && EXPERIMENTAL && PCI
+	depends on EXPERIMENTAL && PCI
 	select TIFM_CORE
 	help
 	  Say Y here if you want to be able to access MMC/SD cards with

^ permalink raw reply	[flat|nested] 70+ messages in thread

* Re: [PATCH 23/36] Use menuconfig objects II - netdev/wan
  2007-04-30 11:45 ` [PATCH 23/36] Use menuconfig objects II - netdev/wan Jan Engelhardt
@ 2007-05-01 20:04   ` Krzysztof Halasa
  0 siblings, 0 replies; 70+ messages in thread
From: Krzysztof Halasa @ 2007-05-01 20:04 UTC (permalink / raw)
  To: Jan Engelhardt; +Cc: Linux Kernel Mailing List, Andrew Morton, netdev

Jan Engelhardt <jengelh@linux01.gwdg.de> writes:

> Change Kconfig objects from "menu, config" into "menuconfig" so
> that the user can disable the whole feature without having to
> enter the menu first.
>
> Signed-off-by: Jan Engelhardt <jengelh@gmx.de>
>
> ---
>  drivers/net/wan/Kconfig |   34 +++++++++++++++-------------------

Looks good.
-- 
Krzysztof Halasa

^ permalink raw reply	[flat|nested] 70+ messages in thread

* Re: [PATCH 18/36] Use menuconfig objects II - MMC
  2007-05-01 15:57   ` Pierre Ossman
@ 2007-05-01 20:37     ` Jan Engelhardt
  2007-05-02  5:19       ` Pierre Ossman
  0 siblings, 1 reply; 70+ messages in thread
From: Jan Engelhardt @ 2007-05-01 20:37 UTC (permalink / raw)
  To: Pierre Ossman; +Cc: Linux Kernel Mailing List, Andrew Morton


On May 1 2007 17:57, Pierre Ossman wrote:
>Jan Engelhardt wrote:
>> Change Kconfig objects from "menu, config" into "menuconfig" so
>> that the user can disable the whole feature without having to
>> enter the menu first.
>> 
>> Signed-off-by: Jan Engelhardt <jengelh@gmx.de>
>
>As promised, an updated patch.

If it works, no problem. just put your sign-off somewhere
and let Andrew (or the appropriate subsys maintainer) have it :)



Jan
-- 

^ permalink raw reply	[flat|nested] 70+ messages in thread

* Re: [PATCH 18/36] Use menuconfig objects II - MMC
  2007-05-01 20:37     ` Jan Engelhardt
@ 2007-05-02  5:19       ` Pierre Ossman
  2007-05-02 17:47         ` Jan Engelhardt
  0 siblings, 1 reply; 70+ messages in thread
From: Pierre Ossman @ 2007-05-02  5:19 UTC (permalink / raw)
  To: Jan Engelhardt; +Cc: Linux Kernel Mailing List, Andrew Morton

Jan Engelhardt wrote:
> 
> If it works, no problem. just put your sign-off somewhere
> and let Andrew (or the appropriate subsys maintainer) have it :)
> 

Well, the appropriate subsys maintainer would be me. :)

Has it been decided that this is the way to go? I have no strong feelings either
way.

Rgds
-- 
     -- Pierre Ossman

  Linux kernel, MMC maintainer        http://www.kernel.org
  PulseAudio, core developer          http://pulseaudio.org
  rdesktop, core developer          http://www.rdesktop.org

^ permalink raw reply	[flat|nested] 70+ messages in thread

* Re: [PATCH 18/36] Use menuconfig objects II - MMC
  2007-05-02  5:19       ` Pierre Ossman
@ 2007-05-02 17:47         ` Jan Engelhardt
  0 siblings, 0 replies; 70+ messages in thread
From: Jan Engelhardt @ 2007-05-02 17:47 UTC (permalink / raw)
  To: Pierre Ossman; +Cc: Linux Kernel Mailing List, Andrew Morton


On May 2 2007 07:19, Pierre Ossman wrote:
>Jan Engelhardt wrote:
>> 
>> If it works, no problem. just put your sign-off somewhere
>> and let Andrew (or the appropriate subsys maintainer) have it :)
>> 
>
>Well, the appropriate subsys maintainer would be me. :)
>
>Has it been decided that this is the way to go? I have no strong
>feelings either way.

Who is to decide this? I have not seen any strong objections yet, either 
yes-please or I-don't-mind, so it looks kinda ok. Just act innocent. If
it bugs someone, there's always the signed-off list, which will blame me :)



Jan
-- 

^ permalink raw reply	[flat|nested] 70+ messages in thread

* Re: [v4l-dvb-maintainer] [PATCH 36/36] Use menuconfig objects II - V4L
  2007-04-30 12:30 ` [PATCH 36/36] Use menuconfig objects II - V4L Jan Engelhardt
@ 2007-05-02 18:03   ` Mauro Carvalho Chehab
  0 siblings, 0 replies; 70+ messages in thread
From: Mauro Carvalho Chehab @ 2007-05-02 18:03 UTC (permalink / raw)
  To: Jan Engelhardt
  Cc: v4l-dvb-maintainer, video4linux-list, Linux Kernel Mailing List,
	Andrew Morton

Hi Jan,

Em Seg, 2007-04-30 às 14:30 +0200, Jan Engelhardt escreveu:
> Change Kconfig objects from "menu, config" into "menuconfig" so
> that the user can disable the whole feature without having to
> enter the menu first.
> 
> Signed-off-by: Jan Engelhardt <jengelh@gmx.de>

Seems OK to me. I'll commit on my tree and ask Linus to pull it with the
next patch series.

I intend also to add one patch to Kconfig, adding a short ---help--- to
the newer variables.

Cheers,
Mauro


^ permalink raw reply	[flat|nested] 70+ messages in thread

* Re: [v4l-dvb-maintainer] [PATCH 35/36] Use menuconfig objects II - DVB
  2007-04-30 12:30 ` [PATCH 35/36] Use menuconfig objects II - DVB Jan Engelhardt
@ 2007-05-02 18:10   ` Mauro Carvalho Chehab
  2007-05-02 21:38     ` Trent Piepho
  0 siblings, 1 reply; 70+ messages in thread
From: Mauro Carvalho Chehab @ 2007-05-02 18:10 UTC (permalink / raw)
  To: Jan Engelhardt
  Cc: Andrew Morton, v4l-dvb-maintainer, Linux Kernel Mailing List

Hi Jan,

Em Seg, 2007-04-30 às 14:30 +0200, Jan Engelhardt escreveu:
> Change Kconfig objects from "menu, config" into "menuconfig" so
> that the user can disable the whole feature without having to
> enter the menu first.
> 
> Also remove one indirection (CONFIG_DVB) that does not seem to
> be really used inside the kernel.

Hmm.. in fact, it becames harder to unselect DVB, at least on my tests.
The patch bellow solved the issue. It also allows keeping core DVB,
disabling the adapters menu.

If nobody is against, I intend to apply both Jan and the patch bellow on
my tree by tomorrow.

---

Allow disabling DVB Adapters

From: Mauro Carvalho Chehab <mchehab@infradead.org>

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

diff -r 497b1a27357c linux/drivers/media/dvb/Kconfig
--- a/linux/drivers/media/dvb/Kconfig   Wed May 02 10:11:47 2007 -0300
+++ b/linux/drivers/media/dvb/Kconfig   Wed May 02 11:27:23 2007 -0300
@@ -3,6 +3,15 @@
 #

 source "drivers/media/dvb/dvb-core/Kconfig"
+
+menuconfig DVB_CAPTURE_DRIVERS
+	bool "DVB/ATSC adapters"
+	depends on DVB_CORE
+	default y
+	---help---
+	  Say Y to select Digital TV adapters
+
+if DVB_CAPTURE_DRIVERS

 comment "Supported SAA7146 based PCI Adapters"
	depends on DVB_CORE && PCI && I2C
@@ -30,3 +39,5 @@ comment "Supported DVB Frontends"
 comment "Supported DVB Frontends"
	depends on DVB_CORE
 source "drivers/media/dvb/frontends/Kconfig"
+
+endif # DVB_CAPTURE_DRIVERS
diff -r 497b1a27357c linux/drivers/media/dvb/dvb-core/Kconfig
--- a/linux/drivers/media/dvb/dvb-core/Kconfig  Wed May 02 10:11:47 2007
-0300
+++ b/linux/drivers/media/dvb/dvb-core/Kconfig  Wed May 02 11:06:31 2007
-0300
@@ -1,4 +1,4 @@ menuconfig DVB_CORE
-menuconfig DVB_CORE
+config DVB_CORE
	tristate "DVB for Linux"
	depends on NET && INET
	select CRC32



^ permalink raw reply	[flat|nested] 70+ messages in thread

* Re: [v4l-dvb-maintainer] [PATCH 35/36] Use menuconfig objects II - DVB
  2007-05-02 18:10   ` [v4l-dvb-maintainer] " Mauro Carvalho Chehab
@ 2007-05-02 21:38     ` Trent Piepho
  2007-05-03  6:56       ` Jan Engelhardt
  0 siblings, 1 reply; 70+ messages in thread
From: Trent Piepho @ 2007-05-02 21:38 UTC (permalink / raw)
  To: Mauro Carvalho Chehab; +Cc: v4l-dvb maintainer list, Linux Kernel Mailing List

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: TEXT/PLAIN; charset=X-UNKNOWN, Size: 804 bytes --]

On Wed, 2 May 2007, Mauro Carvalho Chehab wrote:
> Em Seg, 2007-04-30 às 14:30 +0200, Jan Engelhardt escreveu:
> > Change Kconfig objects from "menu, config" into "menuconfig" so
> > that the user can disable the whole feature without having to
> > enter the menu first.
> >
> > Also remove one indirection (CONFIG_DVB) that does not seem to
> > be really used inside the kernel.
>
> Hmm.. in fact, it becames harder to unselect DVB, at least on my tests.
> The patch bellow solved the issue. It also allows keeping core DVB,
> disabling the adapters menu.
>
> If nobody is against, I intend to apply both Jan and the patch bellow on
> my tree by tomorrow.

The v4l-dvb build system doesn't support menuconfig yet.

I'm pretty sure stuff like:

if VIDEO_CAPTURE_DRIVERS

will not work correctly either.

^ permalink raw reply	[flat|nested] 70+ messages in thread

* Re: [v4l-dvb-maintainer] [PATCH 35/36] Use menuconfig objects II - DVB
  2007-05-02 21:38     ` Trent Piepho
@ 2007-05-03  6:56       ` Jan Engelhardt
  2007-05-03 12:37         ` Mauro Carvalho Chehab
  0 siblings, 1 reply; 70+ messages in thread
From: Jan Engelhardt @ 2007-05-03  6:56 UTC (permalink / raw)
  To: Trent Piepho
  Cc: Mauro Carvalho Chehab, v4l-dvb maintainer list,
	Linux Kernel Mailing List


On May 2 2007 14:38, Trent Piepho wrote:
>On Wed, 2 May 2007, Mauro Carvalho Chehab wrote:
>> Em Seg, 2007-04-30 às 14:30 +0200, Jan Engelhardt escreveu:
>> > Change Kconfig objects from "menu, config" into "menuconfig" so
>> > that the user can disable the whole feature without having to
>> > enter the menu first.
>> >
>> > Also remove one indirection (CONFIG_DVB) that does not seem to
>> > be really used inside the kernel.
>>
>> Hmm.. in fact, it becames harder to unselect DVB, at least on my tests.
>> The patch bellow solved the issue. It also allows keeping core DVB,
>> disabling the adapters menu.
>>
>> If nobody is against, I intend to apply both Jan and the patch bellow on
>> my tree by tomorrow.
>
>The v4l-dvb build system doesn't support menuconfig yet.
>I'm pretty sure stuff like:
>if VIDEO_CAPTURE_DRIVERS
>will not work correctly either.

Have you actually tried running `make menuconfig` ['menuconfig' works
-- unfortunate misnaming between menuconfig and menuconfig though],
and looked at Documentation/kbuild/ [explains if..endif]?
menuconfig-if-...-endif is also used in other Kconfig files, and I
did not have problems building a kernel out of it.


Jan
-- 

^ permalink raw reply	[flat|nested] 70+ messages in thread

* Re: [v4l-dvb-maintainer] [PATCH 35/36] Use menuconfig objects II - DVB
  2007-05-03  6:56       ` Jan Engelhardt
@ 2007-05-03 12:37         ` Mauro Carvalho Chehab
  2007-05-03 12:54           ` Jan Engelhardt
  0 siblings, 1 reply; 70+ messages in thread
From: Mauro Carvalho Chehab @ 2007-05-03 12:37 UTC (permalink / raw)
  To: Jan Engelhardt
  Cc: Trent Piepho, v4l-dvb maintainer list, Linux Kernel Mailing List

Em Qui, 2007-05-03 às 08:56 +0200, Jan Engelhardt escreveu:
> On May 2 2007 14:38, Trent Piepho wrote:
> >On Wed, 2 May 2007, Mauro Carvalho Chehab wrote:
> >> Em Seg, 2007-04-30 às 14:30 +0200, Jan Engelhardt escreveu:
> >> > Change Kconfig objects from "menu, config" into "menuconfig" so
> >> > that the user can disable the whole feature without having to
> >> > enter the menu first.
> >> >
> >> > Also remove one indirection (CONFIG_DVB) that does not seem to
> >> > be really used inside the kernel.
> >>
> >> Hmm.. in fact, it becames harder to unselect DVB, at least on my tests.
> >> The patch bellow solved the issue. It also allows keeping core DVB,
> >> disabling the adapters menu.
> >>
> >> If nobody is against, I intend to apply both Jan and the patch bellow on
> >> my tree by tomorrow.
> >
> >The v4l-dvb build system doesn't support menuconfig yet.
> >I'm pretty sure stuff like:
> >if VIDEO_CAPTURE_DRIVERS
> >will not work correctly either.
> 
> Have you actually tried running `make menuconfig` ['menuconfig' works
> -- unfortunate misnaming between menuconfig and menuconfig though],
> and looked at Documentation/kbuild/ [explains if..endif]?
> menuconfig-if-...-endif is also used in other Kconfig files, and I
> did not have problems building a kernel out of it.

Trent is mentioning an out-of-tree building system to allow easier
testing of V4L/DVB patches by end users and developers and during driver
development time. The building system allows faster
compilation/linkedition during driver development, by allowing you to
use:
	make menuconfig/qconfig/xconfig

inside the tree, unselecting the drivers that you're not working.

This way, our building system allows testing Kconfig menus, and properly
process Kconfig items for building drivers. 

The point rised by Trent is that, currently, this is not prepared to
handle the "menuconfig" and "if/endif" tags.

However, the v4l-dvb building system shouldn't stop improvements at the
kernel building system. So, if there are any limits there, the proper
solution is to fix the issues, instead of avoiding patches that could
break it.

> Jan
-- 
Cheers,
Mauro


^ permalink raw reply	[flat|nested] 70+ messages in thread

* Re: [v4l-dvb-maintainer] [PATCH 35/36] Use menuconfig objects II - DVB
  2007-05-03 12:37         ` Mauro Carvalho Chehab
@ 2007-05-03 12:54           ` Jan Engelhardt
  2007-05-03 18:38             ` Mauro Carvalho Chehab
  2007-05-03 20:39             ` Trent Piepho
  0 siblings, 2 replies; 70+ messages in thread
From: Jan Engelhardt @ 2007-05-03 12:54 UTC (permalink / raw)
  To: Mauro Carvalho Chehab
  Cc: Trent Piepho, v4l-dvb maintainer list, Linux Kernel Mailing List


On May 3 2007 09:37, Mauro Carvalho Chehab wrote:
>Trent is mentioning an out-of-tree building system to allow easier
>testing of V4L/DVB patches by end users and developers and during driver
>development time. The building system allows faster
>compilation/linkedition during driver development, by allowing you to
>use:
>	make menuconfig/qconfig/xconfig
>
>inside the tree, unselecting the drivers that you're not working.

Is that all? Because you can do

  make drivers/media/video/

today and it will only build that directory (or even
drivers/media/video/foo.o) to only do that one.

>The point rised by Trent is that, currently, this is not prepared to
>handle the "menuconfig" and "if/endif" tags.
>
>However, the v4l-dvb building system shouldn't stop improvements at the
>kernel building system. So, if there are any limits there, the proper
>solution is to fix the issues, instead of avoiding patches that could
>break it.


Jan
-- 

^ permalink raw reply	[flat|nested] 70+ messages in thread

* Re: [PATCH 08/36] Use menuconfig objects II - hwmon
  2007-04-30 11:28 ` [PATCH 08/36] Use menuconfig objects II - hwmon Jan Engelhardt
@ 2007-05-03 16:58   ` Jean Delvare
  0 siblings, 0 replies; 70+ messages in thread
From: Jean Delvare @ 2007-05-03 16:58 UTC (permalink / raw)
  To: Jan Engelhardt; +Cc: Linux Kernel Mailing List, Andrew Morton, lm-sensors

Hi Jan,

On Mon, 30 Apr 2007 13:28:29 +0200 (MEST), Jan Engelhardt wrote:
> 
> Change Kconfig objects from "menu, config" into "menuconfig" so
> that the user can disable the whole feature without having to
> enter the menu first.
> 
> Signed-off-by: Jan Engelhardt <jengelh@gmx.de>
> 
> ---
>  drivers/hwmon/Kconfig |  109 ++++++++++++++++++++++++--------------------------
>  1 file changed, 53 insertions(+), 56 deletions(-)

Applied, thanks.

-- 
Jean Delvare

^ permalink raw reply	[flat|nested] 70+ messages in thread

* Re: [v4l-dvb-maintainer] [PATCH 35/36] Use menuconfig objects II - DVB
  2007-05-03 12:54           ` Jan Engelhardt
@ 2007-05-03 18:38             ` Mauro Carvalho Chehab
  2007-05-03 20:39             ` Trent Piepho
  1 sibling, 0 replies; 70+ messages in thread
From: Mauro Carvalho Chehab @ 2007-05-03 18:38 UTC (permalink / raw)
  To: Jan Engelhardt
  Cc: Trent Piepho, v4l-dvb maintainer list, Linux Kernel Mailing List

Em Qui, 2007-05-03 às 14:54 +0200, Jan Engelhardt escreveu:
> On May 3 2007 09:37, Mauro Carvalho Chehab wrote:
> >Trent is mentioning an out-of-tree building system to allow easier
> >testing of V4L/DVB patches by end users and developers and during driver
> >development time. The building system allows faster
> >compilation/linkedition during driver development, by allowing you to
> >use:
> >	make menuconfig/qconfig/xconfig
> >
> >inside the tree, unselecting the drivers that you're not working.
> 
> Is that all? Because you can do
> 
>   make drivers/media/video/
> 
> today and it will only build that directory (or even
> drivers/media/video/foo.o) to only do that one.

I know. Use this procedure also. This is a very nice feature for kernel
developers.

However, you cannot use this procedure at the newest kernel to generate
a foo.ko driver for an older kernel. Using the out-of-tree building
system allows to compile also against older kernel versions, helping us
to receive more feedback from end users. 

This is important for V4L/DVB development, since there are a number of
normal users that just bought a new video capture board or webcam and
want to compile the newest driver, without risking on compiling the
entire kernel, and selecting several items they don't understand.

There are more than 500 different supported boards, with lots of
different variations. Probably, there are more board variations than
subscribed users at V4L ML. Believe-me, it is not easy to find people
with all those variations, asking they to replace their kernels to the
newest version, although this is the recommended way.

So, it is important to have an easy procedure for they to test V4L/DVB.

They just need to clone the tree or retrieve a tarball, and do "make;
make install" (providing that the kernel were compiled with modules
option enabled). Advanced users may also do "make menuconfig" to select
just the driver for his board. They don't need to touch on other kernel
parameters.

Anyway, Trent's wrote a fix for our building system, adding the missing
Kconfig vocabulary used on drivers/media Kconfig.

-- 
Cheers,
Mauro


^ permalink raw reply	[flat|nested] 70+ messages in thread

* Re: [v4l-dvb-maintainer] [PATCH 35/36] Use menuconfig objects II - DVB
  2007-05-03 12:54           ` Jan Engelhardt
  2007-05-03 18:38             ` Mauro Carvalho Chehab
@ 2007-05-03 20:39             ` Trent Piepho
  2007-05-03 20:49               ` Sam Ravnborg
                                 ` (2 more replies)
  1 sibling, 3 replies; 70+ messages in thread
From: Trent Piepho @ 2007-05-03 20:39 UTC (permalink / raw)
  To: Jan Engelhardt
  Cc: Mauro Carvalho Chehab, v4l-dvb maintainer list,
	Linux Kernel Mailing List

On Thu, 3 May 2007, Jan Engelhardt wrote:
> On May 3 2007 09:37, Mauro Carvalho Chehab wrote:
> >Trent is mentioning an out-of-tree building system to allow easier
> >testing of V4L/DVB patches by end users and developers and during driver
> >development time. The building system allows faster
> >compilation/linkedition during driver development, by allowing you to
> >use:
> >	make menuconfig/qconfig/xconfig
> >
> >inside the tree, unselecting the drivers that you're not working.
>
> Is that all? Because you can do

Before I bore you to death with v4l-dvb stuff, I've written something about
the "use menuconfig objects" patches at the end.

No, it's much more than that.  The v4l-dvb tree at linuxtv.org is
significantly different than just a copy of linux/drivers/media.

For one thing, the v4l-dvb tree will build on kernels between 2.6.12 and the
latest git kernel.  There still some support for pre 2.6 kernels too, but it's
not maintained.

This way we can ask people to download the latest hg (we use Mercurial) and
test it, without also telling them to download and compile the latest kernel
from git.

The out of tree v4l-dvb build system uses the same Kconfig/Makefiles as it
does in the kernel.  This part of the kernel build system is not easily
exported to out of tree modules, so we have some scripts to handle this.

Some drivers won't work on older kernels, and we have a way to detecting this
and modifying kconfig entries to disable the driver.  If someone has ISA
disabled in their kernel, or is lacking OSS header files, they can not use an
ISA radio card driver or compile an OSS tvcard sound module.  On the other
hand, if someone has disabled DVB in their kernel, it's still possible to
build and use the out of tree DVB drivers.  There is a perl script that
understands the kconfig language and deals with resolving kconfig dependencies
(Rather than write a kconfig expression parser and evaluator, I wrote a
kconfig expression to perl expression translator).  We take care of needing to
use the kernel autoconf.h file, yet wanting to override the options set in the
out of tree v4l-dvb configuration.

> >The point rised by Trent is that, currently, this is not prepared to
> >handle the "menuconfig" and "if/endif" tags.

BTW, I've now fixed this.

Jan, have you looked at the effect these changes have when using xconfig, and
not just menuconfig?

While your changes make menuconfig better, they have nearly opposite effect on
xconfig.

xconfig has the menu tree display in the left panel, where one can see the
overall layout of the menu tree and jump directly to any menu (even one
multiple levels deep).  All the menuconfigs that used to be menus don't show
up here anymore.

To turn a menuconfig off, you must go to the top level menu containing the
menuconfig you want (and you must know which one that is!).  Then you have to
drill down through each menu level one by one, by finding that menu in the top
panel (which also has all the config options listed) and clicking on it to get
to the next one.  When you get to the menuconfig you want, you must enter it
and then you finally get the box to turn that menuconfig off.

It looks like your changes are going in, so I suppose the solution is to
improve the way xconfig handles "menuconfig".

I wonder, would it be possible to change the kconfig language so that:
menuconfig XXXX
	boolean "name of menu"

Did the same thing as:
config XXXX
	boolean "name of menu"
menu "name of menu"
	depends on XXXX

This way you could change this:

menuconfig XXXX
if XXXX
[....all the other options....]
endif

Into this:

menuconfig XXXX
[....all the other options....]
endmenu

The reason is that a frontend would easily be able to understand the coupling
between the "menuconfig XXXX" and the "if XXXX".  It will make it easier for
the frontend to see that all the options are inside and controlled by the
enclosing menuconfig.

^ permalink raw reply	[flat|nested] 70+ messages in thread

* Re: [v4l-dvb-maintainer] [PATCH 35/36] Use menuconfig objects II - DVB
  2007-05-03 20:39             ` Trent Piepho
@ 2007-05-03 20:49               ` Sam Ravnborg
  2007-05-04  0:28                 ` Roman Zippel
  2007-05-03 20:50               ` Sam Ravnborg
  2007-05-03 20:53               ` Jan Engelhardt
  2 siblings, 1 reply; 70+ messages in thread
From: Sam Ravnborg @ 2007-05-03 20:49 UTC (permalink / raw)
  To: Trent Piepho, Roman Zippel
  Cc: Jan Engelhardt, Mauro Carvalho Chehab, v4l-dvb maintainer list,
	Linux Kernel Mailing List

Please include Roman Zippel when you propose kconfig changes.

	Sam
> 
> Jan, have you looked at the effect these changes have when using xconfig, and
> not just menuconfig?
> 
> While your changes make menuconfig better, they have nearly opposite effect on
> xconfig.
> 
> xconfig has the menu tree display in the left panel, where one can see the
> overall layout of the menu tree and jump directly to any menu (even one
> multiple levels deep).  All the menuconfigs that used to be menus don't show
> up here anymore.
> 
> To turn a menuconfig off, you must go to the top level menu containing the
> menuconfig you want (and you must know which one that is!).  Then you have to
> drill down through each menu level one by one, by finding that menu in the top
> panel (which also has all the config options listed) and clicking on it to get
> to the next one.  When you get to the menuconfig you want, you must enter it
> and then you finally get the box to turn that menuconfig off.
> 
> It looks like your changes are going in, so I suppose the solution is to
> improve the way xconfig handles "menuconfig".
> 
> I wonder, would it be possible to change the kconfig language so that:
> menuconfig XXXX
> 	boolean "name of menu"
> 
> Did the same thing as:
> config XXXX
> 	boolean "name of menu"
> menu "name of menu"
> 	depends on XXXX
> 
> This way you could change this:
> 
> menuconfig XXXX
> if XXXX
> [....all the other options....]
> endif
> 
> Into this:
> 
> menuconfig XXXX
> [....all the other options....]
> endmenu
> 
> The reason is that a frontend would easily be able to understand the coupling
> between the "menuconfig XXXX" and the "if XXXX".  It will make it easier for
> the frontend to see that all the options are inside and controlled by the
> enclosing menuconfig.
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 70+ messages in thread

* Re: [v4l-dvb-maintainer] [PATCH 35/36] Use menuconfig objects II - DVB
  2007-05-03 20:39             ` Trent Piepho
  2007-05-03 20:49               ` Sam Ravnborg
@ 2007-05-03 20:50               ` Sam Ravnborg
  2007-05-03 20:53               ` Jan Engelhardt
  2 siblings, 0 replies; 70+ messages in thread
From: Sam Ravnborg @ 2007-05-03 20:50 UTC (permalink / raw)
  To: Trent Piepho
  Cc: Jan Engelhardt, Mauro Carvalho Chehab, v4l-dvb maintainer list,
	Linux Kernel Mailing List

> 
> The out of tree v4l-dvb build system uses the same Kconfig/Makefiles as it
> does in the kernel.  This part of the kernel build system is not easily
> exported to out of tree modules, so we have some scripts to handle this.

Can you elaborate of what was causing your troubles.
Maybe kbuild/kconfig can be improved in this respect..

	Sam

^ permalink raw reply	[flat|nested] 70+ messages in thread

* Re: [v4l-dvb-maintainer] [PATCH 35/36] Use menuconfig objects II - DVB
  2007-05-03 20:39             ` Trent Piepho
  2007-05-03 20:49               ` Sam Ravnborg
  2007-05-03 20:50               ` Sam Ravnborg
@ 2007-05-03 20:53               ` Jan Engelhardt
  2 siblings, 0 replies; 70+ messages in thread
From: Jan Engelhardt @ 2007-05-03 20:53 UTC (permalink / raw)
  To: Trent Piepho
  Cc: Mauro Carvalho Chehab, v4l-dvb maintainer list,
	Linux Kernel Mailing List


On May 3 2007 13:39, Trent Piepho wrote:
>
>> >The point rised by Trent is that, currently, this is not prepared to
>> >handle the "menuconfig" and "if/endif" tags.
>
>BTW, I've now fixed this.
>
>Jan, have you looked at the effect these changes have when using xconfig, and
>not just menuconfig?

"The mouse is used to point at the xterm you want to type in."

So, sorry, no, I did not. However, Stefan notes his experience
with some earlier patches with [xg]config:
http://lkml.org/lkml/2007/4/10/326

For you, I installed qt3-devel/libglade2-devel on my machine
and ran it in [xg]config. 

>While your changes make menuconfig better, they have nearly opposite effect on
>xconfig.
>
>xconfig has the menu tree display in the left panel, where one can see the
>overall layout of the menu tree and jump directly to any menu (even one
>multiple levels deep).  All the menuconfigs that used to be menus don't show
>up here anymore.

That seems very much like a bug^Wmissing feature in [xg]config's
"Split View". It does work in Single View and Tree View.

>It looks like your changes are going in, so I suppose the solution is to
>improve the way xconfig handles "menuconfig".
>[...]
>The reason is that a frontend would easily be able to understand the coupling
>between the "menuconfig XXXX" and the "if XXXX".  It will make it easier for
>the frontend to see that all the options are inside and controlled by the
>enclosing menuconfig.

It works a bit different than 'menu'. An object will be put into a
menuconfig-menu IFF it has a depends on the menuconfig item.
This is different from menu-menus, which have "sort of" an
implicit "if/endif" block.


Jan
-- 

^ permalink raw reply	[flat|nested] 70+ messages in thread

* Re: [v4l-dvb-maintainer] [PATCH 35/36] Use menuconfig objects II - DVB
  2007-05-03 20:49               ` Sam Ravnborg
@ 2007-05-04  0:28                 ` Roman Zippel
  2007-05-04  1:40                   ` Trent Piepho
  0 siblings, 1 reply; 70+ messages in thread
From: Roman Zippel @ 2007-05-04  0:28 UTC (permalink / raw)
  To: Sam Ravnborg
  Cc: Trent Piepho, Jan Engelhardt, Mauro Carvalho Chehab,
	v4l-dvb maintainer list, Linux Kernel Mailing List

Hi,

On Thu, 3 May 2007, Sam Ravnborg wrote:

> Please include Roman Zippel when you propose kconfig changes.

Thanks, the lkml volume lately forces me to skip a lot, so it's quite 
possible I miss something. :)

> > xconfig has the menu tree display in the left panel, where one can see the
> > overall layout of the menu tree and jump directly to any menu (even one
> > multiple levels deep).  All the menuconfigs that used to be menus don't show
> > up here anymore.
> > 
> > To turn a menuconfig off, you must go to the top level menu containing the
> > menuconfig you want (and you must know which one that is!).  Then you have to
> > drill down through each menu level one by one, by finding that menu in the top
> > panel (which also has all the config options listed) and clicking on it to get
> > to the next one.  When you get to the menuconfig you want, you must enter it
> > and then you finally get the box to turn that menuconfig off.
> > 
> > It looks like your changes are going in, so I suppose the solution is to
> > improve the way xconfig handles "menuconfig".

I don't quite understand. With the menuconfig changes more menu entries 
should  appear on the left side, so I don't understand why you have to 
"drill down" to reach it.
The rule for menu to appear on the left side is relatively simple - all 
its parents must be of menu type as well. So if a menuconfig is on the 
right side it must have a normal config entry as parent.

> > I wonder, would it be possible to change the kconfig language so that:
> > menuconfig XXXX
> > 	boolean "name of menu"
> > 
> > Did the same thing as:
> > config XXXX
> > 	boolean "name of menu"
> > menu "name of menu"
> > 	depends on XXXX
> > 
> > This way you could change this:
> > 
> > menuconfig XXXX
> > if XXXX
> > [....all the other options....]
> > endif
> > 
> > Into this:
> > 
> > menuconfig XXXX
> > [....all the other options....]
> > endmenu
> > 
> > The reason is that a frontend would easily be able to understand the coupling
> > between the "menuconfig XXXX" and the "if XXXX".  It will make it easier for
> > the frontend to see that all the options are inside and controlled by the
> > enclosing menuconfig.

If the frontend wants to change the behaviour of a menuconfig, it can 
already do that, so this doesn't require a syntax change.

bye, Roman

^ permalink raw reply	[flat|nested] 70+ messages in thread

* Re: [v4l-dvb-maintainer] [PATCH 35/36] Use menuconfig objects II - DVB
  2007-05-04  0:28                 ` Roman Zippel
@ 2007-05-04  1:40                   ` Trent Piepho
  2007-05-04  7:46                     ` Jan Engelhardt
  0 siblings, 1 reply; 70+ messages in thread
From: Trent Piepho @ 2007-05-04  1:40 UTC (permalink / raw)
  To: Roman Zippel
  Cc: Sam Ravnborg, Jan Engelhardt, Mauro Carvalho Chehab,
	v4l-dvb maintainer list, Linux Kernel Mailing List

On Fri, 4 May 2007, Roman Zippel wrote:
> I don't quite understand. With the menuconfig changes more menu entries
> should  appear on the left side, so I don't understand why you have to
> "drill down" to reach it.
> The rule for menu to appear on the left side is relatively simple - all
> its parents must be of menu type as well. So if a menuconfig is on the
> right side it must have a normal config entry as parent.

I think that's it.  The media tree was done with options to select the core
system module, then a menuconfig that depended on that which the drivers
were under.

> > > menuconfig XXXX
> > > if XXXX
> > > [....all the other options....]
> > > endif
> > >
> > > Into this:
> > >
> > > menuconfig XXXX
> > > [....all the other options....]
> > > endmenu
> > >
> > > The reason is that a frontend would easily be able to understand the coupling
> > > between the "menuconfig XXXX" and the "if XXXX".  It will make it easier for
> > > the frontend to see that all the options are inside and controlled by the
> > > enclosing menuconfig.
>
> If the frontend wants to change the behaviour of a menuconfig, it can
> already do that, so this doesn't require a syntax change.

How about these examples:

menuconfig FOO
if FOO
config A
	depends on FOO
endif
config B
if FOO
config C
	depends on FOO
endif

Or this:
menu FOO
menuconfig BAR
config A
menuconfig BAZ
config B
endmenu

How does it show the first one, keeping the config entries in the correct
order and put them into the menu at the same time?

And which of what should the second be show?

foo
\-bar
  \-baz

or

foo
|-bar
\-baz

There is no question with menus, as the menu tree is clearly lexically
defined by the matching menu / endmenu pairs.  But menuconfig doesn't work
that way, and it seems like it would make more sense if it did.

^ permalink raw reply	[flat|nested] 70+ messages in thread

* Re: [v4l-dvb-maintainer] [PATCH 35/36] Use menuconfig objects II - DVB
  2007-05-04  1:40                   ` Trent Piepho
@ 2007-05-04  7:46                     ` Jan Engelhardt
  0 siblings, 0 replies; 70+ messages in thread
From: Jan Engelhardt @ 2007-05-04  7:46 UTC (permalink / raw)
  To: Trent Piepho
  Cc: Roman Zippel, Sam Ravnborg, Mauro Carvalho Chehab,
	v4l-dvb maintainer list, Linux Kernel Mailing List


On May 3 2007 18:40, Trent Piepho wrote:
>
>How about these examples:
>
>menuconfig FOO
>if FOO
>config A
>	depends on FOO
>endif
>config B
>if FOO
>config C
>	depends on FOO
>endif

This does not work as expected in ncurses-menuconfig either.
It does not even need a "menuconfig" object for that, something
as simple as

config A
config B
config C
  depends on A

prints it

A
B
C

rather than

A
\_ C
B

which is why some of my menuconfig patches _move_ C to not come after B.

>How does it show the first one, keeping the config entries in the correct
>order and put them into the menu at the same time?
>
>And which of what should the second be show?
>
>foo
>\-bar
>  \-baz
>
>or
>
>foo
>|-bar
>\-baz
>
>There is no question with menus, as the menu tree is clearly lexically
>defined by the matching menu / endmenu pairs.  But menuconfig doesn't work
>that way, and it seems like it would make more sense if it did.
>

Jan
-- 

^ permalink raw reply	[flat|nested] 70+ messages in thread

end of thread, other threads:[~2007-05-04  7:50 UTC | newest]

Thread overview: 70+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-30 11:03 [PATCH 00/36] Use menuconfig objects II - (overview) Jan Engelhardt
2007-04-30 11:20 ` [PATCH 01/36] Use menuconfig objects I.b - block Jan Engelhardt
2007-04-30 11:20 ` [PATCH 02/36] Use menuconfig objects II - auxdisplay Jan Engelhardt
2007-04-30 11:21 ` [PATCH 03/36] Use menuconfig objects II - battery Jan Engelhardt
2007-04-30 11:22 ` [PATCH 04/36] Use menuconfig objects II - block devices Jan Engelhardt
2007-04-30 11:24 ` [PATCH 05/36] Use menuconfig objects II - EDAC Jan Engelhardt
2007-04-30 11:26 ` [PATCH 06/36] Use menuconfig objects II - fusion Jan Engelhardt
2007-04-30 11:27 ` [PATCH 07/36] Use menuconfig objects II - HID Jan Engelhardt
2007-04-30 11:28 ` [PATCH 08/36] Use menuconfig objects II - hwmon Jan Engelhardt
2007-05-03 16:58   ` Jean Delvare
2007-04-30 11:29 ` [PATCH 09/36] Use menuconfig objects II - IEEE1394 Jan Engelhardt
2007-04-30 11:32 ` [PATCH 10/36] Use menuconfig objects II - Infiniband Jan Engelhardt
2007-04-30 11:33 ` [PATCH 11/36] Use menuconfig objects II - IPMI Jan Engelhardt
2007-04-30 14:43   ` Corey Minyard
2007-04-30 11:35 ` [PATCH 12/36] Use menuconfig objects II - ISDN Jan Engelhardt
2007-04-30 11:35 ` [PATCH 13/36] Use menuconfig objects II - KVM/Virt Jan Engelhardt
2007-04-30 13:45   ` Avi Kivity
2007-04-30 11:36 ` [PATCH 14/36] Use menuconfig objects II - LED Jan Engelhardt
2007-04-30 11:37 ` [PATCH 15/36] Use menuconfig objects II - Macintosh Jan Engelhardt
2007-04-30 11:38 ` [PATCH 16/36] Use menuconfig objects II - MD Jan Engelhardt
2007-04-30 11:40 ` [PATCH 17/36] Use menuconfig objects II - misc strange dev Jan Engelhardt
2007-04-30 11:40 ` [PATCH 18/36] Use menuconfig objects II - MMC Jan Engelhardt
2007-04-30 13:51   ` Pierre Ossman
2007-05-01 15:57   ` Pierre Ossman
2007-05-01 20:37     ` Jan Engelhardt
2007-05-02  5:19       ` Pierre Ossman
2007-05-02 17:47         ` Jan Engelhardt
2007-04-30 11:41 ` [PATCH 19/36] Use menuconfig objects II - module menu Jan Engelhardt
2007-04-30 11:43 ` [PATCH 20/36] Use menuconfig objects II - netdev (general+100mbit) Jan Engelhardt
2007-04-30 11:44 ` [PATCH 21/36] Use menuconfig objects II - netdev/atm Jan Engelhardt
2007-04-30 11:45 ` [PATCH 22/36] Use menuconfig objects II - netdev/pcmcia Jan Engelhardt
2007-04-30 11:45 ` [PATCH 23/36] Use menuconfig objects II - netdev/wan Jan Engelhardt
2007-05-01 20:04   ` Krzysztof Halasa
2007-04-30 11:46 ` [PATCH 24/36] Use menuconfig objects II - oprofile Jan Engelhardt
2007-04-30 11:48 ` [PATCH 25/36] Use menuconfig objects II - (external_)power Jan Engelhardt
2007-04-30 11:49 ` [PATCH 26/36] Use menuconfig objects II - RTC Jan Engelhardt
2007-04-30 11:50 ` [PATCH 27/36] Use menuconfig objects II - SCSI Jan Engelhardt
2007-04-30 11:52 ` [PATCH 28/36] Use menuconfig objects II - sound Jan Engelhardt
2007-04-30 14:19   ` Johannes Berg
2007-04-30 14:25     ` Johannes Berg
2007-04-30 14:45     ` Jan Engelhardt
2007-04-30 14:55       ` Johannes Berg
2007-04-30 15:12     ` Jan Engelhardt
2007-04-30 15:14       ` Jan Engelhardt
2007-04-30 15:21   ` [PATCH 28/36 #2] " Jan Engelhardt
2007-04-30 15:41     ` Johannes Berg
2007-04-30 16:13       ` Jan Engelhardt
2007-04-30 11:53 ` [PATCH 29/36] Use menuconfig objects II - Telephony Jan Engelhardt
2007-04-30 11:53 ` [PATCH 30/36] Use menuconfig objects II - TPM Jan Engelhardt
2007-04-30 11:54 ` [PATCH 31/36] Use menuconfig objects II - UIO Jan Engelhardt
2007-04-30 11:55 ` [PATCH 32/36] Use menuconfig objects II - USB Jan Engelhardt
2007-04-30 11:56 ` [PATCH 33/36] Use menuconfig objects II - video/logo Jan Engelhardt
2007-05-01  0:08   ` Antonino A. Daplas
2007-04-30 11:56 ` [PATCH 34/36] Use menuconfig objects II - watchdog Jan Engelhardt
2007-04-30 12:30 ` [PATCH 35/36] Use menuconfig objects II - DVB Jan Engelhardt
2007-05-02 18:10   ` [v4l-dvb-maintainer] " Mauro Carvalho Chehab
2007-05-02 21:38     ` Trent Piepho
2007-05-03  6:56       ` Jan Engelhardt
2007-05-03 12:37         ` Mauro Carvalho Chehab
2007-05-03 12:54           ` Jan Engelhardt
2007-05-03 18:38             ` Mauro Carvalho Chehab
2007-05-03 20:39             ` Trent Piepho
2007-05-03 20:49               ` Sam Ravnborg
2007-05-04  0:28                 ` Roman Zippel
2007-05-04  1:40                   ` Trent Piepho
2007-05-04  7:46                     ` Jan Engelhardt
2007-05-03 20:50               ` Sam Ravnborg
2007-05-03 20:53               ` Jan Engelhardt
2007-04-30 12:30 ` [PATCH 36/36] Use menuconfig objects II - V4L Jan Engelhardt
2007-05-02 18:03   ` [v4l-dvb-maintainer] " Mauro Carvalho Chehab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).