From patchwork Thu Oct 26 05:39:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 158401 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:d641:0:b0:403:3b70:6f57 with SMTP id cy1csp444089vqb; Wed, 25 Oct 2023 22:39:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEKG2vlwpFLCcOFg/iEH+esyj6LZiozn8u2RYXOAmtstvGnYTCGFzTbcCYyuWz8bJ5NLoiD X-Received: by 2002:a25:3489:0:b0:d7a:d716:233c with SMTP id b131-20020a253489000000b00d7ad716233cmr16492845yba.41.1698298777131; Wed, 25 Oct 2023 22:39:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698298777; cv=none; d=google.com; s=arc-20160816; b=H9HqzvCeDO+cgV39QBPT+D0Uz57RKRuXj3GSnBzWPkCdjINFrqXvouqhH8p2vAPQLE /0MwuMK8K/EgLwzlgVb+vwqs+jihnSpP+5neM1cVaA7S/WPaSrv6vyJIRd8hyztowIpH HVPEEKmMMnEkvqYjqvnTwoxBcmAghTwa/tIx/qnINkPYjFuq2b9I/pLjDep0PfBNCkt2 8dMC+Kyn5/TcRK2u9X5XZtK8hgX+eMNHf7jR/8hikE5OQA8JquqF7TxdrruffYTLqQKv 0IUNAAqYP2pYqCEGLR3y2BZ2YoRKwtOABvWBwoO3URKhJI2yHO+k7URzzO4Y+SyuXUFd KiPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=b3TZe4+33zPofg5TBxkNYMDXDP3VgfP6XYFLcWONn6E=; fh=uyD7ITAmStbGw7hmcNPmRqQU3ZtE1k+YOUbRrxZiLVQ=; b=L3OafBIMvxRR2FOtftkZM7UJ+1zm5BCDKSANwhmkD1+WUzjZj0SukpzgLeEKVzQqvf FT/H/rvFDAxlNdBz0xZt2jEtbSMuUDs9Qj0AkTmKirxzL+6OUxU3I8asRYWuc/XQlyAK eNB4uh+wg6wxS5DymoUW1tqSuXEZpsiDOjR5ISa2fFHQeSMvvuJdovfvX12hcO8MQEST E6rQ9pIdRFEo7qPSsbR9f7PXAonO8qWiTNoKAiqdbmdrJQg9UvuF+L2CyLLqoprcV8KG j7y9IRo38noICBeYCUbdSVTDCClv9tW8bBfwZ3HDZRq4eztafHX6rAa7p+XXvJTtHo/+ huTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=NQIwHCoi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id d4-20020a25cd04000000b00da086e8ae8fsi3120560ybf.621.2023.10.25.22.39.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 22:39:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=NQIwHCoi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 7BC4C802658E; Wed, 25 Oct 2023 22:39:34 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343564AbjJZFjW (ORCPT + 26 others); Thu, 26 Oct 2023 01:39:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229554AbjJZFjV (ORCPT ); Thu, 26 Oct 2023 01:39:21 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB851115; Wed, 25 Oct 2023 22:39:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=b3TZe4+33zPofg5TBxkNYMDXDP3VgfP6XYFLcWONn6E=; b=NQIwHCoi229PR2hFsF1HUxuf+p mchbBWzenhNv6nLu24kNfumlHsbrnuCkBCXrlSDe7j49nmJV5/Yu6mzXaF3bxYF9hcKEryeg2bPOZ ys44y7Uh0o9N0b+XA2fuPht3WRBn9E2fYjt6COnTrgS+5roSfpvrZCE6l4u/A6ZPT69+KQoBmBAfG hhgezQ5UBwmmtKV+rbkWqNbXBGNNaXd6WkVkXSGe/Ei1Av1GcboyqTmlVuf5f0RFX1+kFLUX0p7U5 xhZcGbUn7mZJuETgAy65kXa575jD2/XrW6wQiDCvyrnzQFbK+qGw2i+JP85ranlz2LS41zopmgJ8o sdzOGedg==; Received: from [50.53.46.231] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qvt5T-00DiU7-1V; Thu, 26 Oct 2023 05:39:19 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , kernel test robot , Krzysztof Adamski , Andi Shyti , Wolfram Sang , linux-i2c@vger.kernel.org Subject: [PATCH] i2c: axxia: eliminate kernel-doc warnings Date: Wed, 25 Oct 2023 22:39:18 -0700 Message-ID: <20231026053918.17347-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 25 Oct 2023 22:39:34 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780795338772277683 X-GMAIL-MSGID: 1780795338772277683 Add kernel-doc for 'slave' and 'irq' in struct axxia_i2c_dev. Drop kernel-doc notation ("/**") for static functions since they are not usually documented with kernel-doc. Prevents these kernel-doc warnings: i2c-axxia.c:150: warning: Function parameter or member 'slave' not described in 'axxia_i2c_dev' i2c-axxia.c:150: warning: Function parameter or member 'irq' not described in 'axxia_i2c_dev' i2c-axxia.c:172: warning: Function parameter or member 'ns' not described in 'ns_to_clk' i2c-axxia.c:172: warning: Function parameter or member 'clk_mhz' not described in 'ns_to_clk' i2c-axxia.c:172: warning: No description found for return value of 'ns_to_clk' i2c-axxia.c:271: warning: Function parameter or member 'idev' not described in 'axxia_i2c_empty_rx_fifo' i2c-axxia.c:271: warning: No description found for return value of 'axxia_i2c_empty_rx_fifo' i2c-axxia.c:303: warning: Function parameter or member 'idev' not described in 'axxia_i2c_fill_tx_fifo' Signed-off-by: Randy Dunlap Reported-by: kernel test robot Closes: https://lore.kernel.org/all/202310181049.Vo62moV1-lkp@intel.com/ Cc: Krzysztof Adamski Cc: Andi Shyti Cc: Wolfram Sang Cc: linux-i2c@vger.kernel.org Reviewed-by: Andi Shyti --- drivers/i2c/busses/i2c-axxia.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff -- a/drivers/i2c/busses/i2c-axxia.c b/drivers/i2c/busses/i2c-axxia.c --- a/drivers/i2c/busses/i2c-axxia.c +++ b/drivers/i2c/busses/i2c-axxia.c @@ -131,6 +131,8 @@ * @i2c_clk: clock reference for i2c input clock * @bus_clk_rate: current i2c bus clock rate * @last: a flag indicating is this is last message in transfer + * @slave: associated &i2c_client + * @irq: platform device IRQ number */ struct axxia_i2c_dev { void __iomem *base; @@ -165,7 +167,7 @@ static void i2c_int_enable(struct axxia_ writel(int_en | mask, idev->base + MST_INT_ENABLE); } -/** +/* * ns_to_clk - Convert time (ns) to clock cycles for the given clock frequency. */ static u32 ns_to_clk(u64 ns, u32 clk_mhz) @@ -263,7 +265,7 @@ static int i2c_m_recv_len(const struct i return (msg->flags & I2C_M_RECV_LEN) != 0; } -/** +/* * axxia_i2c_empty_rx_fifo - Fetch data from RX FIFO and update SMBus block * transfer length if this is the first byte of such a transfer. */ @@ -295,7 +297,7 @@ static int axxia_i2c_empty_rx_fifo(struc return 0; } -/** +/* * axxia_i2c_fill_tx_fifo - Fill TX FIFO from current message buffer. * @return: Number of bytes left to transfer. */