summaryrefslogtreecommitdiffstats
path: root/include/linux/dma-direction.h
diff options
context:
space:
mode:
authorShunyong Yang2018-07-18 03:40:35 +0200
committerBjorn Helgaas2018-08-01 01:04:55 +0200
commit546c596cf5491fda1516536e049c6a36836eb884 (patch)
tree3f0d685c526147e67a17ffda1e8543ce7355f819 /include/linux/dma-direction.h
parentPCI: Use IRQF_ONESHOT if pci_request_irq() called with no handler (diff)
downloadkernel-qcow2-linux-546c596cf5491fda1516536e049c6a36836eb884.tar.gz
kernel-qcow2-linux-546c596cf5491fda1516536e049c6a36836eb884.tar.xz
kernel-qcow2-linux-546c596cf5491fda1516536e049c6a36836eb884.zip
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