dmaengine: Convert ID allocation to an IDA
authorMatthew Wilcox <mawilcox@microsoft.com>
Thu, 15 Dec 2016 16:57:51 +0000 (08:57 -0800)
committerVinod Koul <vinod.koul@intel.com>
Mon, 2 Jan 2017 04:16:32 +0000 (09:46 +0530)
commitadc064cd9f6ee7a8b426955e6a28191abc9d0e8e
treea2f5fe47fdecf0c5edbaa8a64c3e3c6cad8bd661
parent0c744ea4f77d72b3dcebb7a8f2684633ec79be88
dmaengine: Convert ID allocation to an IDA

dmaengine currently uses an IDR to allocate DMA IDs, but it only needs
to know whether IDs are in use or not; the ID to pointer functionality
of the IDR is unused.  That means it can use the more space-efficient IDA.

Signed-off-by: Matthew Wilcox <mawilcox@microsoft.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/dmaengine.c