Skip to contentSkip to conversation

dmaengine: dmatest: wrap src & dst data into a struct

PATCH New Vinod Koul 1 participant 1 message Feb 25, 2019 dmaengine

lore
Share & tools
lore

Vinod Koul

author maintainer Applied
#0 lore raw

PATCH v2 1/3 dmaengine: dmatest: wrap src & dst data into a struct

Quoted 11 lines · Alexandru Ardelean

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

Quoted 3 lines

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.

Applied all 3, thanks