dmaengine: dw: define DW_DMA_MAX_NR_MASTERS
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 13 Jan 2015 17:08:14 +0000 (19:08 +0200)
committerVinod Koul <vinod.koul@intel.com>
Thu, 5 Feb 2015 06:39:44 +0000 (22:39 -0800)
commitd8ded50f8b26a224df48f9f93e49440c6a39b77f
tree7c7620107180b0a2c3ea77770ef8fb9bccfa8341
parentcfd8fef322305bbe9955817464f0d2054ce545c0
dmaengine: dw: define DW_DMA_MAX_NR_MASTERS

Instead of using magic number in the code the patch provides
DW_DMA_MAX_NR_MASTERS constant.

While here, restrict the reading of data width array by amount of the actual
number of AHB masters.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Documentation/devicetree/bindings/dma/snps-dma.txt
arch/arc/boot/dts/abilis_tb10x.dtsi
arch/arm/boot/dts/spear13xx.dtsi
arch/avr32/mach-at32ap/at32ap700x.c
drivers/dma/dw/core.c
drivers/dma/dw/platform.c
drivers/dma/dw/regs.h
include/linux/platform_data/dma-dw.h