[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240411153126.16201-423-axboe@kernel.dk>
Date: Thu, 11 Apr 2024 09:19:22 -0600
From: Jens Axboe <axboe@...nel.dk>
To: linux-kernel@...r.kernel.org
Cc: Jens Axboe <axboe@...nel.dk>
Subject: [PATCH 422/437] media: ngene: convert to read/write iterators
Signed-off-by: Jens Axboe <axboe@...nel.dk>
---
drivers/media/pci/ngene/ngene-dvb.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/media/pci/ngene/ngene-dvb.c b/drivers/media/pci/ngene/ngene-dvb.c
index fda24ba3dc3c..dacf56140347 100644
--- a/drivers/media/pci/ngene/ngene-dvb.c
+++ b/drivers/media/pci/ngene/ngene-dvb.c
@@ -49,6 +49,7 @@ static ssize_t ts_write(struct file *file, const char __user *buf,
return count;
}
+FOPS_WRITE_ITER_HELPER(ts_write);
static ssize_t ts_read(struct file *file, char __user *buf,
size_t count, loff_t *ppos)
@@ -73,6 +74,7 @@ static ssize_t ts_read(struct file *file, char __user *buf,
}
return count;
}
+FOPS_READ_ITER_HELPER(ts_read);
static __poll_t ts_poll(struct file *file, poll_table *wait)
{
@@ -96,8 +98,8 @@ static __poll_t ts_poll(struct file *file, poll_table *wait)
static const struct file_operations ci_fops = {
.owner = THIS_MODULE,
- .read = ts_read,
- .write = ts_write,
+ .read_iter = ts_read_iter,
+ .write_iter = ts_write_iter,
.open = dvb_generic_open,
.release = dvb_generic_release,
.poll = ts_poll,
--
2.43.0
Powered by blists - more mailing lists