瀏覽代碼

Use menuconfig objects: PHY

Use menuconfigs instead of menus, so the whole menu can be disabled at once
instead of going through all options.

Signed-off-by: Jan Engelhardt <jengelh@gmx.de>
Cc: Jeff Garzik <jeff@garzik.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Jan Engelhardt 18 年之前
父節點
當前提交
53f99941c1
共有 1 個文件被更改,包括 6 次插入16 次删除
  1. 6 16
      drivers/net/phy/Kconfig

+ 6 - 16
drivers/net/phy/Kconfig

@@ -2,70 +2,61 @@
 # PHY Layer Configuration
 # PHY Layer Configuration
 #
 #
 
 
-menu "PHY device support"
-	depends on !S390
-
-config PHYLIB
+menuconfig PHYLIB
 	tristate "PHY Device support and infrastructure"
 	tristate "PHY Device support and infrastructure"
+	depends on !S390
 	depends on NET_ETHERNET && (BROKEN || !S390)
 	depends on NET_ETHERNET && (BROKEN || !S390)
 	help
 	help
 	  Ethernet controllers are usually attached to PHY
 	  Ethernet controllers are usually attached to PHY
 	  devices.  This option provides infrastructure for
 	  devices.  This option provides infrastructure for
 	  managing PHY devices.
 	  managing PHY devices.
 
 
+if PHYLIB
+
 comment "MII PHY device drivers"
 comment "MII PHY device drivers"
-	depends on PHYLIB
 
 
 config MARVELL_PHY
 config MARVELL_PHY
 	tristate "Drivers for Marvell PHYs"
 	tristate "Drivers for Marvell PHYs"
-	depends on PHYLIB
 	---help---
 	---help---
 	  Currently has a driver for the 88E1011S
 	  Currently has a driver for the 88E1011S
 	
 	
 config DAVICOM_PHY
 config DAVICOM_PHY
 	tristate "Drivers for Davicom PHYs"
 	tristate "Drivers for Davicom PHYs"
-	depends on PHYLIB
 	---help---
 	---help---
 	  Currently supports dm9161e and dm9131
 	  Currently supports dm9161e and dm9131
 
 
 config QSEMI_PHY
 config QSEMI_PHY
 	tristate "Drivers for Quality Semiconductor PHYs"
 	tristate "Drivers for Quality Semiconductor PHYs"
-	depends on PHYLIB
 	---help---
 	---help---
 	  Currently supports the qs6612
 	  Currently supports the qs6612
 
 
 config LXT_PHY
 config LXT_PHY
 	tristate "Drivers for the Intel LXT PHYs"
 	tristate "Drivers for the Intel LXT PHYs"
-	depends on PHYLIB
 	---help---
 	---help---
 	  Currently supports the lxt970, lxt971
 	  Currently supports the lxt970, lxt971
 
 
 config CICADA_PHY
 config CICADA_PHY
 	tristate "Drivers for the Cicada PHYs"
 	tristate "Drivers for the Cicada PHYs"
-	depends on PHYLIB
 	---help---
 	---help---
 	  Currently supports the cis8204
 	  Currently supports the cis8204
+
 config VITESSE_PHY
 config VITESSE_PHY
         tristate "Drivers for the Vitesse PHYs"
         tristate "Drivers for the Vitesse PHYs"
-        depends on PHYLIB
         ---help---
         ---help---
           Currently supports the vsc8244
           Currently supports the vsc8244
 
 
 config SMSC_PHY
 config SMSC_PHY
 	tristate "Drivers for SMSC PHYs"
 	tristate "Drivers for SMSC PHYs"
-	depends on PHYLIB
 	---help---
 	---help---
 	  Currently supports the LAN83C185 PHY
 	  Currently supports the LAN83C185 PHY
 
 
 config BROADCOM_PHY
 config BROADCOM_PHY
 	tristate "Drivers for Broadcom PHYs"
 	tristate "Drivers for Broadcom PHYs"
-	depends on PHYLIB
 	---help---
 	---help---
 	  Currently supports the BCM5411, BCM5421 and BCM5461 PHYs.
 	  Currently supports the BCM5411, BCM5421 and BCM5461 PHYs.
 
 
 config FIXED_PHY
 config FIXED_PHY
 	tristate "Drivers for PHY emulation on fixed speed/link"
 	tristate "Drivers for PHY emulation on fixed speed/link"
-	depends on PHYLIB
 	---help---
 	---help---
 	  Adds the driver to PHY layer to cover the boards that do not have any PHY bound,
 	  Adds the driver to PHY layer to cover the boards that do not have any PHY bound,
 	  but with the ability to manipulate the speed/link in software. The relevant MII
 	  but with the ability to manipulate the speed/link in software. The relevant MII
@@ -80,5 +71,4 @@ config FIXED_MII_100_FDX
 	bool "Emulation for 100M Fdx fixed PHY behavior"
 	bool "Emulation for 100M Fdx fixed PHY behavior"
 	depends on FIXED_PHY
 	depends on FIXED_PHY
 
 
-endmenu
-
+endif # PHYLIB