aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/dma-direct.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-08-17 17:34:03 +0200
committerChristoph Hellwig <hch@lst.de>2020-09-11 09:14:43 +0200
commit5ceda74093a5c1c3f42a02b894df031f3bbc9af1 (patch)
treed16c05bab2364724baff7d1e28a71e535628250a /arch/arm/include/asm/dma-direct.h
parentdma-direct: remove __dma_to_phys (diff)
downloadlinux-dev-5ceda74093a5c1c3f42a02b894df031f3bbc9af1.tar.xz
linux-dev-5ceda74093a5c1c3f42a02b894df031f3bbc9af1.zip
dma-direct: rename and cleanup __phys_to_dma
The __phys_to_dma vs phys_to_dma distinction isn't exactly obvious. Try to improve the situation by renaming __phys_to_dma to phys_to_dma_unencryped, and not forcing architectures that want to override phys_to_dma to actually provide __phys_to_dma. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Diffstat (limited to 'arch/arm/include/asm/dma-direct.h')
-rw-r--r--arch/arm/include/asm/dma-direct.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/include/asm/dma-direct.h b/arch/arm/include/asm/dma-direct.h
index a8cee87a93e8..bca0de567534 100644
--- a/arch/arm/include/asm/dma-direct.h
+++ b/arch/arm/include/asm/dma-direct.h
@@ -2,7 +2,7 @@
#ifndef ASM_ARM_DMA_DIRECT_H
#define ASM_ARM_DMA_DIRECT_H 1
-static inline dma_addr_t __phys_to_dma(struct device *dev, phys_addr_t paddr)
+static inline dma_addr_t phys_to_dma(struct device *dev, phys_addr_t paddr)
{
unsigned int offset = paddr & ~PAGE_MASK;
return pfn_to_dma(dev, __phys_to_pfn(paddr)) + offset;