]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
dmaengine: edma: Simplify function parameter list for channel operations
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Fri, 16 Oct 2015 07:18:01 +0000 (10:18 +0300)
committerVinod Koul <vinod.koul@intel.com>
Tue, 27 Oct 2015 01:22:44 +0000 (10:22 +0900)
commit34cf30111cfccd18e1ccf2456f72dff6d42bd853
treea7a2300e3253733095bcb65ccee94f6abcfcae94
parentdf6694f80365a72700d4c68fcf61ef068f5b3c25
dmaengine: edma: Simplify function parameter list for channel operations

Instead of passing a pointer to struct edma_cc and the channel number,
pass only the pointer to the edma_chan structure for the given channel.
This struct contains all the information needed by the functions and the
use of this makes it obvious that most of the sanity checks can be removed
from the driver.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/edma.c