Commit 4829a996 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman

staging: comedi: Kconfig: cleanup depends on logic

All of the config options for comedi depend on COMEDI being
selected. Wrap everything in an 'if COMEDI/endif' block and
remove all the individual 'depends on COMEDI' in the Kconfig.

Also, remove the redundant && ISA/PCI/PCMCIA/USB for the if
blocks with those driver types.
Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbott@mev.co.uk>
Cc: Frank Mori Hess <fmhess@users.sourceforge.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e888fabd
...@@ -6,9 +6,10 @@ config COMEDI ...@@ -6,9 +6,10 @@ config COMEDI
Enable support a wide range of data acquisition devices Enable support a wide range of data acquisition devices
for Linux. for Linux.
if COMEDI
config COMEDI_DEBUG config COMEDI_DEBUG
bool "Comedi debugging" bool "Comedi debugging"
depends on COMEDI != n
---help--- ---help---
This is an option for use by developers; most people should This is an option for use by developers; most people should
say N here. This enables comedi core and driver debugging. say N here. This enables comedi core and driver debugging.
...@@ -16,7 +17,6 @@ config COMEDI_DEBUG ...@@ -16,7 +17,6 @@ config COMEDI_DEBUG
config COMEDI_DEFAULT_BUF_SIZE_KB config COMEDI_DEFAULT_BUF_SIZE_KB
int "Comedi default initial asynchronous buffer size in KiB" int "Comedi default initial asynchronous buffer size in KiB"
default "2048" default "2048"
depends on COMEDI != n
---help--- ---help---
This is the default asynchronous buffer size which is used for This is the default asynchronous buffer size which is used for
commands running in the background in kernel space. This commands running in the background in kernel space. This
...@@ -26,7 +26,6 @@ config COMEDI_DEFAULT_BUF_SIZE_KB ...@@ -26,7 +26,6 @@ config COMEDI_DEFAULT_BUF_SIZE_KB
config COMEDI_DEFAULT_BUF_MAXSIZE_KB config COMEDI_DEFAULT_BUF_MAXSIZE_KB
int "Comedi default maximum asynchronous buffer size in KiB" int "Comedi default maximum asynchronous buffer size in KiB"
default "20480" default "20480"
depends on COMEDI != n
---help--- ---help---
This is the default maximum asynchronous buffer size which can This is the default maximum asynchronous buffer size which can
be requested by a userspace program without root privileges. be requested by a userspace program without root privileges.
...@@ -35,7 +34,6 @@ config COMEDI_DEFAULT_BUF_MAXSIZE_KB ...@@ -35,7 +34,6 @@ config COMEDI_DEFAULT_BUF_MAXSIZE_KB
menuconfig COMEDI_MISC_DRIVERS menuconfig COMEDI_MISC_DRIVERS
tristate "Comedi misc drivers" tristate "Comedi misc drivers"
depends on COMEDI
---help--- ---help---
Enable comedi misc drivers to be built Enable comedi misc drivers to be built
...@@ -103,7 +101,7 @@ endif # COMEDI_MISC_DRIVERS ...@@ -103,7 +101,7 @@ endif # COMEDI_MISC_DRIVERS
menuconfig COMEDI_ISA_DRIVERS menuconfig COMEDI_ISA_DRIVERS
tristate "Comedi ISA and PC/104 drivers" tristate "Comedi ISA and PC/104 drivers"
depends on COMEDI && ISA depends on ISA
---help--- ---help---
Enable comedi ISA and PC/104 drivers to be built Enable comedi ISA and PC/104 drivers to be built
...@@ -111,7 +109,7 @@ menuconfig COMEDI_ISA_DRIVERS ...@@ -111,7 +109,7 @@ menuconfig COMEDI_ISA_DRIVERS
kernel: saying N will just cause the configurator to skip all kernel: saying N will just cause the configurator to skip all
the questions about ISA and PC/104 comedi drivers. the questions about ISA and PC/104 comedi drivers.
if COMEDI_ISA_DRIVERS && ISA if COMEDI_ISA_DRIVERS
config COMEDI_ACL7225B config COMEDI_ACL7225B
tristate "ADlink NuDAQ ACL-7225b and compatibles support" tristate "ADlink NuDAQ ACL-7225b and compatibles support"
...@@ -543,7 +541,7 @@ endif # COMEDI_ISA_DRIVERS ...@@ -543,7 +541,7 @@ endif # COMEDI_ISA_DRIVERS
menuconfig COMEDI_PCI_DRIVERS menuconfig COMEDI_PCI_DRIVERS
tristate "Comedi PCI drivers" tristate "Comedi PCI drivers"
depends on COMEDI && PCI depends on PCI
---help--- ---help---
Enable comedi PCI drivers to be built Enable comedi PCI drivers to be built
...@@ -551,7 +549,7 @@ menuconfig COMEDI_PCI_DRIVERS ...@@ -551,7 +549,7 @@ menuconfig COMEDI_PCI_DRIVERS
kernel: saying N will just cause the configurator to skip all kernel: saying N will just cause the configurator to skip all
the questions about PCI comedi drivers. the questions about PCI comedi drivers.
if COMEDI_PCI_DRIVERS && PCI if COMEDI_PCI_DRIVERS
config COMEDI_ADDI_APCI_035 config COMEDI_ADDI_APCI_035
tristate "ADDI-DATA APCI_035 support" tristate "ADDI-DATA APCI_035 support"
...@@ -1099,7 +1097,7 @@ endif # COMEDI_PCI_DRIVERS ...@@ -1099,7 +1097,7 @@ endif # COMEDI_PCI_DRIVERS
menuconfig COMEDI_PCMCIA_DRIVERS menuconfig COMEDI_PCMCIA_DRIVERS
tristate "Comedi PCMCIA drivers" tristate "Comedi PCMCIA drivers"
depends on COMEDI && (PCMCIA || PCCARD) depends on (PCMCIA || PCCARD)
---help--- ---help---
Enable comedi PCMCIA and PCCARD drivers to be built Enable comedi PCMCIA and PCCARD drivers to be built
...@@ -1107,7 +1105,7 @@ menuconfig COMEDI_PCMCIA_DRIVERS ...@@ -1107,7 +1105,7 @@ menuconfig COMEDI_PCMCIA_DRIVERS
kernel: saying N will just cause the configurator to skip all kernel: saying N will just cause the configurator to skip all
the questions about PCMCIA comedi drivers. the questions about PCMCIA comedi drivers.
if COMEDI_PCMCIA_DRIVERS && PCMCIA if COMEDI_PCMCIA_DRIVERS
config COMEDI_CB_DAS16_CS config COMEDI_CB_DAS16_CS
tristate "CB DAS16 series PCMCIA support" tristate "CB DAS16 series PCMCIA support"
...@@ -1182,7 +1180,7 @@ endif # COMEDI_PCMCIA_DRIVERS ...@@ -1182,7 +1180,7 @@ endif # COMEDI_PCMCIA_DRIVERS
menuconfig COMEDI_USB_DRIVERS menuconfig COMEDI_USB_DRIVERS
tristate "Comedi USB drivers" tristate "Comedi USB drivers"
depends on COMEDI && USB depends on USB
---help--- ---help---
Enable comedi USB drivers to be built Enable comedi USB drivers to be built
...@@ -1190,7 +1188,7 @@ menuconfig COMEDI_USB_DRIVERS ...@@ -1190,7 +1188,7 @@ menuconfig COMEDI_USB_DRIVERS
kernel: saying N will just cause the configurator to skip all kernel: saying N will just cause the configurator to skip all
the questions about USB comedi drivers. the questions about USB comedi drivers.
if COMEDI_USB_DRIVERS && USB if COMEDI_USB_DRIVERS
config COMEDI_DT9812 config COMEDI_DT9812
tristate "DataTranslation DT9812 USB module support" tristate "DataTranslation DT9812 USB module support"
...@@ -1290,7 +1288,6 @@ endif # COMEDI_NI_COMMON ...@@ -1290,7 +1288,6 @@ endif # COMEDI_NI_COMMON
config COMEDI_8255 config COMEDI_8255
tristate "Generic 8255 support" tristate "Generic 8255 support"
depends on COMEDI
---help--- ---help---
Enable generic 8255 support. Enable generic 8255 support.
...@@ -1306,23 +1303,20 @@ config COMEDI_8255 ...@@ -1306,23 +1303,20 @@ config COMEDI_8255
config COMEDI_FC config COMEDI_FC
tristate tristate
depends on COMEDI
config COMEDI_AMPLC_DIO200 config COMEDI_AMPLC_DIO200
tristate tristate
depends on COMEDI
select COMEDI_8255 select COMEDI_8255
config COMEDI_AMPLC_PC236 config COMEDI_AMPLC_PC236
tristate tristate
depends on COMEDI
select COMEDI_8255 select COMEDI_8255
config COMEDI_AMPLC_PC263 config COMEDI_AMPLC_PC263
tristate tristate
depends on COMEDI
config COMEDI_DAS08 config COMEDI_DAS08
tristate tristate
depends on COMEDI
select COMEDI_8255 select COMEDI_8255
endif # COMEDI
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment