diff options
author | Antonino A. Daplas <adaplas@gmail.com> | 2007-05-08 03:39:02 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-08 14:15:30 -0400 |
commit | 3f9b0880e4a96b02bc0131451f2f6231cd90bd94 (patch) | |
tree | a47339c46ab03918b24d501df54884c277326a74 /include/linux/fb.h | |
parent | 87b4884935d387acc4c4418da6a75387bfcc24b9 (diff) |
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 'include/linux/fb.h')
-rw-r--r-- | include/linux/fb.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/fb.h b/include/linux/fb.h index c4e1b3d2ecf9..acb6ddb68fa2 100644 --- a/include/linux/fb.h +++ b/include/linux/fb.h | |||
@@ -591,8 +591,10 @@ struct fb_ops { | |||
591 | /* For framebuffers with strange non linear layouts or that do not | 591 | /* For framebuffers with strange non linear layouts or that do not |
592 | * work with normal memory mapped access | 592 | * work with normal memory mapped access |
593 | */ | 593 | */ |
594 | ssize_t (*fb_read)(struct file *file, char __user *buf, size_t count, loff_t *ppos); | 594 | ssize_t (*fb_read)(struct fb_info *info, char __user *buf, |
595 | ssize_t (*fb_write)(struct file *file, const char __user *buf, size_t count, loff_t *ppos); | 595 | size_t count, loff_t *ppos); |
596 | ssize_t (*fb_write)(struct fb_info *info, const char __user *buf, | ||
597 | size_t count, loff_t *ppos); | ||
596 | 598 | ||
597 | /* checks var and eventually tweaks it to something supported, | 599 | /* checks var and eventually tweaks it to something supported, |
598 | * DO NOT MODIFY PAR */ | 600 | * DO NOT MODIFY PAR */ |