[PATCH 020/437] char/hw_random: convert to read/write iterators
From: Jens Axboe
Date: Thu Apr 11 2024 - 11:40:09 EST
Signed-off-by: Jens Axboe <axboe@xxxxxxxxx>
---
drivers/char/hw_random/core.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/char/hw_random/core.c b/drivers/char/hw_random/core.c
index a3bbdd6e60fc..810c3dd013b0 100644
--- a/drivers/char/hw_random/core.c
+++ b/drivers/char/hw_random/core.c
@@ -290,11 +290,12 @@ static ssize_t rng_dev_read(struct file *filp, char __user *buf,
put_rng(rng);
goto out;
}
+FOPS_READ_ITER_HELPER(rng_dev_read);
static const struct file_operations rng_chrdev_ops = {
.owner = THIS_MODULE,
.open = rng_dev_open,
- .read = rng_dev_read,
+ .read_iter = rng_dev_read_iter,
.llseek = noop_llseek,
};
--
2.43.0