lkml.org 
[lkml]   [2018]   [Jul]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] PCI: Unify pci and normal dma direction definition
> diff --git a/include/linux/dma-direction.h b/include/linux/dma-direction.h
> index 3649a031893a..9d52716e9218 100644
> --- a/include/linux/dma-direction.h
> +++ b/include/linux/dma-direction.h
> @@ -2,7 +2,7 @@
> #ifndef _LINUX_DMA_DIRECTION_H
> #define _LINUX_DMA_DIRECTION_H
> /*
> - * These definitions mirror those in pci.h, so they can be used
> + * These definitions mirror those in pci-dma-compat.h, so they can be used
> * interchangeably with their PCI_ counterparts.
> */

I think we can just drop this comment anymore.

> +#define PCI_DMA_BIDIRECTIONAL (DMA_BIDIRECTIONAL)
> +#define PCI_DMA_TODEVICE (DMA_TO_DEVICE)
> +#define PCI_DMA_FROMDEVICE (DMA_FROM_DEVICE)
> +#define PCI_DMA_NONE (DMA_NONE)

No need for the braces.

\
 
 \ /
  Last update: 2018-07-17 16:04    [W:0.132 / U:0.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site