Skip to content
Commit 98ed7d4b authored by Russell King's avatar Russell King Committed by Russell King
Browse files

[ARM] dma-mapping: improve type-safeness of DMA translations



OMAP at least gets the return type(s) for the DMA translation functions
wrong, which can lead to subtle errors.  Avoid this by moving the DMA
translation functions to asm/dma-mapping.h, and converting them to
inline functions.

Fix the OMAP DMA translation macros to use the correct argument and
result types.

Also, remove the unnecessary casts in dmabounce.c.

Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 492c71dd
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment