]> git.karo-electronics.de Git - karo-tx-linux.git/commit
dmaengine: ti-dma-crossbar: dra7: Use bitops instead of idr
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Fri, 30 Oct 2015 08:00:36 +0000 (10:00 +0200)
committerVinod Koul <vinod.koul@intel.com>
Mon, 30 Nov 2015 09:39:16 +0000 (15:09 +0530)
commitec9bfa1e1a796ef7acc2e55917c9b8be5a79e70e
treedba51fd383cbb59464975b2acb3b60f532881a97
parent2adb2743b1c66766aac1c7f70f5101a72b229f93
dmaengine: ti-dma-crossbar: dra7: Use bitops instead of idr

The use of idr was nice, but it was a bit heavy and we did not need the
features it provides. Using simple bitmap to track allocated DMA channels
is adequate here and it will be easier to add support for reserving
channels later on.

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