From patchwork Tue Dec 19 05:59:35 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tobin Harding X-Patchwork-Id: 10122541 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 72F7A603B5 for ; Tue, 19 Dec 2017 05:59:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 62A9328D01 for ; Tue, 19 Dec 2017 05:59:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 54FE92901D; Tue, 19 Dec 2017 05:59:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AB47E28D01 for ; Tue, 19 Dec 2017 05:59:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761218AbdLSF7q (ORCPT ); Tue, 19 Dec 2017 00:59:46 -0500 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:54795 "EHLO out3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761211AbdLSF7p (ORCPT ); Tue, 19 Dec 2017 00:59:45 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id A4C0A20AF8; Tue, 19 Dec 2017 00:59:44 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Tue, 19 Dec 2017 00:59:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tobin.cc; h=cc :date:from:message-id:subject:to:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=wSmxXVUYDSP21Me+GJk25+ouuKpMEdAhcNVTLsRku X0=; b=cDm3acf+kSQ6Wykxlr9jL7oFaDu82uv6wMj2Kf6fP3qvAStqaeGRswqQy g8k+1FCe6awXbC1uq4/O1oEHpugrp58Kr5vOZSjpko2Jf/Vv70gB56/yHibiloWP DGT62vq3bpAalQaftEVn03G4pY9Si+Uwfb0+PJvmdLLmivjRq7sctyslIgSUStEW NXsGDaznSLHyS0tgq/7Oe75cwt8M27QnBemZHjMqavTYsblKwQkJDMau/prlryjQ OhHzNAe7Vxn6xipxVhTm5drlhCz9c1P5TJdsQkGuXNeEZkz9c6dovX+l8nAkH0Kw F1Zt9MB+AZ0RrJbRr4+u3OSxbK5OQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:message-id:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=wSmxXVUYDSP21Me+G Jk25+ouuKpMEdAhcNVTLsRkuX0=; b=X6q3bd3mOn6If7OieuRc/3kGuKxsmDV4q WWJYaSYSPWpLju2jqqOMcJJH11DxgwGcYG5OjE+lEqraXihxdRFY8C+7ZQH1PRUi LxF6YoFagxDts5kkmdWmVBQZNBsjISWvFIxlfNc91bbD8s2m3p+pmgR8xuM4627E UPv57/P9TnVV5cC0jIOxLC37YN9Lv+58yrCocO7GGJsenHEnuNqajvP04ez3ODr8 CYzCz0yselmnpP6+QCEvgENuAI1p8Bv/HhL5SYtuPenMFKVJyNtNYvhzmbAxb+BX Y6iSUT454shNdH5rSZtoKfea4recyxeMsrQ9YV9n6jTqalrJviD5Q== X-ME-Sender: Received: from localhost (106-69-192-66.dyn.iinet.net.au [106.69.192.66]) by mail.messagingengine.com (Postfix) with ESMTPA id EBD5324519; Tue, 19 Dec 2017 00:59:43 -0500 (EST) From: "Tobin C. Harding" To: Jonathan Cameron Cc: "Tobin C. Harding" , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] iio: fix SPHINX kernel-docs build warning Date: Tue, 19 Dec 2017 16:59:35 +1100 Message-Id: <1513663175-25163-1-git-send-email-me@tobin.cc> X-Mailer: git-send-email 2.7.4 Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- 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); /**