From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Miao Subject: Re: [RFC 2.6.26-rc3 08/10] am200epd: convert to shared fb and use gpio api Date: Fri, 13 Jun 2008 10:20:58 +0800 Message-ID: <4851D98A.5000508@gmail.com> References: <1213289961-1562-1-git-send-email-jayakumar.lkml@gmail.com> <1213289961-1562-9-git-send-email-jayakumar.lkml@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.91] helo=mail.sourceforge.net) by sc8-sf-list1-new.sourceforge.net with esmtp (Exim 4.43) id 1K6yuY-0004yU-Me for linux-fbdev-devel@lists.sourceforge.net; Thu, 12 Jun 2008 19:21:06 -0700 Received: from ti-out-0910.google.com ([209.85.142.188]) by mail.sourceforge.net with esmtp (Exim 4.44) id 1K6yuW-0000r2-Nb for linux-fbdev-devel@lists.sourceforge.net; Thu, 12 Jun 2008 19:21:06 -0700 Received: by ti-out-0910.google.com with SMTP id y6so1403473tia.18 for ; Thu, 12 Jun 2008 19:21:03 -0700 (PDT) In-Reply-To: <1213289961-1562-9-git-send-email-jayakumar.lkml@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-fbdev-devel-bounces@lists.sourceforge.net Errors-To: linux-fbdev-devel-bounces@lists.sourceforge.net To: Jaya Kumar Cc: ymiao3@marvell.com, linux-fbdev-devel@lists.sourceforge.net, linux-arm-kernel@lists.arm.linux.org.uk Jaya Kumar wrote: > This patch converts am200epd to use pxafb's fb and to stop performing > direct access to LCDC registers. It now uses the generic GPIO api. > Mmm..., this patch makes the code much cleaner now, see my comments below. > Signed-off-by: Jaya Kumar > --- > arch/arm/mach-pxa/am200epd.c | 342 ++++++++++++++++++++++++------------------ > arch/arm/mach-pxa/devices.c | 1 + > 2 files changed, 198 insertions(+), 145 deletions(-) > > diff --git a/arch/arm/mach-pxa/am200epd.c b/arch/arm/mach-pxa/am200epd.c > index 51e26c1..67bed6c 100644 > --- a/arch/arm/mach-pxa/am200epd.c > +++ b/arch/arm/mach-pxa/am200epd.c > @@ -1,5 +1,5 @@ > /* > - * linux/drivers/video/am200epd.c -- Platform device for AM200 EPD kit > + * am200epd.c -- Platform device for AM200 EPD kit > * > * Copyright (C) 2008, Jaya Kumar > * > @@ -18,6 +18,8 @@ > * > */ > > +#define DEBUG 1 > + > #include > #include > #include > @@ -27,13 +29,72 @@ > #include > #include > #include > -#include > -#include > #include > +#include > + > +#include > > #include