[PATCH 308/437] wifi: rtlwifi: convert debugfs helpers to read/write iterators
From: Jens Axboe
Date: Thu Apr 11 2024 - 12:50:41 EST
Signed-off-by: Jens Axboe <axboe@xxxxxxxxx>
---
drivers/net/wireless/realtek/rtlwifi/debug.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/net/wireless/realtek/rtlwifi/debug.c b/drivers/net/wireless/realtek/rtlwifi/debug.c
index 9eb26dfe4ca9..11220484c4c6 100644
--- a/drivers/net/wireless/realtek/rtlwifi/debug.c
+++ b/drivers/net/wireless/realtek/rtlwifi/debug.c
@@ -66,7 +66,7 @@ static int dl_debug_open_common(struct inode *inode, struct file *file)
static const struct file_operations file_ops_common = {
.open = dl_debug_open_common,
- .read = seq_read,
+ .read_iter = seq_read_iter,
.llseek = seq_lseek,
.release = single_release,
};
@@ -411,10 +411,11 @@ static ssize_t rtl_debugfs_common_write(struct file *filp,
return debugfs_priv->cb_write(filp, buffer, count, loff);
}
+FOPS_WRITE_ITER_HELPER(rtl_debugfs_common_write);
static const struct file_operations file_ops_common_write = {
.owner = THIS_MODULE,
- .write = rtl_debugfs_common_write,
+ .write_iter = rtl_debugfs_common_write_iter,
.open = simple_open,
.release = rtl_debugfs_close,
};
--
2.43.0