dma: Have dma_buf_rw() take a void pointer
commitc0ee1527358474c75067993d1bb233ad3a4ee081
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Thu, 16 Dec 2021 10:24:56 +0000 (16 11:24 +0100)
committerPhilippe Mathieu-Daudé <philmd@redhat.com>
Thu, 30 Dec 2021 16:16:32 +0000 (30 17:16 +0100)
treebd10cdca9e547ff9eafff0a0f97667af3267b813
parenta1d4b0a3051b3079c8db607f519bc0fcb30e17ec
dma: Have dma_buf_rw() take a void pointer

DMA operations are run on any kind of buffer, not arrays of
uint8_t. Convert dma_buf_rw() to take a void pointer argument
to save us pointless casts to uint8_t *.

Reviewed-by: Klaus Jensen <k.jensen@samsung.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20211223115554.3155328-8-philmd@redhat.com>
softmmu/dma-helpers.c