[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240411153126.16201-176-axboe@kernel.dk>
Date: Thu, 11 Apr 2024 09:15:15 -0600
From: Jens Axboe <axboe@...nel.dk>
To: linux-kernel@...r.kernel.org
Cc: Jens Axboe <axboe@...nel.dk>
Subject: [PATCH 175/437] soc: aspeed: convert to read/write iterators
Signed-off-by: Jens Axboe <axboe@...nel.dk>
---
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
Powered by blists - more mailing lists