]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: addi_apci_1564: separate from addi_common.c
authorChase Southwood <chase.southwood@yahoo.com>
Thu, 24 Apr 2014 07:19:01 +0000 (02:19 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 Apr 2014 22:04:30 +0000 (15:04 -0700)
commitb5ba849042d642a7c7295058ca00a624cbd11ff1
treecd3ceedbca132d482eed10b7b7de3a11a970fa01
parentbc23a7cce407c8a05ea227f63e164e076711efa4
staging: comedi: addi_apci_1564: separate from addi_common.c

Using the addi-data "common" code in addi_apci_1564 introduces a lot of
bloat.  By separating this driver off from addi_common.c, a lot of the
common code can be stripped out.  This patch copies the code over from
addi_common.c, and removes the #include of the file.  The auto_attach
function from the common code replaces the one that was previously in this
driver, though renamed to that it stays within the namespace associated
with this driver, and the detach function has been renamed for this reason
as well.

Signed-off-by: Chase Southwood <chase.southwood@yahoo.com>
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/addi_apci_1564.c