* [PATCH] iio: fix SPHINX kernel-docs build warning
@ 2017-12-19 5:59 Tobin C. Harding
2017-12-29 17:34 ` Jonathan Cameron
0 siblings, 1 reply; 2+ messages in thread
From: Tobin C. Harding @ 2017-12-19 5:59 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 warnings
No description found for parameter 'iio_dev'
Excess function parameter 'indio_dev' description in 'iio_device_register'
These warnings are caused by a macro with a different argument identifier to the
one listed in the kernel-docs.
Change macro argument to be the same as the docs.
Signed-off-by: Tobin C. Harding <me@tobin.cc>
---
include/linux/iio/iio.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/linux/iio/iio.h b/include/linux/iio/iio.h
index 20b61347ea58..1234e5571d45 100644
--- a/include/linux/iio/iio.h
+++ b/include/linux/iio/iio.h
@@ -606,8 +606,8 @@ const struct iio_chan_spec
* iio_device_register() - register a device with the IIO subsystem
* @indio_dev: Device structure filled by the device driver
**/
-#define iio_device_register(iio_dev) \
- __iio_device_register((iio_dev), THIS_MODULE)
+#define iio_device_register(indio_dev) \
+ __iio_device_register((indio_dev), THIS_MODULE)
int __iio_device_register(struct iio_dev *indio_dev, struct module *this_mod);
void iio_device_unregister(struct iio_dev *indio_dev);
/**
--
2.7.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] iio: fix SPHINX kernel-docs build warning
2017-12-19 5:59 [PATCH] iio: fix SPHINX kernel-docs build warning Tobin C. Harding
@ 2017-12-29 17:34 ` Jonathan Cameron
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Cameron @ 2017-12-29 17:34 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 16:59:35 +1100
"Tobin C. Harding" <me@tobin.cc> wrote:
> When building kernel documentation sphinx emits the following warnings
>
> No description found for parameter 'iio_dev'
> Excess function parameter 'indio_dev' description in 'iio_device_register'
>
> These warnings are caused by a macro with a different argument identifier to the
> one listed in the kernel-docs.
>
> Change macro argument to be the same as the docs.
>
> Signed-off-by: Tobin C. Harding <me@tobin.cc>
Applied to the togreg branch of iio.git and pushed out as testing
for the autobuilders to play with it.
Thanks,
Jonathan
> ---
> include/linux/iio/iio.h | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/include/linux/iio/iio.h b/include/linux/iio/iio.h
> index 20b61347ea58..1234e5571d45 100644
> --- a/include/linux/iio/iio.h
> +++ b/include/linux/iio/iio.h
> @@ -606,8 +606,8 @@ const struct iio_chan_spec
> * iio_device_register() - register a device with the IIO subsystem
> * @indio_dev: Device structure filled by the device driver
> **/
> -#define iio_device_register(iio_dev) \
> - __iio_device_register((iio_dev), THIS_MODULE)
> +#define iio_device_register(indio_dev) \
> + __iio_device_register((indio_dev), THIS_MODULE)
> int __iio_device_register(struct iio_dev *indio_dev, struct module *this_mod);
> void iio_device_unregister(struct iio_dev *indio_dev);
> /**
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-12-29 17:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-19 5:59 [PATCH] iio: fix SPHINX kernel-docs build warning Tobin C. Harding
2017-12-29 17:34 ` Jonathan Cameron
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox