diff options
author | Denis Cheng <crquan@gmail.com> | 2008-01-24 03:36:31 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-02-01 17:35:06 -0500 |
commit | b75be4abf18e9725766ed835f0d2cf201b52de7e (patch) | |
tree | 0533b72cf51f04db1f30f8fd6c36958cfa02ef1d /drivers/usb | |
parent | f54aab6ebcecd93e86cea34ddba5f3d454382041 (diff) |
USB: Use menuconfig objects
commit 04d06ad0f1fdb499af84ae3d7969e2136a462f38 have added menuconfig support
for the whole USB Kconfig, but there are still menuconfig need for usb/serial,
usb/atm, and usb/gadget, 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: Denis Cheng <crquan@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/atm/Kconfig | 9 | ||||
-rw-r--r-- | drivers/usb/gadget/Kconfig | 9 | ||||
-rw-r--r-- | drivers/usb/serial/Kconfig | 11 |
3 files changed, 13 insertions, 16 deletions
diff --git a/drivers/usb/atm/Kconfig b/drivers/usb/atm/Kconfig index b450cbaa3a0b..86e64035edb0 100644 --- a/drivers/usb/atm/Kconfig +++ b/drivers/usb/atm/Kconfig | |||
@@ -2,10 +2,7 @@ | |||
2 | # USB/ATM DSL configuration | 2 | # USB/ATM DSL configuration |
3 | # | 3 | # |
4 | 4 | ||
5 | menu "USB DSL modem support" | 5 | menuconfig USB_ATM |
6 | depends on USB | ||
7 | |||
8 | config USB_ATM | ||
9 | tristate "USB DSL modem support" | 6 | tristate "USB DSL modem support" |
10 | depends on USB && ATM | 7 | depends on USB && ATM |
11 | select CRC32 | 8 | select CRC32 |
@@ -18,6 +15,8 @@ config USB_ATM | |||
18 | To compile this driver as a module, choose M here: the | 15 | To compile this driver as a module, choose M here: the |
19 | module will be called usbatm. | 16 | module will be called usbatm. |
20 | 17 | ||
18 | if USB_ATM | ||
19 | |||
21 | config USB_SPEEDTOUCH | 20 | config USB_SPEEDTOUCH |
22 | tristate "Speedtouch USB support" | 21 | tristate "Speedtouch USB support" |
23 | depends on USB_ATM | 22 | depends on USB_ATM |
@@ -70,4 +69,4 @@ config USB_XUSBATM | |||
70 | To compile this driver as a module, choose M here: the | 69 | To compile this driver as a module, choose M here: the |
71 | module will be called xusbatm. | 70 | module will be called xusbatm. |
72 | 71 | ||
73 | endmenu | 72 | endif # USB_ATM |
diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig index 8a88f24270be..c13955164686 100644 --- a/drivers/usb/gadget/Kconfig +++ b/drivers/usb/gadget/Kconfig | |||
@@ -12,10 +12,9 @@ | |||
12 | # With help from a special transceiver and a "Mini-AB" jack, systems with | 12 | # With help from a special transceiver and a "Mini-AB" jack, systems with |
13 | # both kinds of controller can also support "USB On-the-Go" (CONFIG_USB_OTG). | 13 | # both kinds of controller can also support "USB On-the-Go" (CONFIG_USB_OTG). |
14 | # | 14 | # |
15 | menu "USB Gadget Support" | ||
16 | 15 | ||
17 | config USB_GADGET | 16 | menuconfig USB_GADGET |
18 | tristate "Support for USB Gadgets" | 17 | tristate "USB Gadget Support" |
19 | help | 18 | help |
20 | USB is a master/slave protocol, organized with one master | 19 | USB is a master/slave protocol, organized with one master |
21 | host (such as a PC) controlling up to 127 peripheral devices. | 20 | host (such as a PC) controlling up to 127 peripheral devices. |
@@ -42,6 +41,8 @@ config USB_GADGET | |||
42 | For more information, see <http://www.linux-usb.org/gadget> and | 41 | For more information, see <http://www.linux-usb.org/gadget> and |
43 | the kernel DocBook documentation for this API. | 42 | the kernel DocBook documentation for this API. |
44 | 43 | ||
44 | if USB_GADGET | ||
45 | |||
45 | config USB_GADGET_DEBUG | 46 | config USB_GADGET_DEBUG |
46 | boolean "Debugging messages" | 47 | boolean "Debugging messages" |
47 | depends on USB_GADGET && DEBUG_KERNEL && EXPERIMENTAL | 48 | depends on USB_GADGET && DEBUG_KERNEL && EXPERIMENTAL |
@@ -570,4 +571,4 @@ config USB_G_PRINTER | |||
570 | 571 | ||
571 | endchoice | 572 | endchoice |
572 | 573 | ||
573 | endmenu | 574 | endif # USB_GADGET |
diff --git a/drivers/usb/serial/Kconfig b/drivers/usb/serial/Kconfig index 5df5d0fe258a..c1e65dfd9353 100644 --- a/drivers/usb/serial/Kconfig +++ b/drivers/usb/serial/Kconfig | |||
@@ -2,10 +2,7 @@ | |||
2 | # USB Serial device configuration | 2 | # USB Serial device configuration |
3 | # | 3 | # |
4 | 4 | ||
5 | menu "USB Serial Converter support" | 5 | menuconfig USB_SERIAL |
6 | depends on USB!=n | ||
7 | |||
8 | config USB_SERIAL | ||
9 | tristate "USB Serial Converter support" | 6 | tristate "USB Serial Converter support" |
10 | depends on USB | 7 | depends on USB |
11 | ---help--- | 8 | ---help--- |
@@ -20,6 +17,8 @@ config USB_SERIAL | |||
20 | To compile this driver as a module, choose M here: the | 17 | To compile this driver as a module, choose M here: the |
21 | module will be called usbserial. | 18 | module will be called usbserial. |
22 | 19 | ||
20 | if USB_SERIAL | ||
21 | |||
23 | config USB_SERIAL_CONSOLE | 22 | config USB_SERIAL_CONSOLE |
24 | bool "USB Serial Console device support (EXPERIMENTAL)" | 23 | bool "USB Serial Console device support (EXPERIMENTAL)" |
25 | depends on USB_SERIAL=y && EXPERIMENTAL | 24 | depends on USB_SERIAL=y && EXPERIMENTAL |
@@ -606,6 +605,4 @@ config USB_SERIAL_DEBUG | |||
606 | To compile this driver as a module, choose M here: the | 605 | To compile this driver as a module, choose M here: the |
607 | module will be called usb-debug. | 606 | module will be called usb-debug. |
608 | 607 | ||
609 | 608 | endif # USB_SERIAL | |
610 | endmenu | ||
611 | |||