From: H Hartley Sweeten Date: Tue, 9 Sep 2014 20:05:54 +0000 (-0700) Subject: staging: comedi: adl_pci9118: absorb DMA and non-DMA helpers X-Git-Tag: fixes-for-v3.18-merge-window~15^2~516 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa795752c2720a672efff0147f5ef715acde945b;p=pandora-kernel.git staging: comedi: adl_pci9118: absorb DMA and non-DMA helpers Currently the pci9118_ai_docmd_dma() or pci9118_ai_docmd_sampl() helper is called by the (*do_cmd) to do the final setup for the command. Most of this invloves setting various bits in 'ai_ctrl' and 'int_ctrl' to setup the acquisition based on the 'ai_do' mode. Most of this is the same for the DMA and non-DMA setup. The differences are easily handled by either checking the cmd trigger sources or if DMA is used. Absorb the helper functions into the (*do_cmd) to clarify the code. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed