OSDN Git Service

dmaengine: dmatest: wrap src & dst data into a struct
authorAlexandru Ardelean <alexandru.ardelean@analog.com>
Tue, 12 Feb 2019 15:11:37 +0000 (17:11 +0200)
committerVinod Koul <vkoul@kernel.org>
Mon, 25 Feb 2019 17:43:50 +0000 (23:13 +0530)
commit361deb7243d275ba8ce6e27db7727fce6fd39f3e
tree93dcc492cdddf040d0f83d73fd4980874452bf1c
parent528314b503f855b268ae7861ea4e206fbbfb8356
dmaengine: dmatest: wrap src & dst data into a struct

This change wraps the data for the source & destination buffers into a
`struct dmatest_data`. The rename patterns are:
 * src_cnt -> src->cnt
 * dst_cnt -> dst->cnt
 * src_off -> src->off
 * dst_off -> dst->off
 * thread->srcs -> src->aligned
 * thread->usrcs -> src->raw
 * thread->dsts -> dst->aligned
 * thread->udsts -> dst->raw

The intent is to make a function that moves duplicate parts of the code
into common alloc & free functions, which will unclutter the
`dmatest_func()` function.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/dmatest.c