[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240411153126.16201-18-axboe@kernel.dk>
Date: Thu, 11 Apr 2024 09:12:37 -0600
From: Jens Axboe <axboe@...nel.dk>
To: linux-kernel@...r.kernel.org
Cc: Jens Axboe <axboe@...nel.dk>
Subject: [PATCH 017/437] char/dsp56k: convert to read/write iterators
Signed-off-by: Jens Axboe <axboe@...nel.dk>
---
drivers/char/dsp56k.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/char/dsp56k.c b/drivers/char/dsp56k.c
index bda27e595da1..14f0f284c944 100644
--- a/drivers/char/dsp56k.c
+++ b/drivers/char/dsp56k.c
@@ -242,6 +242,7 @@ static ssize_t dsp56k_read(struct file *file, char __user *buf, size_t count,
return -ENXIO;
}
}
+FOPS_READ_ITER_HELPER(dsp56k_read);
static ssize_t dsp56k_write(struct file *file, const char __user *buf, size_t count,
loff_t *ppos)
@@ -304,6 +305,7 @@ static ssize_t dsp56k_write(struct file *file, const char __user *buf, size_t co
return -ENXIO;
}
}
+FOPS_WRITE_ITER_HELPER(dsp56k_write);
static long dsp56k_ioctl(struct file *file, unsigned int cmd,
unsigned long arg)
@@ -480,8 +482,8 @@ static int dsp56k_release(struct inode *inode, struct file *file)
static const struct file_operations dsp56k_fops = {
.owner = THIS_MODULE,
- .read = dsp56k_read,
- .write = dsp56k_write,
+ .read_iter = dsp56k_read_iter,
+ .write_iter = dsp56k_write_iter,
.unlocked_ioctl = dsp56k_ioctl,
.open = dsp56k_open,
.release = dsp56k_release,
--
2.43.0
Powered by blists - more mailing lists