summaryrefslogtreecommitdiffstats
path: root/include/linux/pci-dma-compat.h
diff options
context:
space:
mode:
authorShunyong Yang <shunyong.yang@hxt-semitech.com>2018-07-17 21:40:35 -0400
committerBjorn Helgaas <bhelgaas@google.com>2018-07-31 19:04:55 -0400
commit546c596cf5491fda1516536e049c6a36836eb884 (patch)
tree3f0d685c526147e67a17ffda1e8543ce7355f819 /include/linux/pci-dma-compat.h
parentf7368a550275ee56da70fd4d603d5a3eb4b614e9 (diff)
PCI: Unify PCI and normal DMA direction definitions
Current DMA direction definitions in pci-dma-compat.h and dma-direction.h are mirrored in value. Unify them to enhance readability and avoid possible inconsistency. Signed-off-by: Shunyong Yang <shunyong.yang@hxt-semitech.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Cc: Joey Zheng <yu.zheng@hxt-semitech.com>
Diffstat (limited to 'include/linux/pci-dma-compat.h')
-rw-r--r--include/linux/pci-dma-compat.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/pci-dma-compat.h b/include/linux/pci-dma-compat.h
index 0dd1a3f7b309..c3f1b44ade29 100644
--- a/include/linux/pci-dma-compat.h
+++ b/include/linux/pci-dma-compat.h
@@ -8,10 +8,10 @@
8#include <linux/dma-mapping.h> 8#include <linux/dma-mapping.h>
9 9
10/* This defines the direction arg to the DMA mapping routines. */ 10/* This defines the direction arg to the DMA mapping routines. */
11#define PCI_DMA_BIDIRECTIONAL 0 11#define PCI_DMA_BIDIRECTIONAL DMA_BIDIRECTIONAL
12#define PCI_DMA_TODEVICE 1 12#define PCI_DMA_TODEVICE DMA_TO_DEVICE
13#define PCI_DMA_FROMDEVICE 2 13#define PCI_DMA_FROMDEVICE DMA_FROM_DEVICE
14#define PCI_DMA_NONE 3 14#define PCI_DMA_NONE DMA_NONE
15 15
16static inline void * 16static inline void *
17pci_alloc_consistent(struct pci_dev *hwdev, size_t size, 17pci_alloc_consistent(struct pci_dev *hwdev, size_t size,