]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: ni_labpc: migrate DMA transfer set-up
authorIan Abbott <abbotti@mev.co.uk>
Fri, 28 Jun 2013 16:09:24 +0000 (17:09 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Jul 2013 21:27:52 +0000 (14:27 -0700)
commit583ec23d3a9cbbb67347dea4bf79e0e27ae092b8
treed61f90ffabe5f09cbff3843f0d1ec9e59bda021c
parent8dd30f7c775e07d7012c99621fd0042f238973b5
staging: comedi: ni_labpc: migrate DMA transfer set-up

Migrate the code for setting up an ISA DMA transfer into a new function
`labpc_setup_dma()` in the "ni_labpc_isadma" module.  Provide a dummy
inline function in "ni_labpc_isadma.h" if the "ni_labpc_isadma" module
is not being built.

The static function `labpc_suggest_transfer_size()` also needs to move
across to the new module.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/ni_labpc.c
drivers/staging/comedi/drivers/ni_labpc_isadma.c
drivers/staging/comedi/drivers/ni_labpc_isadma.h