Skip to content

Commit 08e2e51

Browse files
tchardinggregkh
authored andcommitted
iio: fix SPHINX kernel-docs build warning
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> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent a28caa7 commit 08e2e51

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎include/linux/iio/iio.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -606,8 +606,8 @@ const struct iio_chan_spec
606606
* iio_device_register() - register a device with the IIO subsystem
607607
* @indio_dev: Device structure filled by the device driver
608608
**/
609-
#define iio_device_register(iio_dev) \
610-
__iio_device_register((iio_dev), THIS_MODULE)
609+
#define iio_device_register(indio_dev) \
610+
__iio_device_register((indio_dev), THIS_MODULE)
611611
int __iio_device_register(struct iio_dev *indio_dev, struct module *this_mod);
612612
void iio_device_unregister(struct iio_dev *indio_dev);
613613
/**

0 commit comments

Comments
 (0)