diff options
| -rw-r--r-- | include/linux/dmaengine.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/include/linux/dmaengine.h b/include/linux/dmaengine.h index 9b91d341e1fa..adb0b084eb5a 100644 --- a/include/linux/dmaengine.h +++ b/include/linux/dmaengine.h | |||
| @@ -375,16 +375,14 @@ dma_cookie_t dma_async_memcpy_pg_to_pg(struct dma_chan *chan, | |||
| 375 | void dma_async_tx_descriptor_init(struct dma_async_tx_descriptor *tx, | 375 | void dma_async_tx_descriptor_init(struct dma_async_tx_descriptor *tx, |
| 376 | struct dma_chan *chan); | 376 | struct dma_chan *chan); |
| 377 | 377 | ||
| 378 | static inline void | 378 | static inline void async_tx_ack(struct dma_async_tx_descriptor *tx) |
| 379 | async_tx_ack(struct dma_async_tx_descriptor *tx) | ||
| 380 | { | 379 | { |
| 381 | tx->flags |= DMA_CTRL_ACK; | 380 | tx->flags |= DMA_CTRL_ACK; |
| 382 | } | 381 | } |
| 383 | 382 | ||
| 384 | static inline int | 383 | static inline bool async_tx_test_ack(struct dma_async_tx_descriptor *tx) |
| 385 | async_tx_test_ack(struct dma_async_tx_descriptor *tx) | ||
| 386 | { | 384 | { |
| 387 | return tx->flags & DMA_CTRL_ACK; | 385 | return (tx->flags & DMA_CTRL_ACK) == DMA_CTRL_ACK; |
| 388 | } | 386 | } |
| 389 | 387 | ||
| 390 | #define first_dma_cap(mask) __first_dma_cap(&(mask)) | 388 | #define first_dma_cap(mask) __first_dma_cap(&(mask)) |
