]> git.baikalelectronics.ru Git - kernel.git/commit
DMA: ste_dma40: use a power of 2 check
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Wed, 18 Sep 2013 07:33:08 +0000 (09:33 +0200)
committerVinod Koul <vinod.koul@intel.com>
Mon, 7 Oct 2013 02:11:39 +0000 (07:41 +0530)
commita5b386d0f0bd60425b4bd45bc8526d1091f4feb4
tree1f98979430da6498536d935e52a763bdcd1262fa
parent8275b86911f5a208e60a123c264de5f465358692
DMA: ste_dma40: use a power of 2 check

dst_addr_width and src_addr_width should be a power of 2. Currently the
driver checks, that they both lie between 1 and 8 and that they are equal
to 1 or even. This however leaves an invalid value of 6 uncaught. Use an
explicit power of 2 check instead.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski+renesas@gmail.com>
[typo fix on changelog]
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/ste_dma40.c