[PATCH 014/437] char/applicom: convert to read/write iterators

Jens Axboe
2024-04-11T15:31:54Z

drivers/char/applicom.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/drivers/char/applicom.c b/drivers/char/applicom.c
index 69314532f38c..9a1e5f7111b1 100644
--- a/drivers/char/applicom.c
+++ b/drivers/char/applicom.c
@@ -109,11 +109,14 @@ static ssize_t ac_write (struct file *, const char __user *, size_t, loff_t *);
static long ac_ioctl(struct file *, unsigned int, unsigned long);
static irqreturn_t ac_interrupt(int, void *);

+FOPS_READ_ITER_HELPER(ac_read);
+FOPS_WRITE_ITER_HELPER(ac_write);
+
static const struct file_operations ac_fops = {
.owner = THIS_MODULE,
.llseek = no_llseek,
- .read = ac_read,
- .write = ac_write,
+ .read_iter = ac_read_iter,
+ .write_iter = ac_write_iter,
.unlocked_ioctl = ac_ioctl,
};

--
2.43.0