staging: comedi: ni_labpc: split common code to ni_labpc_common
The "ni_labpc" module is a Comedi driver for the National Instruments Lab-PC series of ISA data acquistion boards, and also provides common code for the "ni_labpc_pci" and "ni_labpci_cs" modules (for PCI boards and PCMCIA cards). Split out the common code into a new module "ni_labpc_common", leaving the driver for the ISA boards in the existing "ni_labpc" module. This removes the C preprocessor conditional directives from the resulting ".c" files (although they remain in the included header file "ni_labpc_isadma.h"). Unneccessary `#include` directives have been removed from the resulting ".c" files. Signed-off-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
9439881a38
commit
1b41976933
|
@ -50,6 +50,7 @@ obj-$(CONFIG_COMEDI_NI_AT_A2150) += ni_at_a2150.o
|
|||
obj-$(CONFIG_COMEDI_NI_AT_AO) += ni_at_ao.o
|
||||
obj-$(CONFIG_COMEDI_NI_ATMIO) += ni_atmio.o
|
||||
obj-$(CONFIG_COMEDI_NI_ATMIO16D) += ni_atmio16d.o
|
||||
obj-$(CONFIG_COMEDI_NI_LABPC_ISA) += ni_labpc.o
|
||||
obj-$(CONFIG_COMEDI_PCMAD) += pcmad.o
|
||||
obj-$(CONFIG_COMEDI_PCMDA12) += pcmda12.o
|
||||
obj-$(CONFIG_COMEDI_PCMMIO) += pcmmio.o
|
||||
|
@ -135,7 +136,7 @@ obj-$(CONFIG_COMEDI_VMK80XX) += vmk80xx.o
|
|||
obj-$(CONFIG_COMEDI_MITE) += mite.o
|
||||
obj-$(CONFIG_COMEDI_NI_TIO) += ni_tio.o
|
||||
obj-$(CONFIG_COMEDI_NI_TIOCMD) += ni_tiocmd.o
|
||||
obj-$(CONFIG_COMEDI_NI_LABPC) += ni_labpc.o
|
||||
obj-$(CONFIG_COMEDI_NI_LABPC) += ni_labpc_common.o
|
||||
obj-$(CONFIG_COMEDI_NI_LABPC_ISADMA) += ni_labpc_isadma.o
|
||||
|
||||
obj-$(CONFIG_COMEDI_8255) += 8255.o
|
||||
|
|
File diff suppressed because it is too large
Load diff
1387
drivers/staging/comedi/drivers/ni_labpc_common.c
Normal file
1387
drivers/staging/comedi/drivers/ni_labpc_common.c
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue