diff options
author | Shunyong Yang <shunyong.yang@hxt-semitech.com> | 2018-07-18 04:40:35 +0300 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2018-08-01 02:04:55 +0300 |
commit | 546c596cf5491fda1516536e049c6a36836eb884 (patch) | |
tree | 3f0d685c526147e67a17ffda1e8543ce7355f819 /include/linux/dma-direction.h | |
parent | f7368a550275ee56da70fd4d603d5a3eb4b614e9 (diff) | |
download | linux-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.h | 6 |
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 |