]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: dma-jz4780: Avoid hardcoding number of channels
authorPaul Cercueil <paul@crapouillou.net>
Wed, 29 Aug 2018 21:32:45 +0000 (23:32 +0200)
committerVinod Koul <vkoul@kernel.org>
Tue, 11 Sep 2018 07:29:26 +0000 (12:59 +0530)
commit9beef87f77ac3387e860ed86c1a5acfdbe0110a8
treec8cb825477e412f3a3c763d1dc40d3298438af15
parent5c72702e0aaa2e844d6dec25d3d744b9c1ddd24a
dmaengine: dma-jz4780: Avoid hardcoding number of channels

As part of the work to support various other Ingenic JZ47xx SoC versions,
which don't feature the same number of DMA channels per core, we now
deduce the number of DMA channels available from the devicetree
compatible string.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Tested-by: Mathieu Malaterre <malat@debian.org>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/dma-jz4780.c