aboutsummaryrefslogtreecommitdiffstats
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorIan Abbott <abbotti@mev.co.uk>2013-06-28 17:09:21 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-07-23 14:27:51 -0700
commitc6208c2f358056d77544024373e9d73dd899a384 (patch)
tree602caf48d0bf5b5b92d3a5b856714958b3751b7f /lib/debugobjects.c
parentstaging: comedi: ni_labpc: migrate DMA channel init & free (diff)
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 <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions