Received: by 10.223.164.202 with SMTP id h10csp1174371wrb; Fri, 17 Nov 2017 15:27:56 -0800 (PST) X-Google-Smtp-Source: AGs4zMY6tjUCLEfrYyDQDT/7aYraOeuZd3Q/Awfv+oRxFEs1V9ier2M07tUGBkrqrt6JDYtHQPwf X-Received: by 10.98.133.65 with SMTP id u62mr3631199pfd.22.1510961276413; Fri, 17 Nov 2017 15:27:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510961276; cv=none; d=google.com; s=arc-20160816; b=rl2yyzsJ+e2GGMC/28/A3Ku/HZuE4V8jU8kqbBob7v0s3AB7EGtY7Lx+0T1H/yTYuL hsSii2D4TeYhfUdfQxUlcBX3XvXQD0CnsB5Kam06EaWh5L+8mfcCc+xJ+mTm/z7uJHI+ hBFjwmIOiq/lZBoznKfrvYiwdEmLtf2hRS1FA7hBuTXmFK/W4u8G+FfY+LTzNwptzIaY tr20WdFBFnn/EH+ZjCrSz5V3+F9qgYbrZL/PEKKeY+vaXN09nSqiRbyt7kkyvaNIEARE tT3uT0WGtdkYzm9SFU28wa2k8P1Cy9JRr+faA3PBc60W9PFE1x1nH83lMsl1sM8rMFfg pEIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dmarc-filter:dkim-signature:dkim-signature :arc-authentication-results; bh=aupWXvkSTBYN3MO7a+8bIKxEDOKShHm1hXvnomJrNBw=; b=Y5qapyDdBhHbXCuZThESfhYItExGW+iU9X2GNPJunET1abLc+npgjuB/9nAkpBgyT6 ZsoWQ2C590s7J2PKm7qqZqKhjhCWCKyx8UXADUt7mhMY5PFSfWGiQkHKf/fgLsb8O86f /iutSZ+oW9SPgyrtdB50MpMACAYnPwpzgYn08KrLieSkoZEvOTa6VIW77NbsUpoxZUiN cnQP/VLvNfSAnbASIWzZBPRqA2Gib/wkJQ8G3CeSg/WgDRAyMyI34JTok/SPqPmlIwFe I94Ajvj+Zj8XqFJAN4GWCLQWH5sIOQftjcgxPlOlhQL8wD6g/R2ogd9IMvaKjrOIg658 ps7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=V2DXGPnO; dkim=pass header.i=@codeaurora.org header.s=default header.b=V2DXGPnO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g68si3896435pfc.403.2017.11.17.15.27.32; Fri, 17 Nov 2017 15:27:56 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=V2DXGPnO; dkim=pass header.i=@codeaurora.org header.s=default header.b=V2DXGPnO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965922AbdKQQx3 (ORCPT + 93 others); Fri, 17 Nov 2017 11:53:29 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:34556 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750745AbdKQQxY (ORCPT ); Fri, 17 Nov 2017 11:53:24 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 9CB8B60584; Fri, 17 Nov 2017 16:53:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1510937603; bh=5HUmszJ8jCOuoU0X0+ezobB3F9SXKKNSP6mcRLo8l1k=; h=From:To:Cc:Subject:Date:From; b=V2DXGPnORZ7siAbAsr8OMgVlM+mlifhgRXa4/nMNfpVrGmy6DAO+j91Jj829IJUFt 7gFwIKu7bVobagd1q252aYHi5QbOT6+FrgWVkw63HrG26rgcrFb4ob4R4Ob7t3RxNV tPygGUHcTtzeuLQIHGBy3XAnJ23ob5mlGbTerwzc= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from sboyd-linux.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: sboyd@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id C1C6360584; Fri, 17 Nov 2017 16:53:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1510937603; bh=5HUmszJ8jCOuoU0X0+ezobB3F9SXKKNSP6mcRLo8l1k=; h=From:To:Cc:Subject:Date:From; b=V2DXGPnORZ7siAbAsr8OMgVlM+mlifhgRXa4/nMNfpVrGmy6DAO+j91Jj829IJUFt 7gFwIKu7bVobagd1q252aYHi5QbOT6+FrgWVkw63HrG26rgcrFb4ob4R4Ob7t3RxNV tPygGUHcTtzeuLQIHGBy3XAnJ23ob5mlGbTerwzc= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org C1C6360584 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=sboyd@codeaurora.org From: Stephen Boyd To: Rob Herring , Frank Rowand Cc: linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, devicetree@vger.kernel.org, Randy Dunlap Subject: [PATCHv2] of: Document exactly what of_find_node_by_name() puts Date: Fri, 17 Nov 2017 08:53:21 -0800 Message-Id: <20171117165321.18591-1-sboyd@codeaurora.org> X-Mailer: git-send-email 2.15.0.164.g4123bcaed089 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It isn't clear if this function of_node_put()s the 'from' argument, or the node it searches. Clearly indicate which variable is touched. Fold in some more fixes from Randy too because we're in the area. Cc: Randy Dunlap Signed-off-by: Stephen Boyd --- Changes from v1: * Fold in Randy's fixes drivers/of/base.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/of/base.c b/drivers/of/base.c index 63897531cd75..4368a878df88 100644 --- a/drivers/of/base.c +++ b/drivers/of/base.c @@ -863,10 +863,10 @@ EXPORT_SYMBOL(of_find_node_opts_by_path); /** * of_find_node_by_name - Find a node by its "name" property - * @from: The node to start searching from or NULL, the node + * @from: The node to start searching from or NULL; the node * you pass will not be searched, only the next one - * will; typically, you pass what the previous call - * returned. of_node_put() will be called on it + * will. Typically, you pass what the previous call + * returned. of_node_put() will be called on @from. * @name: The name string to match against * * Returns a node pointer with refcount incremented, use -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project From 1584347503923064056@xxx Fri Nov 17 20:45:22 +0000 2017 X-GM-THRID: 1583732270078976484 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread