Skip to content
Commit 0552daac authored by Marek Szyprowski's avatar Marek Szyprowski
Browse files

drm: prime: use sgtable iterators in drm_prime_sg_to_page_addr_arrays()



Replace the current hand-crafted code for extracting pages and DMA
addresses from the given scatterlist by the much more robust
code based on the generic scatterlist iterators and recently
introduced sg_table-based wrappers. The resulting code is simple and
easy to understand, so the comment describing the old code is no
longer needed.

Signed-off-by: default avatarMarek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: default avatarAndrzej Hajda <a.hajda@samsung.com>
Reviewed-by: default avatarRobin Murphy <robin.murphy@arm.com>
parent d46e7ae2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment