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 200/437] staging: axis: convert to read/write iterators
    Date
    Signed-off-by: Jens Axboe <axboe@kernel.dk>
    ---
    drivers/staging/axis-fifo/axis-fifo.c | 13 +++++--------
    1 file changed, 5 insertions(+), 8 deletions(-)

    diff --git a/drivers/staging/axis-fifo/axis-fifo.c b/drivers/staging/axis-fifo/axis-fifo.c
    index ba8e08be0daf..9c9f0716e5f7 100644
    --- a/drivers/staging/axis-fifo/axis-fifo.c
    +++ b/drivers/staging/axis-fifo/axis-fifo.c
    @@ -33,6 +33,7 @@
    #include <linux/uaccess.h>
    #include <linux/jiffies.h>
    #include <linux/miscdevice.h>
    +#include <linux/uio.h>

    /* ----------------------------
    * driver parameters
    @@ -332,10 +333,8 @@ static void reset_ip_core(struct axis_fifo *fifo)

    /**
    * axis_fifo_read() - Read a packet from AXIS-FIFO character device.
    - * @f: Open file.
    - * @buf: User space buffer to read to.
    - * @len: User space buffer length.
    - * @off: Buffer offset.
    + * @iocb: Metadata for IO.
    + * @to: User space buffer to read to.
    *
    * As defined by the device's documentation, we need to check the device's
    * occupancy before reading the length register and then the data. All these
    @@ -451,10 +450,8 @@ static ssize_t axis_fifo_read(struct kiocb *iocb, struct iov_iter *to)

    /**
    * axis_fifo_write() - Write buffer to AXIS-FIFO character device.
    - * @f: Open file.
    - * @buf: User space buffer to write to the device.
    - * @len: User space buffer length.
    - * @off: Buffer offset.
    + * @iocb: Metadata for IO.
    + * @from: User space buffer to write to the device.
    *
    * As defined by the device's documentation, we need to write to the device's
    * data buffer then to the device's packet length register atomically. Also,
    --
    2.43.0

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