Skip to content

Commit

Permalink
vfb: use fb_sys_read() and fb_sys_write()
Browse files Browse the repository at this point in the history
Since vfb's framebuffer is vmalloc'ed, use the fb_sys_read() and
fb_sys_write().

Signed-off-by: Antonino Daplas <adaplas@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Antonino A. Daplas authored and Linus Torvalds committed May 8, 2007
1 parent 28d4564 commit 52102c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/video/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1743,6 +1743,7 @@ config FB_VIRTUAL
select FB_SYS_FILLRECT
select FB_SYS_COPYAREA
select FB_SYS_IMAGEBLIT
select FB_SYS_FOPS
---help---
This is a `virtual' frame buffer device. It operates on a chunk of
unswappable kernel memory instead of on the memory of a graphics
Expand Down
2 changes: 2 additions & 0 deletions drivers/video/vfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ static int vfb_mmap(struct fb_info *info,
struct vm_area_struct *vma);

static struct fb_ops vfb_ops = {
.fb_read = fb_sys_read,
.fb_write = fb_sys_write,
.fb_check_var = vfb_check_var,
.fb_set_par = vfb_set_par,
.fb_setcolreg = vfb_setcolreg,
Expand Down

0 comments on commit 52102c0

Please sign in to comment.