[PATCH 400/437] drivers/extcon: convert to read/write iterators

Jens Axboe
2024-04-11T15:42:54Z

drivers/extcon/extcon-rtk-type-c.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/extcon/extcon-rtk-type-c.c b/drivers/extcon/extcon-rtk-type-c.c
index a592bab77538..70a83ce3318e 100644
--- a/drivers/extcon/extcon-rtk-type-c.c
+++ b/drivers/extcon/extcon-rtk-type-c.c
@@ -796,7 +796,7 @@ static int type_c_parameter_open(struct inode *inode, struct file *file)

static const struct file_operations type_c_parameter_fops = {
.open = type_c_parameter_open,
- .read = seq_read,
+ .read_iter = seq_read_iter,
.llseek = seq_lseek,
.release = single_release,
};
@@ -838,7 +838,7 @@ static int type_c_status_open(struct inode *inode, struct file *file)

static const struct file_operations type_c_status_fops = {
.open = type_c_status_open,
- .read = seq_read,
+ .read_iter = seq_read_iter,
.llseek = seq_lseek,
.release = single_release,
};
--
2.43.0