]> Pileus Git - ~andy/linux/commit
staging: comedi: addi_apci_1032: separate from addi_common.c
authorH Hartley Sweeten <hartleys@visionengravers.com>
Mon, 5 Nov 2012 21:34:23 +0000 (14:34 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 6 Nov 2012 08:30:54 +0000 (09:30 +0100)
commit2bb8b1dfe6837ca300a36e7d5c5c9a272aefe5a6
tree39f57e9c3fab87a43ab5d23f24d8a717f2bf5e59
parent11aade26508cb7a06b24dfabe76f0cbafd0acf29
staging: comedi: addi_apci_1032: separate from addi_common.c

The addi_apci_1032 driver is a simple digital input board with 32
optically isolated inputs. Using the addi-data "common" code introduces
a lot of bloat.

Copy the code in addi_common.c to this driver and remove the #include
that caused addi_common.c to be compiled with this driver. This will
allow removing the special handling for allocating and freeing the
dma buffers in the common code.

Rename the attach_pci and detach functions so they have namespace
associated with this driver.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/addi_apci_1032.c