powerpc: Rename get_dma_direct_offset get_dma_offset
authorBecky Bruce <beckyb@kernel.crashing.org>
Mon, 21 Sep 2009 08:26:34 +0000 (08:26 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 24 Sep 2009 05:31:43 +0000 (15:31 +1000)
commit1cebd7a0f62804ca24f7b7b35e8105000b9e879a
tree57f04a5882d595cab859e2820d998bcde4660074
parentb9eceb2307f8dda124669a9dc213aad8c1569b5a
powerpc: Rename get_dma_direct_offset get_dma_offset

The former is no longer really accurate with the swiotlb case now
a possibility.  I also move it into dma-mapping.h - it no longer
needs to be in dma.c, and there are about to be some more accessors
that should all end up in the same place.  A comment is added to
indicate that this function is not used in configs where there is no
simple dma offset, such as the iommu case.

Signed-off-by: Becky Bruce <beckyb@kernel.crashing.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/dma-mapping.h
arch/powerpc/kernel/dma.c