diff options
author | Don Mullis <dwm@meer.net> | 2006-12-10 05:18:37 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-10 12:55:39 -0500 |
commit | bf4735a46a6b8dfc1a951f05683e80374d8baa70 (patch) | |
tree | 6ac5cafb9e3287446549a56161ca6843cf60377e /drivers | |
parent | d53ef07ab45085c0b06b652d588aa49b8ba41458 (diff) |
[PATCH] Kconfig refactoring for better menu nesting
Refactor Kconfig content to maximize nesting of menus by menuconfig and
xconfig.
Tested by simultaneously running `make xconfig` with and without
patch, and comparing displays.
Signed-off-by: Don Mullis <dwm@meer.net>
Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: Roman Zippel <zippel@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/parport/Kconfig | 6 | ||||
-rw-r--r-- | drivers/pci/hotplug/Kconfig | 3 | ||||
-rw-r--r-- | drivers/serial/Kconfig | 53 |
3 files changed, 31 insertions, 31 deletions
diff --git a/drivers/parport/Kconfig b/drivers/parport/Kconfig index c7fa28a28b9f..36c6a1bfe558 100644 --- a/drivers/parport/Kconfig +++ b/drivers/parport/Kconfig | |||
@@ -82,9 +82,6 @@ config PARPORT_PC_PCMCIA | |||
82 | Say Y here if you need PCMCIA support for your PC-style parallel | 82 | Say Y here if you need PCMCIA support for your PC-style parallel |
83 | ports. If unsure, say N. | 83 | ports. If unsure, say N. |
84 | 84 | ||
85 | config PARPORT_NOT_PC | ||
86 | bool | ||
87 | |||
88 | config PARPORT_IP32 | 85 | config PARPORT_IP32 |
89 | tristate "SGI IP32 builtin port (EXPERIMENTAL)" | 86 | tristate "SGI IP32 builtin port (EXPERIMENTAL)" |
90 | depends on SGI_IP32 && PARPORT && EXPERIMENTAL | 87 | depends on SGI_IP32 && PARPORT && EXPERIMENTAL |
@@ -158,5 +155,8 @@ config PARPORT_1284 | |||
158 | transfer modes. Also say Y if you want device ID information to | 155 | transfer modes. Also say Y if you want device ID information to |
159 | appear in /proc/sys/dev/parport/*/autoprobe*. It is safe to say N. | 156 | appear in /proc/sys/dev/parport/*/autoprobe*. It is safe to say N. |
160 | 157 | ||
158 | config PARPORT_NOT_PC | ||
159 | bool | ||
160 | |||
161 | endmenu | 161 | endmenu |
162 | 162 | ||
diff --git a/drivers/pci/hotplug/Kconfig b/drivers/pci/hotplug/Kconfig index 6e780db9454d..adce4204d87d 100644 --- a/drivers/pci/hotplug/Kconfig +++ b/drivers/pci/hotplug/Kconfig | |||
@@ -76,7 +76,8 @@ config HOTPLUG_PCI_IBM | |||
76 | 76 | ||
77 | config HOTPLUG_PCI_ACPI | 77 | config HOTPLUG_PCI_ACPI |
78 | tristate "ACPI PCI Hotplug driver" | 78 | tristate "ACPI PCI Hotplug driver" |
79 | depends on (!ACPI_DOCK && ACPI && HOTPLUG_PCI) || (ACPI_DOCK && HOTPLUG_PCI) | 79 | depends on HOTPLUG_PCI |
80 | depends on (!ACPI_DOCK && ACPI) || (ACPI_DOCK) | ||
80 | help | 81 | help |
81 | Say Y here if you have a system that supports PCI Hotplug using | 82 | Say Y here if you have a system that supports PCI Hotplug using |
82 | ACPI. | 83 | ACPI. |
diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig index fc12d5df10e2..0b36dd5cdac2 100644 --- a/drivers/serial/Kconfig +++ b/drivers/serial/Kconfig | |||
@@ -151,32 +151,6 @@ config SERIAL_8250_MANY_PORTS | |||
151 | say N here to save some memory. You can also say Y if you have an | 151 | say N here to save some memory. You can also say Y if you have an |
152 | "intelligent" multiport card such as Cyclades, Digiboards, etc. | 152 | "intelligent" multiport card such as Cyclades, Digiboards, etc. |
153 | 153 | ||
154 | config SERIAL_8250_SHARE_IRQ | ||
155 | bool "Support for sharing serial interrupts" | ||
156 | depends on SERIAL_8250_EXTENDED | ||
157 | help | ||
158 | Some serial boards have hardware support which allows multiple dumb | ||
159 | serial ports on the same board to share a single IRQ. To enable | ||
160 | support for this in the serial driver, say Y here. | ||
161 | |||
162 | config SERIAL_8250_DETECT_IRQ | ||
163 | bool "Autodetect IRQ on standard ports (unsafe)" | ||
164 | depends on SERIAL_8250_EXTENDED | ||
165 | help | ||
166 | Say Y here if you want the kernel to try to guess which IRQ | ||
167 | to use for your serial port. | ||
168 | |||
169 | This is considered unsafe; it is far better to configure the IRQ in | ||
170 | a boot script using the setserial command. | ||
171 | |||
172 | If unsure, say N. | ||
173 | |||
174 | config SERIAL_8250_RSA | ||
175 | bool "Support RSA serial ports" | ||
176 | depends on SERIAL_8250_EXTENDED | ||
177 | help | ||
178 | ::: To be written ::: | ||
179 | |||
180 | # | 154 | # |
181 | # Multi-port serial cards | 155 | # Multi-port serial cards |
182 | # | 156 | # |
@@ -199,7 +173,6 @@ config SERIAL_8250_ACCENT | |||
199 | To compile this driver as a module, choose M here: the module | 173 | To compile this driver as a module, choose M here: the module |
200 | will be called 8250_accent. | 174 | will be called 8250_accent. |
201 | 175 | ||
202 | |||
203 | config SERIAL_8250_BOCA | 176 | config SERIAL_8250_BOCA |
204 | tristate "Support Boca cards" | 177 | tristate "Support Boca cards" |
205 | depends on SERIAL_8250 != n && ISA && SERIAL_8250_MANY_PORTS | 178 | depends on SERIAL_8250 != n && ISA && SERIAL_8250_MANY_PORTS |
@@ -230,6 +203,32 @@ config SERIAL_8250_HUB6 | |||
230 | To compile this driver as a module, choose M here: the module | 203 | To compile this driver as a module, choose M here: the module |
231 | will be called 8250_hub6. | 204 | will be called 8250_hub6. |
232 | 205 | ||
206 | config SERIAL_8250_SHARE_IRQ | ||
207 | bool "Support for sharing serial interrupts" | ||
208 | depends on SERIAL_8250_EXTENDED | ||
209 | help | ||
210 | Some serial boards have hardware support which allows multiple dumb | ||
211 | serial ports on the same board to share a single IRQ. To enable | ||
212 | support for this in the serial driver, say Y here. | ||
213 | |||
214 | config SERIAL_8250_DETECT_IRQ | ||
215 | bool "Autodetect IRQ on standard ports (unsafe)" | ||
216 | depends on SERIAL_8250_EXTENDED | ||
217 | help | ||
218 | Say Y here if you want the kernel to try to guess which IRQ | ||
219 | to use for your serial port. | ||
220 | |||
221 | This is considered unsafe; it is far better to configure the IRQ in | ||
222 | a boot script using the setserial command. | ||
223 | |||
224 | If unsure, say N. | ||
225 | |||
226 | config SERIAL_8250_RSA | ||
227 | bool "Support RSA serial ports" | ||
228 | depends on SERIAL_8250_EXTENDED | ||
229 | help | ||
230 | ::: To be written ::: | ||
231 | |||
233 | config SERIAL_8250_MCA | 232 | config SERIAL_8250_MCA |
234 | tristate "Support 8250-type ports on MCA buses" | 233 | tristate "Support 8250-type ports on MCA buses" |
235 | depends on SERIAL_8250 != n && MCA | 234 | depends on SERIAL_8250 != n && MCA |