[PATCH 019/437] char/hpet: convert to read/write iterators

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

drivers/char/hpet.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/char/hpet.c b/drivers/char/hpet.c
index d51fc8321d41..68a3ab149e72 100644
--- a/drivers/char/hpet.c
+++ b/drivers/char/hpet.c
@@ -303,6 +303,7 @@ hpet_read(struct file *file, char __user *buf, size_t count, loff_t * ppos)

return retval;
}
+FOPS_READ_ITER_HELPER(hpet_read);

static __poll_t hpet_poll(struct file *file, poll_table * wait)
{
@@ -677,7 +678,7 @@ hpet_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
static const struct file_operations hpet_fops = {
.owner = THIS_MODULE,
.llseek = no_llseek,
- .read = hpet_read,
+ .read_iter = hpet_read_iter,
.poll = hpet_poll,
.unlocked_ioctl = hpet_ioctl,
#ifdef CONFIG_COMPAT
--
2.43.0