From: Haavard Skinnemoen Date: Tue, 8 Jul 2008 18:58:58 +0000 (-0700) Subject: dmaengine: Add dma_client parameter to device_alloc_chan_resources X-Git-Tag: v2.6.27-rc1~852^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=848c536a37b8db4e461f14ca15fe29850151c822;p=pandora-kernel.git dmaengine: Add dma_client parameter to device_alloc_chan_resources A DMA controller capable of doing slave transfers may need to know a few things about the slave when preparing the channel. We don't want to add this information to struct dma_channel since the channel hasn't yet been bound to a client at this point. Instead, pass a reference to the client requesting the channel to the driver's device_alloc_chan_resources hook so that it can pick the necessary information from the dma_client struct by itself. [dan.j.williams@intel.com: fixed up fsldma and mv_xor] Acked-by: Maciej Sosnowski Signed-off-by: Haavard Skinnemoen Signed-off-by: Dan Williams --- Reading git-diff-tree failed