staging: comedi: addi_apci_2200: separate from addi_common.c
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Fri, 18 Jan 2013 00:35:46 +0000 (17:35 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Jan 2013 20:49:23 +0000 (12:49 -0800)
commit60ad45f84e3a510522313450f731a21ae0460a28
tree4a7311a9380f231bde4a8dc1591f372b0783b10b
parent0e0a824e0b108a5baae31713bd2b84e40b05f626
staging: comedi: addi_apci_2200: separate from addi_common.c

This driver is for a simple 16 channel digital output (relays), 8 channel
digital input board. 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 bloat.

Rename the auto_attach 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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/addi_apci_2200.c