summaryrefslogtreecommitdiff
path: root/include/linux/dma-direction.h
diff options
context:
space:
mode:
authorShunyong Yang <shunyong.yang@hxt-semitech.com>2018-07-18 04:40:35 +0300
committerBjorn Helgaas <bhelgaas@google.com>2018-08-01 02:04:55 +0300
commit546c596cf5491fda1516536e049c6a36836eb884 (patch)
tree3f0d685c526147e67a17ffda1e8543ce7355f819 /include/linux/dma-direction.h
parentf7368a550275ee56da70fd4d603d5a3eb4b614e9 (diff)
downloadlinux-546c596cf5491fda1516536e049c6a36836eb884.tar.xz
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/dma-direction.h')
-rw-r--r--include/linux/dma-direction.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/linux/dma-direction.h b/include/linux/dma-direction.h
index 3649a031893a..9c96e30e6a0b 100644
--- a/include/linux/dma-direction.h
+++ b/include/linux/dma-direction.h
@@ -1,14 +1,12 @@
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _LINUX_DMA_DIRECTION_H
#define _LINUX_DMA_DIRECTION_H
-/*
- * These definitions mirror those in pci.h, so they can be used
- * interchangeably with their PCI_ counterparts.
- */
+
enum dma_data_direction {
DMA_BIDIRECTIONAL = 0,
DMA_TO_DEVICE = 1,
DMA_FROM_DEVICE = 2,
DMA_NONE = 3,
};
+
#endif