diff options
author | Antonino A. Daplas <adaplas@gmail.com> | 2007-05-08 00:39:02 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-08 11:15:30 -0700 |
commit | 3f9b0880e4a96b02bc0131451f2f6231cd90bd94 (patch) | |
tree | a47339c46ab03918b24d501df54884c277326a74 /drivers/video/hecubafb.c | |
parent | 87b4884935d387acc4c4418da6a75387bfcc24b9 (diff) | |
download | op-kernel-dev-3f9b0880e4a96b02bc0131451f2f6231cd90bd94.zip op-kernel-dev-3f9b0880e4a96b02bc0131451f2f6231cd90bd94.tar.gz |
fbdev: pass struct fb_info to fb_read and fb_write
It is unnecessary to pass struct file to fb_read() and fb_write() in struct
fb_ops. For consistency with the other methods, pass struct fb_info instead.
Signed-off-by: Antonino Daplas <adaplas@gmail.com>
Acked-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video/hecubafb.c')
-rw-r--r-- | drivers/video/hecubafb.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/video/hecubafb.c b/drivers/video/hecubafb.c index 0ade725..3ec0e97 100644 --- a/drivers/video/hecubafb.c +++ b/drivers/video/hecubafb.c @@ -267,12 +267,9 @@ static void hecubafb_imageblit(struct fb_info *info, * this is the slow path from userspace. they can seek and write to * the fb. it's inefficient to do anything less than a full screen draw */ -static ssize_t hecubafb_write(struct file *file, const char __user *buf, +static ssize_t hecubafb_write(struct fb_info *info, const char __user *buf, size_t count, loff_t *ppos) { - struct inode *inode; - int fbidx; - struct fb_info *info; unsigned long p; int err=-EINVAL; struct hecubafb_par *par; @@ -280,13 +277,6 @@ static ssize_t hecubafb_write(struct file *file, const char __user *buf, unsigned int fbmemlength; p = *ppos; - inode = file->f_dentry->d_inode; - fbidx = iminor(inode); - info = registered_fb[fbidx]; - - if (!info || !info->screen_base) - return -ENODEV; - par = info->par; xres = info->var.xres; fbmemlength = (xres * info->var.yres)/8; |