From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from 6.mo1.mail-out.ovh.net ([46.105.43.205] helo=mo1.mail-out.ovh.net) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1U0gyG-00005a-W3 for barebox@lists.infradead.org; Wed, 30 Jan 2013 23:21:50 +0000 Received: from mail415.ha.ovh.net (b9.ovh.net [213.186.33.59]) by mo1.mail-out.ovh.net (Postfix) with SMTP id BB9A2FF9DD0 for ; Thu, 31 Jan 2013 00:36:17 +0100 (CET) From: Jean-Christophe PLAGNIOL-VILLARD Date: Thu, 31 Jan 2013 00:20:12 +0100 Message-Id: <1359588017-20045-1-git-send-email-plagnioj@jcrosoft.com> In-Reply-To: <20130130230825.GX26329@game.jcrosoft.org> References: <20130130230825.GX26329@game.jcrosoft.org> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 1/6] atmel_lcdfb: factorise common code between lcdc and new hlcdc IP To: barebox@lists.infradead.org Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- drivers/video/Makefile | 2 +- drivers/video/atmel_lcdfb.c | 313 +++----------------- drivers/video/atmel_lcdfb.h | 37 +++ .../video/{atmel_lcdfb.c => atmel_lcdfb_core.c} | 259 ++-------------- 4 files changed, 102 insertions(+), 509 deletions(-) create mode 100644 drivers/video/atmel_lcdfb.h copy drivers/video/{atmel_lcdfb.c => atmel_lcdfb_core.c} (53%) diff --git a/drivers/video/Makefile b/drivers/video/Makefile index 1953307..724ef99 100644 --- a/drivers/video/Makefile +++ b/drivers/video/Makefile @@ -1,6 +1,6 @@ obj-$(CONFIG_VIDEO) += fb.o -obj-$(CONFIG_DRIVER_VIDEO_ATMEL) += atmel_lcdfb.o +obj-$(CONFIG_DRIVER_VIDEO_ATMEL) += atmel_lcdfb.o atmel_lcdfb_core.o obj-$(CONFIG_DRIVER_VIDEO_STM) += stm.o obj-$(CONFIG_DRIVER_VIDEO_IMX) += imx.o obj-$(CONFIG_DRIVER_VIDEO_IMX_IPU) += imx-ipu-fb.o diff --git a/drivers/video/atmel_lcdfb.c b/drivers/video/atmel_lcdfb.c index 3a49688..736b25e 100644 --- a/drivers/video/atmel_lcdfb.c +++ b/drivers/video/atmel_lcdfb.c @@ -25,50 +25,19 @@ #include #include #include -#include -#include -#include