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 014/437] char/applicom: convert to read/write iterators
Date
Signed-off-by: Jens Axboe <axboe@kernel.dk>
---
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

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