From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1FAB5C54734 for ; Tue, 27 Aug 2024 14:43:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=e02Ldx1Nm6LjRvTVX7lGVvPiCUyIsohGki7diQDc7wA=; b=c9WNLDPErxEj4eiJcmibExyIlV 1BaZzRnfMdMUpujB5bco3xKSwVPgnrufkh31FD07UYCdY8A0nKuFLttVYR6SY9AeYXM0FrpYF7FyR lBWi3MjSp8QdZ/vlxQ3k9fmVgAovOgnHVPsjGZsXYN3TmSRCFEuR//DYzIAyQ6khp+anid/NZwEvo JOvWguxUD7R3dQxf22Xgb//RXbmTVSb460A5awSm6BdUV5AEDB3VSQ5bsLi3cNUfiDPVA/e3jL4Qi h8zUpcztRranFIp/IewnqEdmHJl+Ip9UprL09NLMyjsfY5O2Rmj9BtLMFuO0XxkDO3ZNlq1MBd/R8 PKJsaeeg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sixPL-0000000BhNz-472i; Tue, 27 Aug 2024 14:42:55 +0000 Received: from mgamail.intel.com ([198.175.65.17]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sixOW-0000000Bh6e-1SiP for linux-arm-kernel@lists.infradead.org; Tue, 27 Aug 2024 14:42:05 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1724769724; x=1756305724; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=fTLRWBxCzi6tYnTRLTq3xSwtBJMJ9mfKszUdbWqSh4s=; b=j0R2E5B9qbyCvubbJRPe1wrXMgkzduilARwUABEXPcHiB/nDJqLUTltF 5FA2NgcczvEqCSnz9Eg92OKRhM2PMrfIDSgBcAi2HaUlr14HgG88dT0jt siQYpyBmRz5RHpxG0YrG3VaeJKtBeAyjk08dcFNZWLoqnpFpcYFP4KrPz xXqE6zMuJnatv6BcPdUdoPFCX6lEAJOweQzjdkqdS1mVZT/bzAjlQ+eth M3bQpHsCiPKfUCWYJgMFGgHx8Sj41suYuhcOKoJbkqiv5ukHjPb87xh3S a9FL6ulOju5+By2RBVVY8bgLlqlIVSCUOh7c6AmF4Tqzmhg/P/ZJXPoMM g==; X-CSE-ConnectionGUID: e473eERhTgulkBptLi6isw== X-CSE-MsgGUID: Py41lEHuQyqkzDIwBGA5DA== X-IronPort-AV: E=McAfee;i="6700,10204,11177"; a="23426040" X-IronPort-AV: E=Sophos;i="6.10,180,1719903600"; d="scan'208";a="23426040" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by orvoesa109.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Aug 2024 07:42:03 -0700 X-CSE-ConnectionGUID: t5of7k9UR5O/D0/9m2eo3A== X-CSE-MsgGUID: R2eSpCdwS+KyPiZt5YToHQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,180,1719903600"; d="scan'208";a="62599370" Received: from smile.fi.intel.com ([10.237.72.54]) by fmviesa007.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Aug 2024 07:42:02 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.98) (envelope-from ) id 1sixOR-00000002IUf-1lp5; Tue, 27 Aug 2024 17:41:59 +0300 Date: Tue, 27 Aug 2024 17:41:59 +0300 From: Andy Shevchenko To: Chen-Yu Tsai Cc: Mark Brown , Liam Girdwood , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 3/8] regulator: core: Fix incorrectly formatted kerneldoc "Return" sections Message-ID: References: <20240827095550.675018-1-wenst@chromium.org> <20240827095550.675018-4-wenst@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240827095550.675018-4-wenst@chromium.org> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240827_074204_463721_C424F29C X-CRM114-Status: GOOD ( 14.74 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Aug 27, 2024 at 05:55:43PM +0800, Chen-Yu Tsai wrote: > kernel-doc complains about missing "Return" section for many documented > functions in the regulator core. Many of them actually have descriptions > about the return values, just not in the format kernel-doc wants. > > Convert these to use the proper "Return:" section header. The existing > descriptions have been reworded and moved around to fit the grammar and > formatting. > > In a few cases where the functions don't call even more functions > and the error numbers are known, those are documented in detail. ... > + * Return: pointer the &struct device_node corresponding to the regulator if found, "pointer to the" Same elsewhere. > + * or %NULL if not found. ... > + * Return: pointer to a &struct regulator corresponding to the regulator > + * producer, or ERR_PTR() encoded negative error number. (I'm not sure of definite vs. indefinite article, though. Perhaps you need to consult with native speaker.) ... > + * producer, or ERR_PTR() encoded negative error number. Okay, maybe "negative error number" to be used everywhere (see previous email), the main point is a) to make it clear that it's negative, and b) be consistent with a term across the subsystem. -- With Best Regards, Andy Shevchenko