dma: mmp_pdma: factor out DRCMR register calculation
authorDaniel Mack <zonque@gmail.com>
Sat, 10 Aug 2013 16:52:15 +0000 (18:52 +0200)
committerVinod Koul <vinod.koul@intel.com>
Wed, 14 Aug 2013 08:25:15 +0000 (13:55 +0530)
commit8b298ded902a96cf434738d2a1d83f4a768362ea
treea3c5c92c8e0fbf98ac62a680a82d8e838fbe742f
parentaab81e47f58ea13f8bf7c1046670dd80566b1040
dma: mmp_pdma: factor out DRCMR register calculation

The exact same calculation is done twice, so let's factor it out to a
macro.

Signed-off-by: Daniel Mack <zonque@gmail.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/mmp_pdma.c