lkml.org 
[lkml]   [2024]   [Apr]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 208/437] drivers/video: convert to ->read_iter and ->write_iter
Date
Signed-off-by: Jens Axboe <axboe@kernel.dk>
---
drivers/video/fbdev/core/fb_chrdev.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/video/fbdev/core/fb_chrdev.c b/drivers/video/fbdev/core/fb_chrdev.c
index 4ebd16b7e3b8..161f781912c3 100644
--- a/drivers/video/fbdev/core/fb_chrdev.c
+++ b/drivers/video/fbdev/core/fb_chrdev.c
@@ -42,6 +42,7 @@ static ssize_t fb_read(struct file *file, char __user *buf, size_t count, loff_t

return info->fbops->fb_read(info, buf, count, ppos);
}
+FOPS_READ_ITER_HELPER(fb_read);

static ssize_t fb_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos)
{
@@ -58,6 +59,7 @@ static ssize_t fb_write(struct file *file, const char __user *buf, size_t count,

return info->fbops->fb_write(info, buf, count, ppos);
}
+FOPS_WRITE_ITER_HELPER(fb_write);

static long do_fb_ioctl(struct fb_info *info, unsigned int cmd,
unsigned long arg)
@@ -405,8 +407,8 @@ static unsigned long get_fb_unmapped_area(struct file *filp,

static const struct file_operations fb_fops = {
.owner = THIS_MODULE,
- .read = fb_read,
- .write = fb_write,
+ .read_iter = fb_read_iter,
+ .write_iter = fb_write_iter,
.unlocked_ioctl = fb_ioctl,
#ifdef CONFIG_COMPAT
.compat_ioctl = fb_compat_ioctl,
--
2.43.0

\
 
 \ /
  Last update: 2024-05-27 16:36    [W:1.130 / U:0.420 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site