Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1686891pxb; Sat, 15 Jan 2022 20:51:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJzODisI89Gwt74u4ZDC9xXjzwP8mDkwlhkeBjl/P1JabSlk8I26ReqE5HVEltM0AyX+eyd0 X-Received: by 2002:a17:906:3986:: with SMTP id h6mr11952094eje.733.1642308669643; Sat, 15 Jan 2022 20:51:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642308669; cv=none; d=google.com; s=arc-20160816; b=ZM4GOvTCkv5ve9ne4x2bf6GenWIdP/A/CIzBYU6vTDRYBMGkFcufqbaxSeJ4XbrJvb HRV5+TGlCABVRsKbfJek236Gu/KcDff1ojwo86AcoRu/9fU99DVWox5QmWjdZHUHbzVP CYY3NmTzicb3uCMaPmiN0aD55rIrJG9lbTS4U7LRrVKQu4mnnl/mK51ASb/le22bjvk2 iOftMu+YZiy/PrfHLk4lQW6bqJ3YcAKf2Yea+XIpNKwuA7swKUfdFlEk9RwXrYqRvVaa nfhvGPUTgtgyvlGZFKKllsxJMzFv/G3u8eHqjsLdWGApdnzBNZ1kg3W2L8Nhqh5drn34 XwMQ== 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=PfCO0m1JXR5eRFHO1Bc0CPN6WuzbcI2sGeYMVOMBSFg=; b=ZQgTVeCAdBQRo0RBxYqUpEiNyU4X5iFNQyS2pE7I8NTYLPxQUUuITeWkF7KHyOXBWN FsCDhbtwhfEfoAjeiiSkzp9y8RAr1PdU3Jp+qB8ssWjWR+ah+iGCTu137PE2iqmzWCO4 zGD51L7RIZG5sB/rZg46Bs6aI2d9nU5NWDFyLI0Z7x+6tUAv2wIe07DrUURb5CrVkluE iFoee2nBX0zza07RSp4wqW7uFECJ54o4LaWD4wh9IYfd4c/phy4VAKCEUWs/A4aZ087v JYG5yYIllAG3SGSkCETJyH/6X+BSV7vwPM6Zk5QZbjDGqa+UzGBH6JD0LV38KwlTzfmE V0Iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=to7uyS9p; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id fj2si5507085ejc.940.2022.01.15.20.50.22; Sat, 15 Jan 2022 20:51:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=to7uyS9p; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231217AbiAOLcL (ORCPT + 99 others); Sat, 15 Jan 2022 06:32:11 -0500 Received: from ssl.serverraum.org ([176.9.125.105]:49863 "EHLO ssl.serverraum.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229812AbiAOLcK (ORCPT ); Sat, 15 Jan 2022 06:32:10 -0500 Received: from apollo.. (unknown [IPv6:2a02:810b:4340:43bf:4685:ff:fe12:5967]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id 4FE4A22246; Sat, 15 Jan 2022 12:32:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1642246328; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=PfCO0m1JXR5eRFHO1Bc0CPN6WuzbcI2sGeYMVOMBSFg=; b=to7uyS9pQqOKMKOZG0AxbTWf1Ou9dfZNuQIB919HKRZg1daYTmyxPoaMIDeUXaOKP8p/kE Dg+GdcL/NfYJ7CyZ/VVN6jnkdcalRjKBO/751oU42nuVAwPdYttd18vJmvZSqX0uE4h2/j ekQu6nOizHILm7quaoerZ0HXkLO/rjM= From: Michael Walle To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Rob Herring , Frank Rowand , Michael Walle , Stephen Rothwell Subject: [PATCH] of: base: add parameter doc to of_parse_phandle_with_optional_args() Date: Sat, 15 Jan 2022 12:31:56 +0100 Message-Id: <20220115113156.435037-1-michael@walle.cc> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org htmldocs produces warnings about the missing documentation. Add them. While at it, fix the typo in the referenced function name. Fixes: 952c4865d27a ("of: base: add of_parse_phandle_with_optional_args()") Reported-by: Stephen Rothwell Signed-off-by: Michael Walle --- include/linux/of.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/include/linux/of.h b/include/linux/of.h index eeb2910b51da..062a0d899403 100644 --- a/include/linux/of.h +++ b/include/linux/of.h @@ -1021,9 +1021,14 @@ static inline int of_parse_phandle_with_fixed_args(const struct device_node *np, /** * of_parse_phandle_with_optional_args() - Find a node pointed by phandle in a list + * @np: pointer to a device tree node containing a list + * @list_name: property name that contains a list + * @cells_name: property name that specifies phandles' arguments count + * @index: index of a phandle to parse out + * @out_args: optional pointer to output arguments structure (will be filled) * - * Same as of_parse_phandle_args() except that if the cells_name property is - * not found, cell_count of 0 is assumed. + * Same as of_parse_phandle_with_args() except that if the cells_name property + * is not found, cell_count of 0 is assumed. * * This is used to useful, if you have a phandle which didn't have arguments * before and thus doesn't have a '#*-cells' property but is now migrated to -- 2.30.2