iio: fix kernel-doc warnings in public headers
Subsystems (2)
cover iio: fix kernel-doc warnings in public headers
Fix two kernel-doc warnings in public IIO headers:
- Rename @consumer_channel to @name in fwnode_iio_channel_get_by_name().
- Replace repeated 'NOTE:' labels in struct iio_itime_sel_mul to avoid a duplicate section name warning.
Tested with ./scripts/kernel-doc, ./scripts/checkpatch.pl --strict, and W=1 builds of drivers/iio/inkern.o and drivers/iio/industrialio-gts-helper.o.
---
Oscar Alejandro Sánchez Lucero (2):
iio: consumers: fix kernel-doc parameter name in fwnode_iio_channel_get_by_name()
iio: gts-helper: fix duplicate NOTE section in struct iio_itime_sel_mul
include/linux/iio/consumer.h | 2 +- include/linux/iio/iio-gts-helper.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)
---
base-commit: 9d66f26fefacebfeed15de31c1123451a17ff119
change-id: 20261112-iio-kernel-doc-80cb46e21fb6
Best regards,
Signature · 1 line
Oscar Alejandro Sánchez Lucero <[email protected]>
PATCH 1/2 iio: consumers: fix kernel-doc parameter name in fwnode_iio_channel_get_by_name()
Rename @consumer_channel to @name in the kernel-doc comment of fwnode_iio_channel_get_by_name() to match the function signature.
Verified with ./scripts/kernel-doc, checkpatch.pl --strict, and a W=1 build of drivers/iio/inkern.o.
--- include/linux/iio/consumer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/iio/consumer.h +1 -1
@@ -101,7 +101,7 @@ struct iio_channel *devm_iio_channel_get_all(struct device *dev);/** * fwnode_iio_channel_get_by_name() - get description of all that is needed to access channel. * @fwnode: Pointer to consumer Firmware node -* @consumer_channel: Unique name to identify the channel on the consumer +* @name: Unique name to identify the channel on the consumer * side. This typically describes the channels use within * the consumer. E.g. 'battery_voltage' */
Signature · 1 line
2.56.0
PATCH 2/2 iio: gts-helper: fix duplicate NOTE section in struct iio_itime_sel_mul
In reply to Oscar Alejandro Sánchez LuceroReplace the repeated 'NOTE:' prefixes in struct iio_itime_sel_mul kernel-doc comments with plain sentences to avoid the duplicate section name warning.
Verified with ./scripts/kernel-doc, checkpatch.pl --strict, and a W=1 build of drivers/iio/industrialio-gts-helper.o.
--- include/linux/iio/iio-gts-helper.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
include/linux/iio/iio-gts-helper.h +2 -2
@@ -47,9 +47,9 @@ struct iio_gain_sel_pair {* @time_us: Integration time in microseconds. Time values must be positive, * negative values are reserved for error handling. * @sel: Selector (usually register value) used to indicate this time -* NOTE: Only selectors >= 0 supported. +* Note that only selectors >= 0 are supported. * @mul: Multiplication to the values caused by this time. -* NOTE: Only multipliers > 0 supported. +* Note that only multipliers > 0 are supported. */ struct iio_itime_sel_mul {int time_us;
Signature · 1 line
2.56.0
Matti Vaittinen
maintainerRe: [PATCH 2/2] iio: gts-helper: fix duplicate NOTE section in struct iio_itime_sel_mul
Quoted 19 lines · Oscar Alejandro Sánchez Lucero
Replace the repeated 'NOTE:' prefixes in struct
iio_itime_sel_mulkernel-doc comments with plain sentences to avoid the duplicate section name warning.Verified with
./scripts/kernel-doc, checkpatch.pl --strict, and a W=1 build ofdrivers/iio/industrialio-gts-helper.o.Signed-off-by Oscar Alejandro Sánchez Lucero <[email protected]>--- include/linux/iio/iio-gts-helper.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)include/linux/iio/iio-gts-helper.h +0
-0@@ -47,9 +47,9 @@ struct iio_gain_sel_pair {* @time_us: Integration time in microseconds. Time values must be positive,
include/linux/iio/iio-gts-helper.h struct iio_gain_sel_pair { · line 55
Quoted 10 lines
include/linux/iio/iio-gts-helper.h +2
-2* negative values are reserved for error handling. * @sel: Selector (usually register value) used to indicate this time -* NOTE: Only selectors >= 0 supported. +* Note that only selectors >= 0 are supported. * @mul: Multiplication to the values caused by this time. -* NOTE: Only multipliers > 0 supported. +* Note that only multipliers > 0 are supported. */ struct iio_itime_sel_mul {int time_us;
I am unsure the "Note that..." serves any real value. Might as well be short and concise:
"NOTE: Only multipliers > 0 supported." => "Only multipliers > 0 supported."
Well, "Note that only multipliers > 0 are supported." isn't much longer so it works well enough for me unless you respin this for some other reason.
Thanks for the fix!
Yours,
-- Matti
Signature · 5 lines
Matti Vaittinen Linux kernel developer at ROHM Semiconductors Oulu Finland ~~ When things go utterly wrong vim users can always type :help! ~~
Quoted 4 lines · Oscar Alejandro Sánchez Lucero
Fix two kernel-doc warnings in public IIO headers:
- Rename @consumer_channel to @name infwnode_iio_channel_get_by_name().
- Replace repeated 'NOTE:' labels in structiio_itime_sel_multo avoid a duplicate section name warning.
Jonathan Cameron
maintainerQuoted 7 lines · On Fri, 13 Nov 2026 13:47:19 +0530 Arnav Kapoor <[email protected]> wrote:
Quoted 4 lines · Oscar Alejandro Sánchez Lucero
Fix two kernel-doc warnings in public IIO headers:
- Rename @consumer_channel to @name infwnode_iio_channel_get_by_name().
- Replace repeated 'NOTE:' labels in structiio_itime_sel_multo avoid a duplicate section name warning.Reviewed-by Arnav Kapoor <[email protected]>
Applied to the testing branch of iio.git.
Thanks,
Jonathan