Commit 7ac21b82 authored by Ian Abbott's avatar Ian Abbott Committed by Greg Kroah-Hartman

staging: comedi: Simplify NI driver configuration

At the moment, the options to select drivers for various National
Instruments boards in the "Comedi PCI drivers", "Comedi ISA and PC/104
drivers" and "Comedi PCMCIA drivers" menus do not appear unless you
first enable and enter the "Comedi National Instruments card support"
menu and possibly select some of the options in there.  This is pretty
confusing for the user.

Get rid of the "Comedi National Instruments card support" menu
(CONFIG_COMEDI_NI_COMMON) and make the CONFIG_COMEDI_MITE,
CONFIG_COMEDI_NI_TIO and CONFIG_COMEDI_NI_TIOCMD options selectable by
other options instead of dependencies of those other options.

We lose the ability to build the 'mite', 'ni_tio' and 'ni_tiocmd'
modules independently of other modules, but they are not useful on their
own anyway.
Signed-off-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2f2ac8ec
...@@ -444,7 +444,6 @@ config COMEDI_ADQ12B ...@@ -444,7 +444,6 @@ config COMEDI_ADQ12B
config COMEDI_NI_AT_A2150 config COMEDI_NI_AT_A2150
tristate "NI AT-A2150 ISA card support" tristate "NI AT-A2150 ISA card support"
depends on COMEDI_NI_COMMON
depends on VIRT_TO_BUS depends on VIRT_TO_BUS
---help--- ---help---
Enable support for National Instruments AT-A2150 cards Enable support for National Instruments AT-A2150 cards
...@@ -454,7 +453,6 @@ config COMEDI_NI_AT_A2150 ...@@ -454,7 +453,6 @@ config COMEDI_NI_AT_A2150
config COMEDI_NI_AT_AO config COMEDI_NI_AT_AO
tristate "NI AT-AO-6/10 EISA card support" tristate "NI AT-AO-6/10 EISA card support"
depends on COMEDI_NI_COMMON
---help--- ---help---
Enable support for National Instruments AT-AO-6/10 cards Enable support for National Instruments AT-AO-6/10 cards
...@@ -463,8 +461,9 @@ config COMEDI_NI_AT_AO ...@@ -463,8 +461,9 @@ config COMEDI_NI_AT_AO
config COMEDI_NI_ATMIO config COMEDI_NI_ATMIO
tristate "NI AT-MIO E series ISA-PNP card support" tristate "NI AT-MIO E series ISA-PNP card support"
depends on ISAPNP && COMEDI_NI_TIO && COMEDI_NI_COMMON depends on ISAPNP
select COMEDI_8255 select COMEDI_8255
select COMEDI_NI_TIO
---help--- ---help---
Enable support for National Instruments AT-MIO E series cards Enable support for National Instruments AT-MIO E series cards
National Instruments AT-MIO-16E-1 (ni_atmio), National Instruments AT-MIO-16E-1 (ni_atmio),
...@@ -476,7 +475,7 @@ config COMEDI_NI_ATMIO ...@@ -476,7 +475,7 @@ config COMEDI_NI_ATMIO
config COMEDI_NI_ATMIO16D config COMEDI_NI_ATMIO16D
tristate "NI AT-MIO16/AT-MIO16D series ISA-PNP card support" tristate "NI AT-MIO16/AT-MIO16D series ISA-PNP card support"
depends on ISAPNP && COMEDI_NI_COMMON depends on ISAPNP
select COMEDI_8255 select COMEDI_8255
---help--- ---help---
Enable support for National Instruments AT-MIO16/AT-MIO16D cards. Enable support for National Instruments AT-MIO16/AT-MIO16D cards.
...@@ -985,7 +984,7 @@ config COMEDI_ME_DAQ ...@@ -985,7 +984,7 @@ config COMEDI_ME_DAQ
config COMEDI_NI_6527 config COMEDI_NI_6527
tristate "NI 6527 support" tristate "NI 6527 support"
depends on COMEDI_MITE select COMEDI_MITE
---help--- ---help---
Enable support for the National Instruments 6527 PCI card Enable support for the National Instruments 6527 PCI card
...@@ -994,7 +993,7 @@ config COMEDI_NI_6527 ...@@ -994,7 +993,7 @@ config COMEDI_NI_6527
config COMEDI_NI_65XX config COMEDI_NI_65XX
tristate "NI 65xx static dio PCI card support" tristate "NI 65xx static dio PCI card support"
depends on COMEDI_MITE select COMEDI_MITE
---help--- ---help---
Enable support for National Instruments 65xx static dio boards. Enable support for National Instruments 65xx static dio boards.
Supported devices: National Instruments PCI-6509 (ni_65xx), Supported devices: National Instruments PCI-6509 (ni_65xx),
...@@ -1007,7 +1006,7 @@ config COMEDI_NI_65XX ...@@ -1007,7 +1006,7 @@ config COMEDI_NI_65XX
config COMEDI_NI_660X config COMEDI_NI_660X
tristate "NI 660x counter/timer PCI card support" tristate "NI 660x counter/timer PCI card support"
depends on COMEDI_NI_TIOCMD && COMEDI_NI_COMMON select COMEDI_NI_TIOCMD
---help--- ---help---
Enable support for National Instruments PCI-6601 (ni_660x), PCI-6602, Enable support for National Instruments PCI-6601 (ni_660x), PCI-6602,
PXI-6602 and PXI-6608. PXI-6602 and PXI-6608.
...@@ -1017,7 +1016,7 @@ config COMEDI_NI_660X ...@@ -1017,7 +1016,7 @@ config COMEDI_NI_660X
config COMEDI_NI_670X config COMEDI_NI_670X
tristate "NI 670x PCI card support" tristate "NI 670x PCI card support"
depends on COMEDI_MITE select COMEDI_MITE
---help--- ---help---
Enable support for National Instruments PCI-6703 and PCI-6704 Enable support for National Instruments PCI-6703 and PCI-6704
...@@ -1026,7 +1025,7 @@ config COMEDI_NI_670X ...@@ -1026,7 +1025,7 @@ config COMEDI_NI_670X
config COMEDI_NI_LABPC config COMEDI_NI_LABPC
tristate "NI Lab-PC and compatibles ISA and PCI support" tristate "NI Lab-PC and compatibles ISA and PCI support"
depends on COMEDI_MITE select COMEDI_MITE
select COMEDI_8255 select COMEDI_8255
select COMEDI_FC select COMEDI_FC
depends on VIRT_TO_BUS depends on VIRT_TO_BUS
...@@ -1041,7 +1040,7 @@ config COMEDI_NI_LABPC ...@@ -1041,7 +1040,7 @@ config COMEDI_NI_LABPC
config COMEDI_NI_PCIDIO config COMEDI_NI_PCIDIO
tristate "NI PCI-DIO32HS, PCI-DIO96, PCI-6533, PCI-6503 support" tristate "NI PCI-DIO32HS, PCI-DIO96, PCI-6533, PCI-6503 support"
depends on COMEDI_MITE select COMEDI_MITE
select COMEDI_8255 select COMEDI_8255
---help--- ---help---
Enable support for National Instruments PCI-DIO-32HS, PXI-6533, Enable support for National Instruments PCI-DIO-32HS, PXI-6533,
...@@ -1055,7 +1054,7 @@ config COMEDI_NI_PCIDIO ...@@ -1055,7 +1054,7 @@ config COMEDI_NI_PCIDIO
config COMEDI_NI_PCIMIO config COMEDI_NI_PCIMIO
tristate "NI PCI-MIO-E series and M series support" tristate "NI PCI-MIO-E series and M series support"
depends on COMEDI_NI_TIOCMD && COMEDI_NI_COMMON select COMEDI_NI_TIOCMD
select COMEDI_8255 select COMEDI_8255
select COMEDI_FC select COMEDI_FC
---help--- ---help---
...@@ -1141,7 +1140,6 @@ config COMEDI_DAS08_CS ...@@ -1141,7 +1140,6 @@ config COMEDI_DAS08_CS
config COMEDI_NI_DAQ_700_CS config COMEDI_NI_DAQ_700_CS
tristate "NI DAQCard-700 PCMCIA support" tristate "NI DAQCard-700 PCMCIA support"
depends on COMEDI_NI_COMMON
---help--- ---help---
Enable support for the National Instruments PCMCIA DAQCard-700 DIO Enable support for the National Instruments PCMCIA DAQCard-700 DIO
...@@ -1150,7 +1148,6 @@ config COMEDI_NI_DAQ_700_CS ...@@ -1150,7 +1148,6 @@ config COMEDI_NI_DAQ_700_CS
config COMEDI_NI_DAQ_DIO24_CS config COMEDI_NI_DAQ_DIO24_CS
tristate "NI DAQ-Card DIO-24 PCMCIA support" tristate "NI DAQ-Card DIO-24 PCMCIA support"
depends on COMEDI_NI_COMMON
select COMEDI_8255 select COMEDI_8255
---help--- ---help---
Enable support for the National Instruments PCMCIA DAQ-Card DIO-24 Enable support for the National Instruments PCMCIA DAQ-Card DIO-24
...@@ -1169,7 +1166,7 @@ config COMEDI_NI_LABPC_CS ...@@ -1169,7 +1166,7 @@ config COMEDI_NI_LABPC_CS
config COMEDI_NI_MIO_CS config COMEDI_NI_MIO_CS
tristate "NI DAQCard E series PCMCIA support" tristate "NI DAQCard E series PCMCIA support"
depends on COMEDI_NI_TIO && COMEDI_NI_COMMON select COMEDI_NI_TIO
select COMEDI_8255 select COMEDI_8255
select COMEDI_FC select COMEDI_FC
---help--- ---help---
...@@ -1248,51 +1245,17 @@ config COMEDI_VMK80XX ...@@ -1248,51 +1245,17 @@ config COMEDI_VMK80XX
endif # COMEDI_USB_DRIVERS endif # COMEDI_USB_DRIVERS
menuconfig COMEDI_NI_COMMON
tristate "Comedi National Instruments card support"
---help---
Enable comedi support for National Instruments cards.
Modules in this section are used by many comedi NI drivers.
Note that the answer to this question won't directly affect the
kernel: saying N will just cause the configurator to skip all
the questions about National Instruments cards.
if COMEDI_NI_COMMON
config COMEDI_MITE config COMEDI_MITE
tristate "NI Mite PCI interface chip support" tristate
depends on PCI depends on PCI
---help---
Enable support for National Instruments Mite PCI interface chip
To compile this driver as a module, choose M here: the module will be
called mite.
config COMEDI_NI_TIO config COMEDI_NI_TIO
tristate "NI general purpose counter support" tristate
---help---
Enable support for National Instruments general purpose counters.
This module is not used directly by end-users. Rather, it
is used by other drivers (for example ni_660x and ni_pcimio)
to provide support for NI's general purpose counters.
To compile this driver as a module, choose M here: the module will
be called ni_tio.
config COMEDI_NI_TIOCMD config COMEDI_NI_TIOCMD
tristate "NI streaming acquisition for general purpose counters" tristate
depends on COMEDI_NI_TIO && COMEDI_MITE select COMEDI_NI_TIO
---help--- select COMEDI_MITE
Enable streaming acquisition command support for National Instruments
general purpose counters. This module is not used directly by
end-users. It is used by some NI PCI card drivers (ni_660x and
ni_pcimio).
To compile this driver as a module, choose M here: the module will
be called ni_tiocmd.
endif # COMEDI_NI_COMMON
config COMEDI_8255 config COMEDI_8255
tristate "Generic 8255 support" tristate "Generic 8255 support"
......
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