iio: backend: document @chan in iio_backend_oversampling_ratio_set kernel-doc comment
Subsystems (2)
PATCH 1/1 iio: backend: document @chan in iio_backend_oversampling_ratio_set kernel-doc comment
Buidling with W=1 reports:
Warning: drivers/iio/industrialio-backend.c:727 function parameter 'chan' not described in 'iio_backend_oversampling_ratio_set'
The @chan parameter was added when iio_backend_oversampling_ratio_set() was updated so the contexts could specify the channel, but the parameter was never documented. Document @chan to silence this warning.
--- drivers/iio/industrialio-backend.c | 1 + 1 file changed, 1 insertion(+)
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:
Signature · 1 line
2.43.0
Quoted 7 lines · Sukrut Heroorkar
Buidling with W=1 reports:
Warning:drivers/iio/industrialio-backend.c:727function parameter 'chan' not described in 'iio_backend_oversampling_ratio_set'The @chan parameter was added when
iio_backend_oversampling_ratio_set()was updated so the contexts could specify the channel, but the parameter was never documented. Document @chan to silence this warning.
There is already more comprehensive patch available:
https://lore.kernel.org/linux-iio/[email protected]/
Signature · 2 lines
With Best Regards, Andy Shevchenko
Quoted 6 lines · Andy Shevchenko
Quoted 4 lines · Sukrut Heroorkar
Buidling with W=1 reports:
Warning:drivers/iio/industrialio-backend.c:727function parameter 'chan' not described in 'iio_backend_oversampling_ratio_set'
Quoted 6 lines
Quoted 3 lines
The @chan parameter was added when
iio_backend_oversampling_ratio_set()was updated so the contexts could specify the channel, but the parameter was never documented. Document @chan to silence this warning.There is already more comprehensive patch available:
https://lore.kernel.org/linux-iio/[email protected]/
Thanks for the update, Andy.
Regards,
Sukurt Heroorkar
Quoted 6 lines
--
With Best Regards,
Andy Shevchenko