From patchwork Fri Jun 10 15:23:04 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manuel Lauss X-Patchwork-Id: 869952 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p5AFNGMO029930 for ; Fri, 10 Jun 2011 15:23:24 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757763Ab1FJPXY (ORCPT ); Fri, 10 Jun 2011 11:23:24 -0400 Received: from mail-ww0-f44.google.com ([74.125.82.44]:40338 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757746Ab1FJPXX (ORCPT ); Fri, 10 Jun 2011 11:23:23 -0400 Received: by wwa36 with SMTP id 36so2896172wwa.1 for ; Fri, 10 Jun 2011 08:23:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references; bh=rOvQ5qeffAJh/Vn4cvU5s7aGpOU4SmORW4DTBgQvw/U=; b=vMRp2n7s5O7WkjEA9IE8R9QE/6/mG0oZwAT31v0emyVrSOfn+m/1KolL1iUmrDTuOE 87AP7dbWH2phu45TSRegcSGzq3WtlazSuq90qfbFZMWEBFl2jULBlXGMUziVD5vTvH2a iWDLrh13965q22/vr7a/qzhz4uHeEOHUTPOj0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=nbzP9PjDI+B3gLMKnwwvhLyOYTKVkZdIgV+5JnpfRxX3ej7uC+WdBT/SJo27/N2giD FPgWxaKdopuZ4CtXc6Z/VYW9ZLG89vWrOyH7CDqoQgKIqYKt+Tx/0VZRfgWraLDNwLNs N9bXLUXKC6QUF/zyPlEicYihGFFnZQ+u8CtKw= Received: by 10.216.220.150 with SMTP id o22mr2251437wep.59.1307719402891; Fri, 10 Jun 2011 08:23:22 -0700 (PDT) Received: from localhost.localdomain (178-191-6-93.adsl.highway.telekom.at [178.191.6.93]) by mx.google.com with ESMTPS id d7sm1461054wek.21.2011.06.10.08.23.21 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 10 Jun 2011 08:23:21 -0700 (PDT) From: Manuel Lauss To: linux-fbdev Cc: Manuel Lauss Subject: [PATCH 4/4] au1200fb: switch to FB_SYS helpers Date: Fri, 10 Jun 2011 17:23:04 +0200 Message-Id: <1307719384-23702-5-git-send-email-manuel.lauss@googlemail.com> X-Mailer: git-send-email 1.7.5.3 In-Reply-To: <1307719384-23702-1-git-send-email-manuel.lauss@googlemail.com> References: <1307719384-23702-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 (demeter2.kernel.org [140.211.167.43]); Fri, 10 Jun 2011 15:23:24 +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,