Linux IIO development
 help / color / mirror / Atom feed
* [PATCH] iio: buffer-dma: Fix docstrings
@ 2025-02-27 19:27 Folker Schwesinger
  2025-02-28  8:26 ` Nuno Sá
  0 siblings, 1 reply; 3+ messages in thread
From: Folker Schwesinger @ 2025-02-27 19:27 UTC (permalink / raw)
  To: Jonathan Cameron, Lars-Peter Clausen, Nuno Sa, Paul Cercueil,
	Peter Zijlstra
  Cc: linux-iio, linux-kernel, Folker Schwesinger

Fix a typo in the docstring of iio_dma_buffer_read() and fix what looks
like a copy-and-paste error in the iio_dma_buffer_write() docstring.

Signed-off-by: Folker Schwesinger <dev@folker-schwesinger.de>
---
 drivers/iio/buffer/industrialio-buffer-dma.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/iio/buffer/industrialio-buffer-dma.c b/drivers/iio/buffer/industrialio-buffer-dma.c
index 7ea784304ffb..ee294a775e8a 100644
--- a/drivers/iio/buffer/industrialio-buffer-dma.c
+++ b/drivers/iio/buffer/industrialio-buffer-dma.c
@@ -624,7 +624,7 @@ static int iio_dma_buffer_io(struct iio_buffer *buffer, size_t n,
 
 /**
  * iio_dma_buffer_read() - DMA buffer read callback
- * @buffer: Buffer to read form
+ * @buffer: Buffer to read from
  * @n: Number of bytes to read
  * @user_buffer: Userspace buffer to copy the data to
  *
@@ -640,7 +640,7 @@ EXPORT_SYMBOL_NS_GPL(iio_dma_buffer_read, "IIO_DMA_BUFFER");
 
 /**
  * iio_dma_buffer_write() - DMA buffer write callback
- * @buffer: Buffer to read form
+ * @buffer: Buffer to write to
  * @n: Number of bytes to read
  * @user_buffer: Userspace buffer to copy the data from
  *

base-commit: faeaa1ec6c63b6676679f321601471772f2a0c9b
-- 
2.48.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] iio: buffer-dma: Fix docstrings
  2025-02-27 19:27 [PATCH] iio: buffer-dma: Fix docstrings Folker Schwesinger
@ 2025-02-28  8:26 ` Nuno Sá
  2025-03-04 14:49   ` Jonathan Cameron
  0 siblings, 1 reply; 3+ messages in thread
From: Nuno Sá @ 2025-02-28  8:26 UTC (permalink / raw)
  To: Folker Schwesinger, Jonathan Cameron, Lars-Peter Clausen, Nuno Sa,
	Paul Cercueil, Peter Zijlstra
  Cc: linux-iio, linux-kernel

On Thu, 2025-02-27 at 20:27 +0100, Folker Schwesinger wrote:
> Fix a typo in the docstring of iio_dma_buffer_read() and fix what looks
> like a copy-and-paste error in the iio_dma_buffer_write() docstring.
> 
> Signed-off-by: Folker Schwesinger <dev@folker-schwesinger.de>
> ---

Reviewed-by: Nuno Sá <nuno.sa@analog.com>

>  drivers/iio/buffer/industrialio-buffer-dma.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/iio/buffer/industrialio-buffer-dma.c
> b/drivers/iio/buffer/industrialio-buffer-dma.c
> index 7ea784304ffb..ee294a775e8a 100644
> --- a/drivers/iio/buffer/industrialio-buffer-dma.c
> +++ b/drivers/iio/buffer/industrialio-buffer-dma.c
> @@ -624,7 +624,7 @@ static int iio_dma_buffer_io(struct iio_buffer *buffer,
> size_t n,
>  
>  /**
>   * iio_dma_buffer_read() - DMA buffer read callback
> - * @buffer: Buffer to read form
> + * @buffer: Buffer to read from
>   * @n: Number of bytes to read
>   * @user_buffer: Userspace buffer to copy the data to
>   *
> @@ -640,7 +640,7 @@ EXPORT_SYMBOL_NS_GPL(iio_dma_buffer_read,
> "IIO_DMA_BUFFER");
>  
>  /**
>   * iio_dma_buffer_write() - DMA buffer write callback
> - * @buffer: Buffer to read form
> + * @buffer: Buffer to write to
>   * @n: Number of bytes to read
>   * @user_buffer: Userspace buffer to copy the data from
>   *
> 
> base-commit: faeaa1ec6c63b6676679f321601471772f2a0c9b


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] iio: buffer-dma: Fix docstrings
  2025-02-28  8:26 ` Nuno Sá
@ 2025-03-04 14:49   ` Jonathan Cameron
  0 siblings, 0 replies; 3+ messages in thread
From: Jonathan Cameron @ 2025-03-04 14:49 UTC (permalink / raw)
  To: Nuno Sá
  Cc: Folker Schwesinger, Lars-Peter Clausen, Nuno Sa, Paul Cercueil,
	Peter Zijlstra, linux-iio, linux-kernel

On Fri, 28 Feb 2025 08:26:44 +0000
Nuno Sá <noname.nuno@gmail.com> wrote:

> On Thu, 2025-02-27 at 20:27 +0100, Folker Schwesinger wrote:
> > Fix a typo in the docstring of iio_dma_buffer_read() and fix what looks
> > like a copy-and-paste error in the iio_dma_buffer_write() docstring.
> > 
> > Signed-off-by: Folker Schwesinger <dev@folker-schwesinger.de>
> > ---  
> 
> Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Applied. Thanks.

> 
> >  drivers/iio/buffer/industrialio-buffer-dma.c | 4 ++--
> >  1 file changed, 2 insertions(+), 2 deletions(-)
> > 
> > diff --git a/drivers/iio/buffer/industrialio-buffer-dma.c
> > b/drivers/iio/buffer/industrialio-buffer-dma.c
> > index 7ea784304ffb..ee294a775e8a 100644
> > --- a/drivers/iio/buffer/industrialio-buffer-dma.c
> > +++ b/drivers/iio/buffer/industrialio-buffer-dma.c
> > @@ -624,7 +624,7 @@ static int iio_dma_buffer_io(struct iio_buffer *buffer,
> > size_t n,
> >  
> >  /**
> >   * iio_dma_buffer_read() - DMA buffer read callback
> > - * @buffer: Buffer to read form
> > + * @buffer: Buffer to read from
> >   * @n: Number of bytes to read
> >   * @user_buffer: Userspace buffer to copy the data to
> >   *
> > @@ -640,7 +640,7 @@ EXPORT_SYMBOL_NS_GPL(iio_dma_buffer_read,
> > "IIO_DMA_BUFFER");
> >  
> >  /**
> >   * iio_dma_buffer_write() - DMA buffer write callback
> > - * @buffer: Buffer to read form
> > + * @buffer: Buffer to write to
> >   * @n: Number of bytes to read
> >   * @user_buffer: Userspace buffer to copy the data from
> >   *
> > 
> > base-commit: faeaa1ec6c63b6676679f321601471772f2a0c9b  
> 
> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-03-04 14:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-27 19:27 [PATCH] iio: buffer-dma: Fix docstrings Folker Schwesinger
2025-02-28  8:26 ` Nuno Sá
2025-03-04 14:49   ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox