OSDN Git Service

dma: mv_xor: Remove all interrupt magic numbers
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>
Wed, 27 Aug 2014 13:52:52 +0000 (10:52 -0300)
committerVinod Koul <vinod.koul@intel.com>
Tue, 23 Sep 2014 14:47:00 +0000 (20:17 +0530)
commit0e7488ed01235fdd24ce7f0295dbbea0d45311bb
treea1ff4f76484f071eefbfcc9df1f7f795da95bebb
parentdfc97661bdeadb57d35458430612072119b1c72f
dma: mv_xor: Remove all interrupt magic numbers

This commit replaces the current magic numbers in the interrupt handling
with proper macros, which makes more readable and self-documenting.

While here replace the BUG() with a noisy WARN_ON(). There's no reason
to tear down the entire system for an DMA IRQ error.

Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/mv_xor.c
drivers/dma/mv_xor.h