]> git.baikalelectronics.ru Git - kernel.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)
commit924f107cc013897d9c83b7a1766b27fd69be4298
treedba51fd383cbb59464975b2acb3b60f532881a97
parentdb561333fa989fc0ac87cc73ddaca361757b484a
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