[PATCH 145/437] drm/imagination: convert to read/write iterators

Jens Axboe
2024-04-11T15:35:45Z

drivers/gpu/drm/imagination/pvr_fw_trace.c | 2 +-
drivers/gpu/drm/imagination/pvr_params.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/imagination/pvr_fw_trace.c b/drivers/gpu/drm/imagination/pvr_fw_trace.c
index 31199e45b72e..ff5827dd6390 100644
--- a/drivers/gpu/drm/imagination/pvr_fw_trace.c
+++ b/drivers/gpu/drm/imagination/pvr_fw_trace.c
@@ -438,7 +438,7 @@ static int fw_trace_release(struct inode *inode, struct file *file)
static const struct file_operations pvr_fw_trace_fops = {
.owner = THIS_MODULE,
.open = fw_trace_open,
- .read = seq_read,
+ .read_iter = seq_read_iter,
.llseek = seq_lseek,
.release = fw_trace_release,
};
diff --git a/drivers/gpu/drm/imagination/pvr_params.c b/drivers/gpu/drm/imagination/pvr_params.c
index b91759f362c5..4fe0105ca0c9 100644
--- a/drivers/gpu/drm/imagination/pvr_params.c
+++ b/drivers/gpu/drm/imagination/pvr_params.c
@@ -119,8 +119,8 @@ static struct {
.owner = THIS_MODULE, \
.open = __pvr_device_param_##name_##_open, \
.release = simple_attr_release, \
- .read = simple_attr_read, \
- .write = simple_attr_write, \
+ .read_iter = simple_attr_read_iter, \
+ .write_iter = simple_attr_write_iter, \
.llseek = generic_file_llseek, \
},
PVR_DEVICE_PARAMS
--
2.43.0