lkml.org 
[lkml]   [2024]   [Apr]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 017/437] char/dsp56k: convert to read/write iterators
Date
Signed-off-by: Jens Axboe <axboe@kernel.dk>
---
drivers/char/dsp56k.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/char/dsp56k.c b/drivers/char/dsp56k.c
index bda27e595da1..14f0f284c944 100644
--- a/drivers/char/dsp56k.c
+++ b/drivers/char/dsp56k.c
@@ -242,6 +242,7 @@ static ssize_t dsp56k_read(struct file *file, char __user *buf, size_t count,
return -ENXIO;
}
}
+FOPS_READ_ITER_HELPER(dsp56k_read);

static ssize_t dsp56k_write(struct file *file, const char __user *buf, size_t count,
loff_t *ppos)
@@ -304,6 +305,7 @@ static ssize_t dsp56k_write(struct file *file, const char __user *buf, size_t co
return -ENXIO;
}
}
+FOPS_WRITE_ITER_HELPER(dsp56k_write);

static long dsp56k_ioctl(struct file *file, unsigned int cmd,
unsigned long arg)
@@ -480,8 +482,8 @@ static int dsp56k_release(struct inode *inode, struct file *file)

static const struct file_operations dsp56k_fops = {
.owner = THIS_MODULE,
- .read = dsp56k_read,
- .write = dsp56k_write,
+ .read_iter = dsp56k_read_iter,
+ .write_iter = dsp56k_write_iter,
.unlocked_ioctl = dsp56k_ioctl,
.open = dsp56k_open,
.release = dsp56k_release,
--
2.43.0

\
 
 \ /
  Last update: 2024-05-27 16:35    [W:1.437 / U:0.168 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site