dma-direct: use dma_direct_map_page to implement dma_direct_map_sg
authorChristoph Hellwig <hch@lst.de>
Mon, 3 Dec 2018 10:14:09 +0000 (11:14 +0100)
committerChristoph Hellwig <hch@lst.de>
Thu, 13 Dec 2018 20:06:16 +0000 (21:06 +0100)
commit17ac524719f3fc88c1a90528f4789e4b4f618512
tree74b15a90304fbfabbd20fff234cf966bf8095add
parent58dfd4ac022037c6a562e92fc6d2a778819b2162
dma-direct: use dma_direct_map_page to implement dma_direct_map_sg

No need to duplicate the mapping logic.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Jesper Dangaard Brouer <brouer@redhat.com>
Tested-by: Jesper Dangaard Brouer <brouer@redhat.com>
Tested-by: Tony Luck <tony.luck@intel.com>
kernel/dma/direct.c