[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240411153126.16201-421-axboe@kernel.dk>
Date: Thu, 11 Apr 2024 09:19:20 -0600
From: Jens Axboe <axboe@...nel.dk>
To: linux-kernel@...r.kernel.org
Cc: Jens Axboe <axboe@...nel.dk>
Subject: [PATCH 420/437] media: bt8xx: convert to read/write iterators
Signed-off-by: Jens Axboe <axboe@...nel.dk>
---
drivers/media/pci/bt8xx/dst_ca.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/media/pci/bt8xx/dst_ca.c b/drivers/media/pci/bt8xx/dst_ca.c
index a9cc6e7a57f9..3e0cbd71cd0f 100644
--- a/drivers/media/pci/bt8xx/dst_ca.c
+++ b/drivers/media/pci/bt8xx/dst_ca.c
@@ -622,14 +622,14 @@ static int dst_ca_release(struct inode *inode, struct file *file)
return 0;
}
-static ssize_t dst_ca_read(struct file *file, char __user *buffer, size_t length, loff_t *offset)
+static ssize_t dst_ca_read(struct kiocb *iocb, struct iov_iter *to)
{
dprintk(verbose, DST_CA_DEBUG, 1, " Device read.");
return 0;
}
-static ssize_t dst_ca_write(struct file *file, const char __user *buffer, size_t length, loff_t *offset)
+static ssize_t dst_ca_write(struct kiocb *iocb, struct iov_iter *from)
{
dprintk(verbose, DST_CA_DEBUG, 1, " Device write.");
@@ -641,8 +641,8 @@ static const struct file_operations dst_ca_fops = {
.unlocked_ioctl = dst_ca_ioctl,
.open = dst_ca_open,
.release = dst_ca_release,
- .read = dst_ca_read,
- .write = dst_ca_write,
+ .read_iter = dst_ca_read,
+ .write_iter = dst_ca_write,
.llseek = noop_llseek,
};
--
2.43.0
Powered by blists - more mailing lists