cfag12864bfb: Use sys_ instead of cfb_ framebuffer accessors
PATCH 3/9 cfag12864bfb: Use sys_ instead of cfb_ framebuffer accessors
From: Avuton Olrich <[email protected]>
Because the framebuffer memory is allocated system RAM, use the sys_ drawing libraries. It also fixes the following compile error:
LD .tmp_vmlinux1
drivers/built-in.o:(.data+0x8b48): undefined reference to cfb_fillrect' drivers/built-in.o:(.data+0x8b50): undefined reference to cfb_copyarea' drivers/built-in.o:(.data+0x8b58): undefined reference to `cfb_imageblit'
[adaplas]
Use fb_sys_read/write for the same reasons as above.
---
drivers/auxdisplay/Kconfig | 4 ++++ drivers/auxdisplay/cfag12864bfb.c | 8 +++++--- 2 files changed, 9 insertions(+), 3 deletions(-)
drivers/auxdisplay/Kconfig +4 -0
@@ -72,6 +72,10 @@ config CFAG12864B depends on X86 depends on FB depends on KS0108 + select FB_SYS_FILLRECT + select FB_SYS_COPYAREA + select FB_SYS_IMAGEBLIT + select FB_SYS_FOPS default n ---help--- If you have a Crystalfontz 128x64 2-color LCD, cfag12864b Series,
drivers/auxdisplay/cfag12864bfb.c +5 -3
@@ -73,9 +73,11 @@ static int cfag12864bfb_mmap(struct fb_istatic struct fb_ops cfag12864bfb_ops = { .owner =THIS_MODULE , - .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, .fb_mmap = cfag12864bfb_mmap, };
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
Quoted 48 lines · Antonino A. Daplas
From: Avuton Olrich <[email protected]>
Because the framebuffer memory is allocated system RAM, use the
sys_drawing libraries. It also fixes the following compile error:LD .tmp_vmlinux1
drivers/built-in.o:(.data+0x8b48): undefined reference tocfb_fillrect' drivers/built-in.o:(.data+0x8b50): undefined reference tocfb_copyarea' drivers/built-in.o:(.data+0x8b58): undefined reference to `cfb_imageblit'[adaplas]
Use fb_sys_read/write for the same reasons as above.Signed-off-by Avuton Olrich <[email protected]>Signed-off-by Antonino Daplas <[email protected]>---
drivers/auxdisplay/Kconfig | 4 ++++ drivers/auxdisplay/cfag12864bfb.c | 8 +++++--- 2 files changed, 9 insertions(+), 3 deletions(-)drivers/auxdisplay/Kconfig +4
-0@@ -72,6 +72,10 @@ config CFAG12864B depends on X86 depends on FB depends on KS0108 + select FB_SYS_FILLRECT + select FB_SYS_COPYAREA + select FB_SYS_IMAGEBLIT + select FB_SYS_FOPS default n ---help--- If you have a Crystalfontz 128x64 2-color LCD, cfag12864b Series,drivers/auxdisplay/cfag12864bfb.c +0
-1@@ -73,9 +73,11 @@ static int cfag12864bfb_mmap(struct fb_istatic struct fb_ops cfag12864bfb_ops = { .owner =THIS_MODULE , - .fb_fillrect = cfb_fillrect,
drivers/auxdisplay/cfag12864bfb.c static int cfag12864bfb_mmap(struct fb_i · line 83
Quoted 10 lines
drivers/auxdisplay/cfag12864bfb.c +5
-2- .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, .fb_mmap = cfag12864bfb_mmap, };
ACK, I will test it asap.
Thanks for the fix, I'm a bit outdated, as I'm taking exams this weeks.
Signature · 8 lines
Miguel Ojeda http://maxextreme.googlepages.com/index.htm ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/
Quoted 7 lines · Miguel Ojeda
Quoted 2 lines · Antonino A. Daplas
From: Avuton Olrich <[email protected]>
ACK, I will test it asap.
Thanks for the fix, I'm a bit outdated, as I'm taking exams this weeks.
That's okay, the sys_* drawing libraries are very new additions.
Tony
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/