提交 08e2e51f 编写于 作者: T Tobin C. Harding 提交者: Greg Kroah-Hartman

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: NTobin C. Harding <me@tobin.cc>
Signed-off-by: NJonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 a28caa7b
...@@ -606,8 +606,8 @@ const struct iio_chan_spec ...@@ -606,8 +606,8 @@ const struct iio_chan_spec
* iio_device_register() - register a device with the IIO subsystem * iio_device_register() - register a device with the IIO subsystem
* @indio_dev: Device structure filled by the device driver * @indio_dev: Device structure filled by the device driver
**/ **/
#define iio_device_register(iio_dev) \ #define iio_device_register(indio_dev) \
__iio_device_register((iio_dev), THIS_MODULE) __iio_device_register((indio_dev), THIS_MODULE)
int __iio_device_register(struct iio_dev *indio_dev, struct module *this_mod); int __iio_device_register(struct iio_dev *indio_dev, struct module *this_mod);
void iio_device_unregister(struct iio_dev *indio_dev); void iio_device_unregister(struct iio_dev *indio_dev);
/** /**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册