]> git.karo-electronics.de Git - linux-beck.git/commit
staging: comedi: ni_labpc_isadma: tidy up labpc_drain_dma()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 13 Jan 2015 17:16:40 +0000 (10:16 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Jan 2015 22:31:31 +0000 (14:31 -0800)
commit72ba5c1612f5ea7f907290903e8fc24ed94aec13
treed1c8f013ed59a0b734611a83bfa3cb609df63780
parent0f02b081da44370d5c88340501e7a12ef9076a34
staging: comedi: ni_labpc_isadma: tidy up labpc_drain_dma()

Tidy up the code that determines the number of samples to read for the
current DMA transfer and how many samples are needed for the next DMA,

Signed-off-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/ni_labpc_isadma.c