Skip to contentSkip to conversation

iio: add kernel-doc '@owner'

PATCH In review Tobin C. Harding 2 participants 3 messages Dec 19, 2017 – Dec 30, 2017 IIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iio: add kernel-doc '@owner'

When building kernel documentation sphinx emits the following warning

warning: No description found for parameter 'owner'

Add description for struct member 'owner'.

---

I couldn't work out what DRIVER/INTERN were for so I took a guess.

 include/linux/iio/trigger.h | 1 +
 1 file changed, 1 insertion(+)
include/linux/iio/trigger.h +1 -0
index 7d5e44518379..d884b5099cd0 100644
@@ -43,6 +43,7 @@ struct iio_trigger_ops {
 /**
  * struct iio_trigger - industrial I/O trigger device
  * @ops:		[DRIVER] operations structure
+ * @owner:		[DRIVER] 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
maintainer
#1 lore raw
Quoted 10 lines · On Tue, 19 Dec 2017 17:17:50 +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'.

---

I couldn't work out what DRIVER/INTERN were for so I took a guess.

Try the other one ;)

They refer to whether the driver should be directly accessing the field or not. In the case of owner they shouldn't be so it is INTERN.

Were I writing the subsystem from scratch again I'd probably make the separation of the two cleaner, but there we are.

Jonathan

Quoted 16 lines
 include/linux/iio/trigger.h | 1 +
 1 file changed, 1 insertion(+)
include/linux/iio/trigger.h +1 -0
index 7d5e44518379..d884b5099cd0 100644
@@ -43,6 +43,7 @@ struct iio_trigger_ops {
 /**
  * struct iio_trigger - industrial I/O trigger device
  * @ops:		[DRIVER] operations structure
+ * @owner:		[DRIVER] owner of this driver module
  * @id:			[INTERN] unique id number
  * @name:		[DRIVER] unique name
  * @dev:		[DRIVER] associated device (if relevant)
#2 lore raw
Quoted 12 lines · Jonathan Cameron
Quoted 9 lines · On Tue, 19 Dec 2017 17:17:50 +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'.

---

Quoted 8 lines
Quoted 1 line

I couldn't work out what DRIVER/INTERN were for so I took a guess.

Try the other one ;)

They refer to whether the driver should be directly accessing the field or not. In the case of owner they shouldn't be so it is INTERN.

Were I writing the subsystem from scratch again I'd probably make the separation of the two cleaner, but there we are.

Thanks, will re-spin after Christmas break.

Tobin