summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Abbott <abbotti@mev.co.uk>2012-06-25 19:49:35 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-06-26 15:10:56 -0700
commitea8d385436d956984ab5875c778a13a91033e0d3 (patch)
tree2e8a4efca53940365f0c7ddeab0f934cf787b815
parent4b29a3058c080fe6f76ae90e0e792e21000deb16 (diff)
downloadlinux-3.10-ea8d385436d956984ab5875c778a13a91033e0d3.tar.gz
linux-3.10-ea8d385436d956984ab5875c778a13a91033e0d3.tar.bz2
linux-3.10-ea8d385436d956984ab5875c778a13a91033e0d3.zip
staging: comedi: split CONFIG_COMEDI_NI_TIO option
Selecting the CONFIG_COMEDI_NI_TIO config option causes the 'ni_tio' and 'ni_tiocmd' modules to be built. CONFIG_COMEDI_NI_TIO depends on CONFIG_COMEDI_MITE which in turn depends on CONFIG_PCI. However, not all the drivers that need the 'ni_tio' module also need the 'ni_tiocmd' module. Specifically, the ISA and PCMCIA drivers do not need the 'ni_tiocmd' module. Add a new config option CONFIG_COMEDI_NI_TIOCMD to control building of the 'ni_tiocmd' module. It depends on CONFIG_COMEDI_NI_TIO and CONFIG_COMEDI_MITE. The existing CONFIG_COMEDI_NI_TIO option no longer needs to depend on CONFIG_COMEDI_MITE. Make CONFIG_COMEDI_NI_660X ('ni_660x' module) and CONFIG_COMEDI_NI_PCIMIO ('ni_pcimio' module) depend on CONFIG_COMEDI_NI_TIOCMD instead of CONFIG_COMEDI_NI_TIO. Signed-off-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/comedi/Kconfig21
-rw-r--r--drivers/staging/comedi/drivers/Makefile2
2 files changed, 17 insertions, 6 deletions
diff --git a/drivers/staging/comedi/Kconfig b/drivers/staging/comedi/Kconfig
index 04155202991..2ffbc35b6f0 100644
--- a/drivers/staging/comedi/Kconfig
+++ b/drivers/staging/comedi/Kconfig
@@ -1007,7 +1007,7 @@ config COMEDI_NI_65XX
config COMEDI_NI_660X
tristate "NI 660x counter/timer PCI card support"
- depends on COMEDI_NI_TIO && COMEDI_NI_COMMON
+ depends on COMEDI_NI_TIOCMD && COMEDI_NI_COMMON
---help---
Enable support for National Instruments PCI-6601 (ni_660x), PCI-6602,
PXI-6602 and PXI-6608.
@@ -1040,7 +1040,7 @@ config COMEDI_NI_PCIDIO
config COMEDI_NI_PCIMIO
tristate "NI PCI-MIO-E series and M series support"
- depends on COMEDI_NI_TIO && COMEDI_NI_COMMON
+ depends on COMEDI_NI_TIOCMD && COMEDI_NI_COMMON
select COMEDI_8255
select COMEDI_FC
---help---
@@ -1256,15 +1256,26 @@ config COMEDI_MITE
config COMEDI_NI_TIO
tristate "NI general purpose counter support"
- depends on COMEDI_MITE
---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 modules, choose M here: two modules will
- be build: ni_tio and ni_tiocmd.
+ To compile this driver as a module, choose M here: the module will
+ be called ni_tio.
+
+config COMEDI_NI_TIOCMD
+ tristate "NI streaming acquisition for general purpose counters"
+ depends on COMEDI_NI_TIO && COMEDI_MITE
+ ---help---
+ 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.
config COMEDI_NI_LABPC
tristate "NI Lab-PC and compatibles ISA and PCI support"
diff --git a/drivers/staging/comedi/drivers/Makefile b/drivers/staging/comedi/drivers/Makefile
index 513469d943b..57b19e44d86 100644
--- a/drivers/staging/comedi/drivers/Makefile
+++ b/drivers/staging/comedi/drivers/Makefile
@@ -131,7 +131,7 @@ obj-$(CONFIG_COMEDI_VMK80XX) += vmk80xx.o
# Comedi NI drivers
obj-$(CONFIG_COMEDI_MITE) += mite.o
obj-$(CONFIG_COMEDI_NI_TIO) += ni_tio.o
-obj-$(CONFIG_COMEDI_NI_TIO) += ni_tiocmd.o
+obj-$(CONFIG_COMEDI_NI_TIOCMD) += ni_tiocmd.o
obj-$(CONFIG_COMEDI_NI_LABPC) += ni_labpc.o
obj-$(CONFIG_COMEDI_8255) += 8255.o