Message ID | 1293131490-2747-1-git-send-email-fabio.estevam@freescale.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
diff --git a/drivers/video/imxfb.c b/drivers/video/imxfb.c index 5c363d0..4cddd3b 100644 --- a/drivers/video/imxfb.c +++ b/drivers/video/imxfb.c @@ -54,10 +54,11 @@ #define SIZE_XMAX(x) ((((x) >> 4) & 0x3f) << 20) #ifdef CONFIG_ARCH_MX1 -#define SIZE_YMAX(y) ((y) & 0x1ff) +#define YMAX_MASK 0x1ff #else -#define SIZE_YMAX(y) ((y) & 0x3ff) +#define YMAX_MASK 0x3ff #endif +#define SIZE_YMAX(y) ((y) & YMAX_MASK) #define LCDC_VPW 0x08 #define VPW_VPW(x) ((x) & 0x3ff)