]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ENGR00293231 IPUv3 reg: Remove some unused macros
authorLiu Ying <Ying.Liu@freescale.com>
Tue, 24 Dec 2013 08:18:56 +0000 (16:18 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 20 Aug 2014 08:06:50 +0000 (10:06 +0200)
This patch removes two unused macros IPU_INT_CTRL_IRQ(irq)
and IPU_INT_STAT_IRQ(irq) to save two lines of code. The
existing another two macros IPUIRQ_2_STATREG(irq) and
IPUIRQ_2_CTRLREG(irq) are the surrogates for them.

Reviewed-by: Robby Cai <R63905@freescale.com>
Cc: Oliver Brown <oliver.brown@freescale.com>
Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
drivers/mxc/ipu3/ipu_regs.h

index 94c587ecb0bfc4b42de0a62590c966c6ffd0eea5..80585bfae4a12c8d58921bff43cd67cd3d17ffbb 100644 (file)
@@ -146,8 +146,6 @@ extern int g_ipu_hw_rev;
                                   (0x0160/4 + (ch / 32)); })
 
 #define IPU_INT_CTRL(n)                (0x003C/4 + ((n) - 1))
-#define IPU_INT_CTRL_IRQ(irq)  IPU_INT_CTRL(((irq) / 32))
-#define IPU_INT_STAT_IRQ(irq)  IPU_INT_STAT(((irq) / 32))
 #define IPU_INT_STAT(n)                ({g_ipu_hw_rev >= 2 ? \
                                  (0x0200/4 + ((n) - 1)) : \
                                  (0x00E8/4 + ((n) - 1)); })