[PATCH 422/437] media: ngene: convert to read/write iterators

Jens Axboe
2024-04-11T15:43:27Z

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