dma-direct: rename dma_noop to dma_direct

The trivial direct mapping implementation already does a virtual to
physical translation which isn't strictly a noop, and will soon learn
to do non-direct but linear physical to dma translations through the
device offset and a few small tricks.  Rename it to a better fitting
name.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Vladimir Murzin <vladimir.murzin@arm.com>
This commit is contained in:
Christoph Hellwig
2018-01-09 16:30:23 +01:00
parent c5cd037d1c
commit 002e67454f
12 changed files with 29 additions and 34 deletions

View File

@@ -136,7 +136,7 @@ struct dma_map_ops {
int is_phys;
};
extern const struct dma_map_ops dma_noop_ops;
extern const struct dma_map_ops dma_direct_ops;
extern const struct dma_map_ops dma_virt_ops;
#define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))