* [PATCH] iio: add kernel-doc '@owner'
@ 2017-12-19 6:17 Tobin C. Harding
2017-12-29 17:36 ` Jonathan Cameron
0 siblings, 1 reply; 3+ messages in thread
From: Tobin C. Harding @ 2017-12-19 6:17 UTC (permalink / raw)
To: Jonathan Cameron
Cc: Tobin C. Harding, Hartmut Knaack, Lars-Peter Clausen,
Peter Meerwald-Stadler, linux-iio, linux-kernel
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 <me@tobin.cc>
---
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(+)
diff --git a/include/linux/iio/trigger.h b/include/linux/iio/trigger.h
index 7d5e44518379..d884b5099cd0 100644
--- a/include/linux/iio/trigger.h
+++ b/include/linux/iio/trigger.h
@@ -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.7.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] iio: add kernel-doc '@owner'
2017-12-19 6:17 [PATCH] iio: add kernel-doc '@owner' Tobin C. Harding
@ 2017-12-29 17:36 ` Jonathan Cameron
2017-12-30 9:58 ` Tobin C. Harding
0 siblings, 1 reply; 3+ messages in thread
From: Jonathan Cameron @ 2017-12-29 17:36 UTC (permalink / raw)
To: Tobin C. Harding
Cc: Hartmut Knaack, Lars-Peter Clausen, Peter Meerwald-Stadler,
linux-iio, linux-kernel
On Tue, 19 Dec 2017 17:17:50 +1100
"Tobin C. Harding" <me@tobin.cc> 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 <me@tobin.cc>
> ---
>
> 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
>
> include/linux/iio/trigger.h | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/include/linux/iio/trigger.h b/include/linux/iio/trigger.h
> index 7d5e44518379..d884b5099cd0 100644
> --- a/include/linux/iio/trigger.h
> +++ b/include/linux/iio/trigger.h
> @@ -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)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] iio: add kernel-doc '@owner'
2017-12-29 17:36 ` Jonathan Cameron
@ 2017-12-30 9:58 ` Tobin C. Harding
0 siblings, 0 replies; 3+ messages in thread
From: Tobin C. Harding @ 2017-12-30 9:58 UTC (permalink / raw)
To: Jonathan Cameron
Cc: Hartmut Knaack, Lars-Peter Clausen, Peter Meerwald-Stadler,
linux-iio, linux-kernel
On Fri, Dec 29, 2017 at 05:36:40PM +0000, Jonathan Cameron wrote:
> On Tue, 19 Dec 2017 17:17:50 +1100
> "Tobin C. Harding" <me@tobin.cc> 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 <me@tobin.cc>
> > ---
> >
> > 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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-12-30 9:58 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-19 6:17 [PATCH] iio: add kernel-doc '@owner' Tobin C. Harding
2017-12-29 17:36 ` Jonathan Cameron
2017-12-30 9:58 ` Tobin C. Harding
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox