Skip to contentSkip to conversation

fix kernel-docs for struct iio_trigger

PATCH RESEND Superseded Tobin C. Harding 2 participants 5 messages Jan 6, 2018 IIO

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

cover fix kernel-docs for struct iio_trigger

This set is a re-spin of

[PATCH] iio: add kernel-doc '@owner'

Patch 1 is the original patch. Adds a kernel-doc description for field @owner clearing a sphinx build warning when building kernel documentation.

Patch 2 adds field identifier for @use_count. Currently this field has a description but lacks a field identifier.

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
#1 lore raw

PATCH RESEND 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
index 7d5e44518379..390789d43369 100644
@@ -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
#4 lore raw

PATCH RESEND 2/2 iio: add field identifier for @use_count kernel-doc

In reply to Tobin C. Harding

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.

---
 include/linux/iio/trigger.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/iio/trigger.h +1 -1
index 390789d43369..b19b7204ef84 100644
@@ -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
maintainer
#2 lore raw

Re: [PATCH 1/2 RESEND] iio: add kernel-doc for field @owner

In reply to Tobin C. Harding
Quoted 7 lines · On Sat, 6 Jan 2018 12:31:57 +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'.

This isn't a resend. It's a version 2. Please resend with the changes from v1 clearly stated.

If you were resending you should say why as well in the cover letter!

Jonathan

Quoted 16 lines
---
 include/linux/iio/trigger.h | 1 +
 1 file changed, 1 insertion(+)
include/linux/iio/trigger.h +1 -0
index 7d5e44518379..390789d43369 100644
@@ -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)
#3 lore raw

Re: [PATCH 1/2 RESEND] iio: add kernel-doc for field @owner

Quoted 5 lines · Jonathan Cameron
Quoted 2 lines · On Sat, 6 Jan 2018 12:31:57 +1100 "Tobin C. Harding" <[email protected]> wrote:

When building kernel documentation sphinx emits the following warning

Quoted 8 lines
Quoted 5 lines

warning: No description found for parameter 'owner'

Add description for struct member 'owner'.

This isn't a resend. It's a version 2. Please resend with the changes from v1 clearly stated.

Oh, you are right it should have been a version 2. The 'resend' referred to the single cover letter I sent (forgot --to-cover --cc-cover flags to git send-email).

Quoted 1 line

If you were resending you should say why as well in the cover letter!

My mistake, sloppy work.

Quoted 1 line

Jonathan

Thanks for your patience. Will fix up and re-send (as v3 ;)

thanks,
Tobin