* [PATCH v3] iio: backend: fix kernel-doc to avoid warnings and ensure consistency
@ 2025-10-28 9:33 Kriish Sharma
2025-10-28 10:12 ` Andy Shevchenko
2025-10-28 11:56 ` Nuno Sá
0 siblings, 2 replies; 4+ messages in thread
From: Kriish Sharma @ 2025-10-28 9:33 UTC (permalink / raw)
To: nuno.sa, olivier.moysan, jic23, dlechner, andy
Cc: linux-iio, linux-kernel, Kriish Sharma, kernel test robot
Fix multiple kernel-doc warnings and make the documentation style
consistent in drivers/iio/industrialio-backend.c.
Changes include:
- Add missing @chan parameter description in
iio_backend_oversampling_ratio_set().
- Add missing RETURNS section in iio_backend_get_priv().
- Replace Return: with “RETURNS:” across the file for consistency.
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202506292344.HLJbrrgR-lkp@intel.com
Suggested-by: Andy Shevchenko <andy@kernel.org>
Suggested-by: David Lechner <dlechner@baylibre.com>
Signed-off-by: Kriish Sharma <kriish.sharma2006@gmail.com>
---
v3:
- Changed Return: to RETURNS: for consistency across the file as
suggested by David
v2: https://lore.kernel.org/all/20251027092159.918445-1-kriish.sharma2006@gmail.com
v1: https://lore.kernel.org/all/20251025102008.253566-1-kriish.sharma2006@gmail.com
drivers/iio/industrialio-backend.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/drivers/iio/industrialio-backend.c b/drivers/iio/industrialio-backend.c
index 23760652a046..447b694d6d5f 100644
--- a/drivers/iio/industrialio-backend.c
+++ b/drivers/iio/industrialio-backend.c
@@ -702,7 +702,7 @@ EXPORT_SYMBOL_NS_GPL(iio_backend_interface_type_get, "IIO_BACKEND");
* interface/data bus. Hence, the backend device needs to be aware of it so
* data can be correctly transferred.
*
- * Return:
+ * RETURNS:
* 0 on success, negative error number on failure.
*/
int iio_backend_data_size_set(struct iio_backend *back, unsigned int size)
@@ -717,9 +717,10 @@ 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:
+ * RETURNS:
* 0 on success, negative error number on failure.
*/
int iio_backend_oversampling_ratio_set(struct iio_backend *back,
@@ -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
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v3] iio: backend: fix kernel-doc to avoid warnings and ensure consistency
2025-10-28 9:33 [PATCH v3] iio: backend: fix kernel-doc to avoid warnings and ensure consistency Kriish Sharma
@ 2025-10-28 10:12 ` Andy Shevchenko
2025-11-02 11:56 ` Jonathan Cameron
2025-10-28 11:56 ` Nuno Sá
1 sibling, 1 reply; 4+ messages in thread
From: Andy Shevchenko @ 2025-10-28 10:12 UTC (permalink / raw)
To: Kriish Sharma
Cc: nuno.sa, olivier.moysan, jic23, dlechner, andy, linux-iio,
linux-kernel, kernel test robot
On Tue, Oct 28, 2025 at 09:33:26AM +0000, Kriish Sharma wrote:
> Fix multiple kernel-doc warnings and make the documentation style
> consistent in drivers/iio/industrialio-backend.c.
>
> Changes include:
> - Add missing @chan parameter description in
> iio_backend_oversampling_ratio_set().
> - Add missing RETURNS section in iio_backend_get_priv().
> - Replace Return: with “RETURNS:” across the file for consistency.
Reviewed-by: Andy Shevchenko <andy@kernel.org>
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v3] iio: backend: fix kernel-doc to avoid warnings and ensure consistency
2025-10-28 9:33 [PATCH v3] iio: backend: fix kernel-doc to avoid warnings and ensure consistency Kriish Sharma
2025-10-28 10:12 ` Andy Shevchenko
@ 2025-10-28 11:56 ` Nuno Sá
1 sibling, 0 replies; 4+ messages in thread
From: Nuno Sá @ 2025-10-28 11:56 UTC (permalink / raw)
To: Kriish Sharma, nuno.sa, olivier.moysan, jic23, dlechner, andy
Cc: linux-iio, linux-kernel, kernel test robot
On Tue, 2025-10-28 at 09:33 +0000, Kriish Sharma wrote:
> Fix multiple kernel-doc warnings and make the documentation style
> consistent in drivers/iio/industrialio-backend.c.
>
> Changes include:
> - Add missing @chan parameter description in
> iio_backend_oversampling_ratio_set().
> - Add missing RETURNS section in iio_backend_get_priv().
> - Replace Return: with “RETURNS:” across the file for consistency.
>
> Reported-by: kernel test robot <lkp@intel.com>
> Closes:
> https://lore.kernel.org/oe-kbuild-all/202506292344.HLJbrrgR-lkp@intel.com
> Suggested-by: Andy Shevchenko <andy@kernel.org>
> Suggested-by: David Lechner <dlechner@baylibre.com>
> Signed-off-by: Kriish Sharma <kriish.sharma2006@gmail.com>
> ---
Thanks for this!
Reviewed-by: Nuno Sá <nuno.sa@analog.com>
> v3:
> - Changed Return: to RETURNS: for consistency across the file as
> suggested by David
>
> v2:
> https://lore.kernel.org/all/20251027092159.918445-1-kriish.sharma2006@gmail.com
>
> v1:
> https://lore.kernel.org/all/20251025102008.253566-1-kriish.sharma2006@gmail.com
>
> drivers/iio/industrialio-backend.c | 8 ++++++--
> 1 file changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/iio/industrialio-backend.c b/drivers/iio/industrialio-
> backend.c
> index 23760652a046..447b694d6d5f 100644
> --- a/drivers/iio/industrialio-backend.c
> +++ b/drivers/iio/industrialio-backend.c
> @@ -702,7 +702,7 @@ EXPORT_SYMBOL_NS_GPL(iio_backend_interface_type_get,
> "IIO_BACKEND");
> * interface/data bus. Hence, the backend device needs to be aware of it so
> * data can be correctly transferred.
> *
> - * Return:
> + * RETURNS:
> * 0 on success, negative error number on failure.
> */
> int iio_backend_data_size_set(struct iio_backend *back, unsigned int size)
> @@ -717,9 +717,10 @@ 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:
> + * RETURNS:
> * 0 on success, negative error number on failure.
> */
> int iio_backend_oversampling_ratio_set(struct iio_backend *back,
> @@ -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)
> {
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v3] iio: backend: fix kernel-doc to avoid warnings and ensure consistency
2025-10-28 10:12 ` Andy Shevchenko
@ 2025-11-02 11:56 ` Jonathan Cameron
0 siblings, 0 replies; 4+ messages in thread
From: Jonathan Cameron @ 2025-11-02 11:56 UTC (permalink / raw)
To: Andy Shevchenko
Cc: Kriish Sharma, nuno.sa, olivier.moysan, dlechner, andy, linux-iio,
linux-kernel, kernel test robot
On Tue, 28 Oct 2025 12:12:04 +0200
Andy Shevchenko <andriy.shevchenko@intel.com> wrote:
> On Tue, Oct 28, 2025 at 09:33:26AM +0000, Kriish Sharma wrote:
> > Fix multiple kernel-doc warnings and make the documentation style
> > consistent in drivers/iio/industrialio-backend.c.
> >
> > Changes include:
> > - Add missing @chan parameter description in
> > iio_backend_oversampling_ratio_set().
> > - Add missing RETURNS section in iio_backend_get_priv().
> > - Replace Return: with “RETURNS:” across the file for consistency.
>
> Reviewed-by: Andy Shevchenko <andy@kernel.org>
>
Applied.
Thanks,
Jonathan
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-11-02 11:56 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-28 9:33 [PATCH v3] iio: backend: fix kernel-doc to avoid warnings and ensure consistency Kriish Sharma
2025-10-28 10:12 ` Andy Shevchenko
2025-11-02 11:56 ` Jonathan Cameron
2025-10-28 11:56 ` Nuno Sá
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox