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>
This commit is contained in:
committed by
Linus Torvalds
parent
87b4884935
commit
3f9b0880e4
@@ -591,8 +591,10 @@ struct fb_ops {
|
||||
/* For framebuffers with strange non linear layouts or that do not
|
||||
* work with normal memory mapped access
|
||||
*/
|
||||
ssize_t (*fb_read)(struct file *file, char __user *buf, size_t count, loff_t *ppos);
|
||||
ssize_t (*fb_write)(struct file *file, const char __user *buf, size_t count, loff_t *ppos);
|
||||
ssize_t (*fb_read)(struct fb_info *info, char __user *buf,
|
||||
size_t count, loff_t *ppos);
|
||||
ssize_t (*fb_write)(struct fb_info *info, const char __user *buf,
|
||||
size_t count, loff_t *ppos);
|
||||
|
||||
/* checks var and eventually tweaks it to something supported,
|
||||
* DO NOT MODIFY PAR */
|
||||
|
Reference in New Issue
Block a user