Skip to contentSkip to conversation

iio: fix kernel-doc warnings in industrialio-backend.c

PATCH In review KRIISHSHARMA 3 participants 5 messages Oct 27, 2025 – Oct 28, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 iio: fix kernel-doc warnings in industrialio-backend.c

From: Kriish Sharma <[email protected]>

Fix multiple kernel-doc warnings in drivers/iio/industrialio-backend.c, including a missing description for the @chan parameter in iio_backend_oversampling_ratio_set() and a missing return value description in iio_backend_get_priv().

This addresses the warnings reported by kernel-doc and the kernel test robot.

---

v2:
- Fixed another kernel-doc warning.

v1: https://lore.kernel.org/all/[email protected]

 drivers/iio/industrialio-backend.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/iio/industrialio-backend.c +4 -0
index 23760652a046..73704cc1bd03 100644
@@ -717,6 +717,7 @@ EXPORT_SYMBOL_NS_GPL(iio_backend_data_size_set, "IIO_BACKEND");
 /**
  * iio_backend_oversampling_ratio_set - set the oversampling ratio
  * @back: Backend device
+ * @chan: Channel number
  * @ratio: The oversampling ratio - value 1 corresponds to no oversampling.
  *
  * Return:
@@ -1064,6 +1065,9 @@ EXPORT_SYMBOL_NS_GPL(__devm_iio_backend_get_from_fwnode_lookup, "IIO_BACKEND");
 /**
  * iio_backend_get_priv - Get driver private data
  * @back: Backend device
+ *
+ * RETURNS:
+ * Pointer to the driver private data associated with the backend.
  */
 void *iio_backend_get_priv(const struct iio_backend *back)
 {
Signature · 1 line
2.34.1
Reviewed-by on v2 1/1
#1 lore raw
Quoted 8 lines · KRIISHSHARMA

Fix multiple kernel-doc warnings in drivers/iio/industrialio-backend.c, including a missing description for the @chan parameter in iio_backend_oversampling_ratio_set() and a missing return value description in iio_backend_get_priv().

This addresses the warnings reported by kernel-doc and the kernel test robot.

Subject should be rather

iio: backend: fix kernel-doc to avoid warnings

But no need to resend, until Jonathan requests this. I hope he can massage the commit message whilst applying.

Signature · 2 lines
With Best Regards,
Andy Shevchenko
reviewer
#2 lore raw
In reply to KRIISHSHARMA
Quoted 29 lines · KRIISHSHARMA

From: Kriish Sharma <[email protected]>

Fix multiple kernel-doc warnings in drivers/iio/industrialio-backend.c, including a missing description for the @chan parameter in iio_backend_oversampling_ratio_set() and a missing return value description in iio_backend_get_priv().

This addresses the warnings reported by kernel-doc and the kernel test robot.

---

v2:
- Fixed another kernel-doc warning.

v1: https://lore.kernel.org/all/[email protected]

 drivers/iio/industrialio-backend.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/iio/industrialio-backend.c +0 -0
index 23760652a046..73704cc1bd03 100644

drivers/iio/industrialio-backend.c EXPORT_SYMBOL_NS_GPL(iio_backend_data_size_set, "IIO_BACKEND"); · line 723

Quoted 7 lines
drivers/iio/industrialio-backend.c +1 -0
@@ -717,6 +717,7 @@ EXPORT_SYMBOL_NS_GPL(iio_backend_data_size_set, "IIO_BACKEND");
 /**
  * iio_backend_oversampling_ratio_set - set the oversampling ratio
  * @back: Backend device
+ * @chan: Channel number
  * @ratio: The oversampling ratio - value 1 corresponds to no oversampling.
  *
  * Return:

I guess it would not hurt to change this to RETURNS: to match the rest of the file either.

Quoted 10 lines
drivers/iio/industrialio-backend.c +3 -0
@@ -1064,6 +1065,9 @@ EXPORT_SYMBOL_NS_GPL(__devm_iio_backend_get_from_fwnode_lookup, "IIO_BACKEND");
 /**
  * iio_backend_get_priv - Get driver private data
  * @back: Backend device
+ *
+ * RETURNS:
+ * Pointer to the driver private data associated with the backend.
  */
 void *iio_backend_get_priv(const struct iio_backend *back)
 {
#3 lore raw
Quoted 1 line · David Lechner

On 10/27/25 4:21 AM, KRIISHSHARMA wrote:

...

Quoted 9 lines
Quoted 6 lines

* iio_backend_oversampling_ratio_set - set the oversampling ratio
* @back: Backend device
+ * @chan: Channel number
* @ratio: The oversampling ratio - value 1 corresponds to no oversampling. *
* Return:

I guess it would not hurt to change this to RETURNS: to match the rest of the file either.

Good catch! KRIISHSHARMA, please check the whole file for this as it's not a direct mistake from kernel-doc perspective, there is a mistake from consistency point of view and hence needs to be addressed.

...

Quoted 2 lines
Quoted 2 lines

+ * RETURNS:
+ * Pointer to the driver private data associated with the backend.

Signature · 2 lines
With Best Regards,
Andy Shevchenko
#4 lore raw

Hi Andy, David,

Thank you both for the reviews and helpful suggestions! I've sent v3 now, which includes the consistency fixes (changing
Return: to RETURNS: across the file) and the other points you mentioned.

https://lore.kernel.org/all/[email protected]/

Appreciate your time and feedback.

Best regards,
Kriish

Quoted 30 lines · Andy Shevchenko
Quoted 1 line · David Lechner

On 10/27/25 4:21 AM, KRIISHSHARMA wrote:

...

Quoted 9 lines
Quoted 6 lines

* iio_backend_oversampling_ratio_set - set the oversampling ratio
* @back: Backend device
+ * @chan: Channel number
* @ratio: The oversampling ratio - value 1 corresponds to no oversampling. *
* Return:

I guess it would not hurt to change this to RETURNS: to match the rest of the file either.

Good catch! KRIISHSHARMA, please check the whole file for this as it's not a direct mistake from kernel-doc perspective, there is a mistake from consistency point of view and hence needs to be addressed.

...

Quoted 2 lines
Quoted 2 lines

+ * RETURNS:
+ * Pointer to the driver private data associated with the backend.

--
With Best Regards,
Andy Shevchenko