summaryrefslogtreecommitdiff
path: root/drivers/staging/comedi/kcomedilib
diff options
context:
space:
mode:
authorH Hartley Sweeten <hsweeten@visionengravers.com>2015-01-14 10:05:16 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-01-17 14:32:56 -0800
commita7f0ce8e5d84f2d14ca77d3c539af16cfef1981e (patch)
tree0d51cafdcba504401db84e35c2762455c7364867 /drivers/staging/comedi/kcomedilib
parent92afc2b229038d7b962ae69de5b07bc6c1cf51bf (diff)
staging: comedi: pcl812: use common function to setup dma
The pcl812_ai_setup_dma() and pcl812_ai_setup_next_dma() functions are similar other than the buffer switch and the inclusion of the "unread_samples" in pcl818_ai_setup_next_dma() when calculating the dma size. Merge these two functions by initializing the 'dma->cur_dma' in the callers and passing '0' for the "unread_samples" when first starting the 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>
Diffstat (limited to 'drivers/staging/comedi/kcomedilib')
0 files changed, 0 insertions, 0 deletions