[PATCH 342/437] s390: fs3270: convert to read/write iterators
From: Jens Axboe
Date: Thu Apr 11 2024 - 12:58:51 EST
Signed-off-by: Jens Axboe <axboe@xxxxxxxxx>
---
drivers/s390/char/fs3270.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/s390/char/fs3270.c b/drivers/s390/char/fs3270.c
index 4d824f86bbbb..c8c767342167 100644
--- a/drivers/s390/char/fs3270.c
+++ b/drivers/s390/char/fs3270.c
@@ -276,6 +276,7 @@ static ssize_t fs3270_read(struct file *filp, char __user *data,
idal_buffer_free(ib);
return rc;
}
+FOPS_READ_ITER_HELPER(fs3270_read);
/*
* Process writes to fullscreen 3270.
@@ -316,6 +317,7 @@ static ssize_t fs3270_write(struct file *filp, const char __user *data,
idal_buffer_free(ib);
return rc;
}
+FOPS_WRITE_ITER_HELPER(fs3270_write);
/*
* process ioctl commands for the tube driver
@@ -509,8 +511,8 @@ static int fs3270_close(struct inode *inode, struct file *filp)
static const struct file_operations fs3270_fops = {
.owner = THIS_MODULE, /* owner */
- .read = fs3270_read, /* read */
- .write = fs3270_write, /* write */
+ .read_iter = fs3270_read_iter, /* read */
+ .write_iter = fs3270_write_iter, /* write */
.unlocked_ioctl = fs3270_ioctl, /* ioctl */
.compat_ioctl = fs3270_ioctl, /* ioctl */
.open = fs3270_open, /* open */
--
2.43.0