[PATCH 020/437] char/hw_random: convert to read/write iterators

Jens Axboe
2024-04-11T15:32:04Z

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