Skip to contentSkip to conversation

mfd: use menuconfig for quicker config editing

PATCH In review Randy Dunlap 2 participants 2 messages May 7, 2010 – May 10, 2010 Multifunction devices (MFD)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mfd: use menuconfig for quicker config editing

From: Randy Dunlap <[email protected]>

Change MFD 'menu' to 'menuconfig' to facilitate easy (one-click) disabling of all MFD drivers.

---
 drivers/mfd/Kconfig |   10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
drivers/mfd/Kconfig +8 -2
@@ -2,8 +2,14 @@
 # Multifunction miscellaneous devices
 #
 
-menu "Multifunction device drivers"
+menuconfig MFD_SUPPORT
+	bool "Multifunction device drivers"
 	depends on HAS_IOMEM
+	default y
+	help
+	  Configure MFD device drivers.
+
+if MFD_SUPPORT
 
 config MFD_CORE
 	tristate
@@ -399,7 +405,7 @@ config LPC_SCH
 	  LPC bridge function of the Intel SCH provides support for
 	  System Management Bus and General Purpose I/O.
 
-endmenu
+endif # MFD_SUPPORT
 
 menu "Multimedia Capabilities Port drivers"
 	depends on ARCH_SA1100
#1 lore raw

Hi Randy,

Quoted 4 lines · Randy Dunlap

From: Randy Dunlap <[email protected]>

Change MFD 'menu' to 'menuconfig' to facilitate easy (one-click) disabling of all MFD drivers.

Thanks, patch applied.

Cheers,
Samuel.

Quoted 33 lines
---
 drivers/mfd/Kconfig |   10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
drivers/mfd/Kconfig +8 -2
@@ -2,8 +2,14 @@
 # Multifunction miscellaneous devices
 #
 
-menu "Multifunction device drivers"
+menuconfig MFD_SUPPORT
+	bool "Multifunction device drivers"
 	depends on HAS_IOMEM
+	default y
+	help
+	  Configure MFD device drivers.
+
+if MFD_SUPPORT
 
 config MFD_CORE
 	tristate
@@ -399,7 +405,7 @@ config LPC_SCH
 	  LPC bridge function of the Intel SCH provides support for
 	  System Management Bus and General Purpose I/O.
 
-endmenu
+endif # MFD_SUPPORT
 
 menu "Multimedia Capabilities Port drivers"
 	depends on ARCH_SA1100
Signature · 2 lines
Intel Open Source Technology Centre
http://oss.intel.com/