diff options
author | Dan Williams <dan.j.williams@intel.com> | 2009-01-06 11:38:19 -0700 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2009-01-06 11:38:19 -0700 |
commit | 7dd602510128d7a64b11ff3b7d4f30ac8e3946ce (patch) | |
tree | 6a87f942c72b0b02d24db7144cad435211178fcc /include/linux/dmaengine.h | |
parent | f27c580c3628d79b17f38976d842a6d7f3616e2e (diff) | |
download | op-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 'include/linux/dmaengine.h')
-rw-r--r-- | include/linux/dmaengine.h | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/include/linux/dmaengine.h b/include/linux/dmaengine.h index bca2fc7..1419a50 100644 --- a/include/linux/dmaengine.h +++ b/include/linux/dmaengine.h @@ -29,18 +29,6 @@ #include <linux/dma-mapping.h> /** - * enum dma_state_client - state of the channel in the client - * @DMA_ACK: client would like to use, or was using this channel - * @DMA_DUP: client has already seen this channel, or is not using this channel - * @DMA_NAK: client does not want to see any more channels - */ -enum dma_state_client { - DMA_ACK, - DMA_DUP, - DMA_NAK, -}; - -/** * typedef dma_cookie_t - an opaque DMA cookie * * if dma_cookie_t is >0 it's a DMA request cookie, <0 it's an error code @@ -160,9 +148,10 @@ void dma_chan_cleanup(struct kref *kref); * When this optional parameter is specified in a call to dma_request_channel a * suitable channel is passed to this routine for further dispositioning before * being returned. Where 'suitable' indicates a non-busy channel that - * satisfies the given capability mask. + * satisfies the given capability mask. It returns 'true' to indicate that the + * channel is suitable. */ -typedef enum dma_state_client (*dma_filter_fn)(struct dma_chan *chan, void *filter_param); +typedef bool (*dma_filter_fn)(struct dma_chan *chan, void *filter_param); typedef void (*dma_async_tx_callback)(void *dma_async_param); /** |