From patchwork Thu Dec 23 19:11:30 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 429871 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oBNJ5f7W026223 for ; Thu, 23 Dec 2010 19:07:58 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751258Ab0LWTHM (ORCPT ); Thu, 23 Dec 2010 14:07:12 -0500 Received: from am1ehsobe003.messaging.microsoft.com ([213.199.154.206]:42769 "EHLO AM1EHSOBE003.bigfish.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751213Ab0LWTHM (ORCPT ); Thu, 23 Dec 2010 14:07:12 -0500 Received: from mail57-am1-R.bigfish.com (10.3.201.243) by AM1EHSOBE003.bigfish.com (10.3.204.23) with Microsoft SMTP Server id 14.1.225.8; Thu, 23 Dec 2010 19:07:10 +0000 Received: from mail57-am1 (localhost.localdomain [127.0.0.1]) by mail57-am1-R.bigfish.com (Postfix) with ESMTP id 3D86019D8114; Thu, 23 Dec 2010 19:07:10 +0000 (UTC) X-SpamScore: 0 X-BigFish: VS0(zzzz1202hzz8275bhz2dh2a8h668h61h) X-Spam-TCS-SCL: 0:0 X-Forefront-Antispam-Report: KIP:(null); UIP:(null); IPVD:NLI; H:az33egw01.freescale.net; RD:az33egw01.freescale.net; EFVD:NLI Received: from mail57-am1 (localhost.localdomain [127.0.0.1]) by mail57-am1 (MessageSwitch) id 1293131223431825_23181; Thu, 23 Dec 2010 19:07:03 +0000 (UTC) Received: from AM1EHSMHS005.bigfish.com (unknown [10.3.201.253]) by mail57-am1.bigfish.com (Postfix) with ESMTP id 11826DC005A; Thu, 23 Dec 2010 19:06:15 +0000 (UTC) Received: from az33egw01.freescale.net (192.88.158.102) by AM1EHSMHS005.bigfish.com (10.3.207.105) with Microsoft SMTP Server (TLS) id 14.1.225.8; Thu, 23 Dec 2010 19:06:12 +0000 Received: from az33smr02.freescale.net (az33smr02.freescale.net [10.64.34.200]) by az33egw01.freescale.net (8.14.3/8.14.3) with ESMTP id oBNJ6AC9007375; Thu, 23 Dec 2010 12:06:10 -0700 (MST) Received: from localhost.localdomain ([10.29.240.182]) by az33smr02.freescale.net (8.13.1/8.13.0) with ESMTP id oBNJ66to019979; Thu, 23 Dec 2010 13:06:07 -0600 (CST) From: Fabio Estevam To: CC: , , Fabio Estevam Subject: [PATCH v2] video: imxfb: Fix the maximum value for yres Date: Thu, 23 Dec 2010 17:11:30 -0200 Message-ID: <1293131490-2747-1-git-send-email-fabio.estevam@freescale.com> X-Mailer: git-send-email 1.6.0.4 MIME-Version: 1.0 X-OriginatorOrg: freescale.com Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Thu, 23 Dec 2010 19:07:59 +0000 (UTC) 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)