From: Lars-Peter Clausen Date: Fri, 22 Mar 2013 13:12:13 +0000 (+0100) Subject: ASoC: mxs: Embed the mxs_dma_data struct in the mxs_pcm_dma_params struct X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~52^2~42^2~17^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7e5e91210fc9d40f93f87e386823e4ba9b32805;p=pandora-kernel.git ASoC: mxs: Embed the mxs_dma_data struct in the mxs_pcm_dma_params struct Currently the mxs_dma_data struct, which gets passed to the dmaengine driver, is allocated in the pcm driver's open callback. The mxs_dma_data struct has exactly one field which is initialized from the the same field in the mxs_pcm_dma_params struct. The mxs_pcm_dma_params struct gets passed to the pcm driver from the dai driver. Instead of taking this indirection embed the mxs_dma_data struct directly in the mxs_pcm_dma_params struct. This allows us to simplify the pcm driver quite a bit, since we don't have to care about memory managing the mxs_dma_data struct anymore. Signed-off-by: Lars-Peter Clausen Tested-by: Shawn Guo Signed-off-by: Mark Brown --- Reading git-diff-tree failed