From patchwork Fri Sep 2 14:40:49 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manuel Lauss X-Patchwork-Id: 1122432 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p82EfC4d005374 for ; Fri, 2 Sep 2011 14:41:17 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752556Ab1IBOlR (ORCPT ); Fri, 2 Sep 2011 10:41:17 -0400 Received: from mail-ew0-f46.google.com ([209.85.215.46]:61618 "EHLO mail-ew0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752515Ab1IBOlR (ORCPT ); Fri, 2 Sep 2011 10:41:17 -0400 Received: by ewy4 with SMTP id 4so1517872ewy.19 for ; Fri, 02 Sep 2011 07:41:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=2KoRj34HL8/IiOL8hC1fggL4SUIbY/dNUm+Iubooks8=; b=t99zHi36UdXy1tUV3DBawzjEPQyNV0uC7NJwv0/HWo+qhq14uyGHj5v2E5kVxPHjLk MJb1fj5DO+QR8ntQ4EiRLuJC1kSjoi9q72/FJxfBb9Lw60tgP/hcvlmITIa6fxYmCQI4 cTtM6itybx/P5pCrvAQWoDctnOB9do5hv0DMU= Received: by 10.223.46.201 with SMTP id k9mr1334faf.1.1314974475703; Fri, 02 Sep 2011 07:41:15 -0700 (PDT) Received: from localhost.localdomain (188-22-147-179.adsl.highway.telekom.at [188.22.147.179]) by mx.google.com with ESMTPS id e4sm931401fag.25.2011.09.02.07.41.14 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 02 Sep 2011 07:41:15 -0700 (PDT) From: Manuel Lauss To: linux-fbdev@vger.kernel.org, Florian Tobias Schandinat Cc: Manuel Lauss Subject: [PATCH 4/6] au1200fb: switch to FB_SYS helpers Date: Fri, 2 Sep 2011 16:40:49 +0200 Message-Id: <1314974451-8535-5-git-send-email-manuel.lauss@googlemail.com> X-Mailer: git-send-email 1.7.6 In-Reply-To: <1314974451-8535-1-git-send-email-manuel.lauss@googlemail.com> References: <1314974451-8535-1-git-send-email-manuel.lauss@googlemail.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.6 (demeter1.kernel.org [140.211.167.41]); Fri, 02 Sep 2011 14:41:18 +0000 (UTC) Since all video memory is in system ram, use FB_SYS helpers. Signed-off-by: Manuel Lauss --- drivers/video/Kconfig | 7 ++++--- drivers/video/au1200fb.c | 8 +++++--- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig index 549b960..5e19de9 100644 --- a/drivers/video/Kconfig +++ b/drivers/video/Kconfig @@ -1756,9 +1756,10 @@ config FB_AU1100 config FB_AU1200 bool "Au1200 LCD Driver" depends on (FB = y) && MIPS && SOC_AU1200 - select FB_CFB_FILLRECT - select FB_CFB_COPYAREA - select FB_CFB_IMAGEBLIT + select FB_SYS_FILLRECT + select FB_SYS_COPYAREA + select FB_SYS_IMAGEBLIT + select FB_SYS_FOPS help This is the framebuffer driver for the AMD Au1200 SOC. It can drive various panels and CRTs by passing in kernel cmd line option diff --git a/drivers/video/au1200fb.c b/drivers/video/au1200fb.c index 4b58f7b..b1b16d9 100644 --- a/drivers/video/au1200fb.c +++ b/drivers/video/au1200fb.c @@ -1502,9 +1502,11 @@ static struct fb_ops au1200fb_fb_ops = { .fb_set_par = au1200fb_fb_set_par, .fb_setcolreg = au1200fb_fb_setcolreg, .fb_blank = au1200fb_fb_blank, - .fb_fillrect = cfb_fillrect, - .fb_copyarea = cfb_copyarea, - .fb_imageblit = cfb_imageblit, + .fb_fillrect = sys_fillrect, + .fb_copyarea = sys_copyarea, + .fb_imageblit = sys_imageblit, + .fb_read = fb_sys_read, + .fb_write = fb_sys_write, .fb_sync = NULL, .fb_ioctl = au1200fb_ioctl, .fb_mmap = au1200fb_fb_mmap,