Skip to contentSkip to conversation

iio: buffer-dma: Fix docstrings

PATCH Applied Folker Schwesinger 3 participants 3 messages Feb 27, 2025 – Mar 4, 2025 IIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iio: buffer-dma: Fix docstrings

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.

---
 drivers/iio/buffer/industrialio-buffer-dma.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/iio/buffer/industrialio-buffer-dma.c +2 -2
index 7ea784304ffb..ee294a775e8a 100644
@@ -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

Signature · 1 line
2.48.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · 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.

---

Quoted 30 lines

 drivers/iio/buffer/industrialio-buffer-dma.c | 4 ++--

 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/iio/buffer/industrialio-buffer-dma.c +0 -0
index 7ea784304ffb..ee294a775e8a 100644
@@ -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 *

drivers/iio/buffer/industrialio-buffer-dma.c +0 -0
@@ -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

maintainer Applied
#2 lore raw
Quoted 8 lines · On Fri, 28 Feb 2025 08:26:44 +0000 Nuno Sá <[email protected]> wrote:
Quoted 5 lines · 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.

---

Applied. Thanks.

Quoted 33 lines
Quoted 31 lines

 drivers/iio/buffer/industrialio-buffer-dma.c | 4 ++--

 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/iio/buffer/industrialio-buffer-dma.c +0 -0
index 7ea784304ffb..ee294a775e8a 100644
@@ -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 *

drivers/iio/buffer/industrialio-buffer-dma.c +0 -0
@@ -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