]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
sh_mobile_lcdc: use FB_SYS helpers instead of FB_CFB
authorMagnus Damm <damm@igel.co.jp>
Wed, 17 Dec 2008 08:29:49 +0000 (17:29 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 22 Dec 2008 09:44:48 +0000 (18:44 +0900)
Since the sh_mobile_lcdc hardware has the framebuffer(s) in system RAM,
use FB_SYS instead of FB_CFB. Also hook in read and write helpers.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/video/Kconfig
drivers/video/sh_mobile_lcdcfb.c

index 593bbc731016a1e69019dcbdc8f0931c5424d1a2..dd483bfe395123e21fcd47e682931f5ad69a08cc 100644 (file)
@@ -1889,10 +1889,10 @@ config FB_W100
 config FB_SH_MOBILE_LCDC
        tristate "SuperH Mobile LCDC framebuffer support"
        depends on FB && SUPERH
-       select FB_CFB_FILLRECT
-       select FB_CFB_COPYAREA
-       select FB_CFB_IMAGEBLIT
-       default m
+       select FB_SYS_FILLRECT
+       select FB_SYS_COPYAREA
+       select FB_SYS_IMAGEBLIT
+       select FB_SYS_FOPS
        ---help---
          Frame buffer driver for the on-chip SH-Mobile LCD controller.
 
index c81ee00c54d7956acd7c97848f7dddd0c2f3512e..e339d829183cf911926cd45d41e90f5c356f0c0a 100644 (file)
@@ -499,9 +499,11 @@ static struct fb_fix_screeninfo sh_mobile_lcdc_fix  = {
 
 static struct fb_ops sh_mobile_lcdc_ops = {
        .fb_setcolreg   = sh_mobile_lcdc_setcolreg,
-       .fb_fillrect    = cfb_fillrect,
-       .fb_copyarea    = cfb_copyarea,
-       .fb_imageblit   = cfb_imageblit,
+       .fb_read        = fb_sys_read,
+       .fb_write       = fb_sys_write,
+       .fb_fillrect    = sys_fillrect,
+       .fb_copyarea    = sys_copyarea,
+       .fb_imageblit   = sys_imageblit,
 };
 
 static int sh_mobile_lcdc_set_bpp(struct fb_var_screeninfo *var, int bpp)