fix kernel-docs for struct iio_trigger
v3 cover fix kernel-docs for struct iio_trigger
This series was inspired by a warning emitted by sphinx when running kernel make target 'htmldocs'.
warning: No description found for parameter 'owner'
Patch 1 adds a kernel-doc description for field @owner.
Patch 2 adds field identifier to kernel-doc string (for @use_count).
v3:
- Fix up patch title to include correct version number.
v2:
- Change field identifier from DRIVER to INTERN.
- Add second patch, change subject line.
v1:
- [PATCH] iio: add kernel-doc '@owner'
Tobin C. Harding (2):
iio: add kernel-doc for field @owner
iio: add field identifier for @use_count kernel-doc
include/linux/iio/trigger.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Signature · 1 line
2.7.4
PATCH v3 1/2 iio: add kernel-doc for field @owner
When building kernel documentation sphinx emits the following warning
warning: No description found for parameter 'owner'
Add description for struct member 'owner'.
--- include/linux/iio/trigger.h | 1 + 1 file changed, 1 insertion(+)
include/linux/iio/trigger.h +1 -0
@@ -43,6 +43,7 @@ struct iio_trigger_ops {/** * struct iio_trigger - industrial I/O trigger device * @ops: [DRIVER] operations structure +* @owner: [INTERN] owner of this driver module * @id: [INTERN] unique id number * @name: [DRIVER] unique name * @dev: [DRIVER] associated device (if relevant)
Signature · 1 line
2.7.4
Jonathan Cameron
maintainerRe: [PATCH v3 1/2] iio: add kernel-doc for field @owner
Quoted 7 lines · On Sun, 7 Jan 2018 08:56:05 +1100 "Tobin C. Harding" <[email protected]> wrote:
When building kernel documentation sphinx emits the following warning
warning: No description found for parameter 'owner'
Add description for struct member 'owner'.
Signed-off-by Tobin C. Harding <[email protected]>
Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to play with it.
Thanks,
Jonathan
Quoted 16 lines
--- include/linux/iio/trigger.h | 1 + 1 file changed, 1 insertion(+)include/linux/iio/trigger.h +1
-0@@ -43,6 +43,7 @@ struct iio_trigger_ops {/** * struct iio_trigger - industrial I/O trigger device * @ops: [DRIVER] operations structure +* @owner: [INTERN] owner of this driver module * @id: [INTERN] unique id number * @name: [DRIVER] unique name * @dev: [DRIVER] associated device (if relevant)
PATCH v3 2/2 iio: add field identifier for @use_count kernel-doc
In reply to Tobin C. HardingKernel-doc for @use_count does not currently have a field identifier. All the rest of the fields do. @use_count is used internally and should not be accessed directly by the driver so it should be marked as so.
Add [INTERN] identifier to @use_count field.
--- include/linux/iio/trigger.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/iio/trigger.h +1 -1
@@ -49,7 +49,7 @@ struct iio_trigger_ops {* @dev: [DRIVER] associated device (if relevant) * @list: [INTERN] used in maintenance of global trigger list * @alloc_list: [DRIVER] used for driver specific trigger list -* @use_count: use count for the trigger +* @use_count: [INTERN] use count for the trigger. * @subirq_chip: [INTERN] associate 'virtual' irq chip. * @subirq_base: [INTERN] base number for irqs provided by trigger. * @subirqs: [INTERN] information about the 'child' irqs.
Signature · 1 line
2.7.4
Jonathan Cameron
maintainerRe: [PATCH v3 2/2] iio: add field identifier for @use_count kernel-doc
Quoted 7 lines · On Sun, 7 Jan 2018 08:56:06 +1100 "Tobin C. Harding" <[email protected]> wrote:
Kernel-doc for @use_count does not currently have a field identifier. All the rest of the fields do. @use_count is used internally and should not be accessed directly by the driver so it should be marked as so.
Add [INTERN] identifier to @use_count field.
Signed-off-by Tobin C. Harding <[email protected]>
Applied to the togreg branch of iio.git and pushed out as testing for the autobuilder to play with it.
Thanks,
Jonathan
Quoted 17 lines
--- include/linux/iio/trigger.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)include/linux/iio/trigger.h +1
-1@@ -49,7 +49,7 @@ struct iio_trigger_ops {* @dev: [DRIVER] associated device (if relevant) * @list: [INTERN] used in maintenance of global trigger list * @alloc_list: [DRIVER] used for driver specific trigger list -* @use_count: use count for the trigger +* @use_count: [INTERN] use count for the trigger. * @subirq_chip: [INTERN] associate 'virtual' irq chip. * @subirq_base: [INTERN] base number for irqs provided by trigger. * @subirqs: [INTERN] information about the 'child' irqs.