From: Ian Abbott Date: Fri, 28 Jun 2013 16:09:21 +0000 (+0100) Subject: staging: comedi: ni_labpc_isadma: add labpc_have_dma_chan() X-Git-Tag: v3.12-rc1~183^2~727 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6208c2f358056d77544024373e9d73dd899a384;p=pandora-kernel.git staging: comedi: ni_labpc_isadma: add labpc_have_dma_chan() Add a static inline function to "ni_labpc_isadma.h" to test if a DMA channel has been set-up, in which case `devpriv->dma_chan` will be non-zero (where `devpriv` point to the private data for the comedi device). If the "ni_labpc_isadma" module is not being built, don't bother checking `devpriv->dma_chan`; just return `false` as this may help the compiler to optimize out some unreachable code. Signed-off-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed