Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp420195rwo; Fri, 21 Jul 2023 14:13:07 -0700 (PDT) X-Google-Smtp-Source: APBJJlEopjSbPpc4wPRudJ6JxDPSr+4DkgnCciHyskXyJfpcmSv8oTv0qqUlThikLY58o1Q4I0pJ X-Received: by 2002:a17:906:e:b0:991:d5ad:f1a7 with SMTP id 14-20020a170906000e00b00991d5adf1a7mr2816352eja.51.1689973987345; Fri, 21 Jul 2023 14:13:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689973987; cv=none; d=google.com; s=arc-20160816; b=HzAfB2vxyGnQQ+WJtF/h/9JL5qKhX/8TVhGPmfg9T1h1x9qnOtxliIoqrRTgdlnXCE U/F/HU5askm/Evsp9ZYifdz6FTDve/SLW3MAFFKR4ZwZ5ekk+hiM+MBWfImOIl/N8TUu ZdZicngTdum4b6rFQr4rPWWrO4x7MxcVU4vQFbCWNXrAXRCtF3Vhr/idJqHdBrmuqyk1 tz6DSr8syVCtm5Pg4Gv8f5O+YlWSpeEBSIrPgebL4y+qwpwlqbJEiLklkc8SBaMxsQmq a8t1qn6UxrRYt9BK2fgZuuwi9mTE3/zjnh5kyw/Una+tLYGOIiCKG67N5aIL0lf8G81y RTXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=pPiT0nNC4yMJYFJN2WXxCYRGy4DbhNU+d1P34vtAgyk=; fh=wqVwazo1RsrxEv1SdcnYmsBTFvWOF4c/aSsol6r4vo8=; b=0aAe1dE7YTxEva9pYGoEtHpFfvHQBy4+fbK/yl2+A4O72fudQJ4XmTSZdwEEEizDeq OLC/V0ED9e2odvSCJFaGnoeurF0aer2h7/DKalIcr64xNb/z/JREmO8Zwxk46MmGN1Ow dBhCWQN6qgzKryncBCqlvRxlOl1SLgnxjtgQs+/4gF+0zgfRmXzFtip+lXO9uJIs08Vl rzQwHc7KMndzYB5Xv7i579Op4C08PpTOnXq1g6O0cyBV5wgmKTEooXewmsw8PanOYRHO 97rcv5lBzf9xVvwTzd634O9agDYmx2W990x/UcW+JMkf2up9VE3jlQRliHyWeNvh0KjS 0diA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=FWmeRKS6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k1-20020a1709065fc100b0099b7a166dccsi129274ejv.308.2023.07.21.14.12.42; Fri, 21 Jul 2023 14:13:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=FWmeRKS6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230232AbjGUUsl (ORCPT + 99 others); Fri, 21 Jul 2023 16:48:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229529AbjGUUsj (ORCPT ); Fri, 21 Jul 2023 16:48:39 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8EC4130E2; Fri, 21 Jul 2023 13:48:37 -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: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=pPiT0nNC4yMJYFJN2WXxCYRGy4DbhNU+d1P34vtAgyk=; b=FWmeRKS65dQdZHKeV7ZDq8W7Zw zIyV0iqawLDivnEwU1jfsv9A/8JBw9ibISpUZju7SR/zTwOClyAxgPJ4kBrbCUVhcvkJjQVSWnVzn A6uPFQvwM88H6feTfA4iJTyj9nzdEHF5j7EvrkvgYueQ6ldjMowTu3HrroOhBK26KmQ5hxfExInc0 ExvIxWju8aNE6o2lBrnhwXwE1cztXIJzrURGDXxZZmcSp9NOgpFuOquqTN3OLkAPPakb9jGKPuRkS Dn9T3LCpM8z87Vgxzkm6LvrWpnZLxF7/mbZS/EwgM8PlCdPwGzBNwMxrNa8tKS+oBKeLdfex8YA1i ZJxDl8Pw==; Received: from [2601:1c2:980:9ec0::2764] by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qMx3E-00F5Cu-2a; Fri, 21 Jul 2023 20:48:36 +0000 Message-ID: Date: Fri, 21 Jul 2023 13:48:34 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH v2 6/8] iio: core: Fix issues and style of the comments Content-Language: en-US To: Andy Shevchenko , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Jonathan Cameron , Lars-Peter Clausen , Nuno Sa References: <20230721170022.3461-1-andriy.shevchenko@linux.intel.com> <20230721170022.3461-7-andriy.shevchenko@linux.intel.com> From: Randy Dunlap In-Reply-To: <20230721170022.3461-7-andriy.shevchenko@linux.intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/21/23 10:00, Andy Shevchenko wrote: > The `scripts/kernel-doc -v -none -Wall` reports several issues > with the kernel doc in IIO core C file. Update the comments > accordingly. > > Signed-off-by: Andy Shevchenko > Reviewed-by: Nuno Sa > --- > drivers/iio/industrialio-core.c | 57 +++++++++++++++++++++------------ > 1 file changed, 37 insertions(+), 20 deletions(-) > > diff --git a/drivers/iio/industrialio-core.c b/drivers/iio/industrialio-core.c > index 66cea23df7e0..a9b9804097ab 100644 > --- a/drivers/iio/industrialio-core.c > +++ b/drivers/iio/industrialio-core.c > @@ -594,7 +608,7 @@ EXPORT_SYMBOL_GPL(iio_show_mount_matrix); > * If device is assigned no mounting matrix property, a default 3x3 identity > * matrix will be filled in. > * > - * Return: 0 if success, or a negative error code on failure. > + * Returns: 0 if success, or a negative error code on failure. > */ > int iio_read_mount_matrix(struct device *dev, struct iio_mount_matrix *matrix) > { > @@ -1750,7 +1767,7 @@ static int iio_chrdev_open(struct inode *inode, struct file *filp) > * @inode: Inode structure pointer for the char device > * @filp: File structure pointer for the char device > * > - * Return: 0 for successful release > + * Returns: 0 for successful release. > */ As documented in Documentation/doc-guide/kernel-doc.rst: The return value, if any, should be described in a dedicated section named ``Return``. However, as you (and I) have found, "Returns:" also works as a section name. Reviewed-by: Randy Dunlap Thanks. -- ~Randy