summaryrefslogtreecommitdiffstats
path: root/drivers/dma/dmatest.c
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2009-01-06 11:38:19 -0700
committerDan Williams <dan.j.williams@intel.com>2009-01-06 11:38:19 -0700
commit7dd602510128d7a64b11ff3b7d4f30ac8e3946ce (patch)
tree6a87f942c72b0b02d24db7144cad435211178fcc /drivers/dma/dmatest.c
parentf27c580c3628d79b17f38976d842a6d7f3616e2e (diff)
downloadop-kernel-dev-7dd602510128d7a64b11ff3b7d4f30ac8e3946ce.zip
op-kernel-dev-7dd602510128d7a64b11ff3b7d4f30ac8e3946ce.tar.gz
dmaengine: kill enum dma_state_client
DMA_NAK is now useless. We can just use a bool instead. Reviewed-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/dma/dmatest.c')
-rw-r--r--drivers/dma/dmatest.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/dma/dmatest.c b/drivers/dma/dmatest.c
index 1d6e48f..c77d47c 100644
--- a/drivers/dma/dmatest.c
+++ b/drivers/dma/dmatest.c
@@ -363,12 +363,12 @@ static int dmatest_add_channel(struct dma_chan *chan)
return 0;
}
-static enum dma_state_client filter(struct dma_chan *chan, void *param)
+static bool filter(struct dma_chan *chan, void *param)
{
if (!dmatest_match_channel(chan) || !dmatest_match_device(chan->device))
- return DMA_DUP;
+ return false;
else
- return DMA_ACK;
+ return true;
}
static int __init dmatest_init(void)
OpenPOWER on IntegriCloud