[PATCH 175/437] soc: aspeed: convert to read/write iterators

From: Jens Axboe
Date: Thu Apr 11 2024 - 12:19:15 EST


Signed-off-by: Jens Axboe <axboe@xxxxxxxxx>
---
drivers/soc/aspeed/aspeed-lpc-snoop.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/soc/aspeed/aspeed-lpc-snoop.c b/drivers/soc/aspeed/aspeed-lpc-snoop.c
index 888b5840c015..e807893b1624 100644
--- a/drivers/soc/aspeed/aspeed-lpc-snoop.c
+++ b/drivers/soc/aspeed/aspeed-lpc-snoop.c
@@ -98,6 +98,7 @@ static ssize_t snoop_file_read(struct file *file, char __user *buffer,

return copied;
}
+FOPS_READ_ITER_HELPER(snoop_file_read);

static __poll_t snoop_file_poll(struct file *file,
struct poll_table_struct *pt)
@@ -110,7 +111,7 @@ static __poll_t snoop_file_poll(struct file *file,

static const struct file_operations snoop_fops = {
.owner = THIS_MODULE,
- .read = snoop_file_read,
+ .read_iter = snoop_file_read_iter,
.poll = snoop_file_poll,
.llseek = noop_llseek,
};
--
2.43.0