[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20251027092159.918445-1-kriish.sharma2006@gmail.com>
Date: Mon, 27 Oct 2025 09:21:59 +0000
From: KRIISHSHARMA <kriish.sharma2006@...il.com>
To: nuno.sa@...log.com,
olivier.moysan@...s.st.com,
jic23@...nel.org,
dlechner@...libre.com,
andy@...nel.org
Cc: linux-iio@...r.kernel.org,
linux-kernel@...r.kernel.org,
Kriish Sharma <kriish.sharma2006@...il.com>,
kernel test robot <lkp@...el.com>
Subject: [PATCH v2] iio: fix kernel-doc warnings in industrialio-backend.c
From: Kriish Sharma <kriish.sharma2006@...il.com>
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.
Reported-by: kernel test robot <lkp@...el.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202506292344.HLJbrrgR-lkp@intel.com
Suggested-by: Andy Shevchenko <andy@...nel.org>
Signed-off-by: Kriish Sharma <kriish.sharma2006@...il.com>
---
v2:
- Fixed another kernel-doc warning.
v1: https://lore.kernel.org/all/20251025102008.253566-1-kriish.sharma2006@gmail.com
drivers/iio/industrialio-backend.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/iio/industrialio-backend.c b/drivers/iio/industrialio-backend.c
index 23760652a046..73704cc1bd03 100644
--- a/drivers/iio/industrialio-backend.c
+++ b/drivers/iio/industrialio-backend.c
@@ -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)
{
--
2.34.1
Powered by blists - more mailing lists