Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp1488345ybc; Tue, 12 Nov 2019 22:44:59 -0800 (PST) X-Google-Smtp-Source: APXvYqwrZN2yD0P1r8gVmnZeqcUizq/zJamIr/5i/1GkGRvb53zt0SIJ2a831yYLTuQOf0X6W43b X-Received: by 2002:a17:906:3606:: with SMTP id q6mr1166709ejb.307.1573627498914; Tue, 12 Nov 2019 22:44:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573627498; cv=none; d=google.com; s=arc-20160816; b=S9lS5TgHTaBJxHe1yndE7AvVDHyQk5Vr9w5fHojrvVJKfl1TIcRkSd1PozvYu+390Q kn1N2oZXrxNbKhNh6bzJNmsjAG2X8tP23E09dSedKq/FtHM4GRpLrFC9LG6wyA2BfhEd alP3iqiO3RthW+NUi1GMz7qc4dIH85rPuUx8X0BaxiI6sr9RPZtrvAL6oUyURoBuklpv l82IV9+tGjErXha70d+HmrCUJfWh+fNvd4OgZLStlWJhqL0aKIqCBUaOpVMLNpbgvXL+ 4/RqohYn9ggOJs3CKpaPC7RAgvvE2hdEeItDO4SimZK5GogYcP579tSmM+Bq5YAu/tjs tgUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date; bh=eleBs2EZgeGxIdjnJxRUDgNR0QCEuHcKtl+2MMsiu+k=; b=Nymx6N8SQ37bT7LBp/wPegg005jcCLmh29LlRGB0zKRfeENBywzvNHvJyXTqGfe9Vo 4saaSnQOGEpUH9LTJcr+0KpS9k9Z/NdQPwiqcuOpHm+H5Wai9FF8INI0fVXoOA0Ga3rx CWCpvdiSwEGP9fyFh9jvL+AFHIOt/Ak8QoHe3Z68vTMaZ7uIEfRmhdSW6k/KEO6AWxKh PYTkb7Dbn0lJVmEH5/ThBO/iPeEkq98csmoy84Pb+fGuKpmW/zoqz3q5zKQC91SgaasR HoqkbXho9+XsttqdO/B76iMplkMaRT+lC6WFJ3LijHeCr5j1azSmFLgiAV8MdBxF4EyS mZqA== ARC-Authentication-Results: i=1; mx.google.com; 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 x11si650215edq.31.2019.11.12.22.44.34; Tue, 12 Nov 2019 22:44:58 -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; 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 S1726363AbfKMGnw (ORCPT + 99 others); Wed, 13 Nov 2019 01:43:52 -0500 Received: from mail-lj1-f196.google.com ([209.85.208.196]:37782 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725866AbfKMGnw (ORCPT ); Wed, 13 Nov 2019 01:43:52 -0500 Received: by mail-lj1-f196.google.com with SMTP id d5so1244639ljl.4; Tue, 12 Nov 2019 22:43:51 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=eleBs2EZgeGxIdjnJxRUDgNR0QCEuHcKtl+2MMsiu+k=; b=CKLN1WWya4db7NlFWfND/NCsqsaMf+8NB6E27+MwdsNvAxqhP1YL+CheUb9KbyCZi5 p5fbwidJrCng5XE3vyjjm4O2ciVoDC6nuBwLz3Wqw6F3CS1H/rRPuDe3txKl4iax7A2B FACJ1S9ErnK5iWa0ojtK//v2muhOnZhb9COPdLK20VIbNft4y0S2Jd6ex4ueeo1ISgWQ 92mYSwUVnk//irmXp2eieS3kb8H/niqRbANWH9LYihT71vmf3nD3kxHLFi/Y19cx9s+c 56jXV+tzcteOODQyIzgQ5wBmAZph/vcyFT4EFpTL+buFbhw42ny6Oo1T5Hc8IPB0Z4ze A9Dg== X-Gm-Message-State: APjAAAWWgOrPxyZlH3aX0AmL5AWs71OZm+JfU/q8XnQnJVpsBaHuja9A nK43CXFX09hdT39uJU4ZvBNfD+vauKE= X-Received: by 2002:a2e:9ad8:: with SMTP id p24mr1279835ljj.114.1573627430381; Tue, 12 Nov 2019 22:43:50 -0800 (PST) Received: from localhost.localdomain ([213.255.186.46]) by smtp.gmail.com with ESMTPSA id b28sm472234ljp.9.2019.11.12.22.43.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Nov 2019 22:43:49 -0800 (PST) Date: Wed, 13 Nov 2019 08:43:38 +0200 From: Matti Vaittinen To: matti.vaittinen@fi.rohmeurope.com, mazziesaccount@gmail.com Cc: Rob Herring , Frank Rowand , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] of: property: Fix documentation for out values Message-ID: <20191113064338.GA13274@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Property fetching functions which return number of successfully fetched properties should not state that out-values are only modified if 0 is returned. Fix this. Also, "pointer to return value" is slightly suboptimal phrase as "return value" commonly refers to value function returns (not via arguments). Rather use "pointer to found values". Signed-off-by: Matti Vaittinen --- Changes from v1. Removed statement about modifying arg ptr only upon successful execution (as requested by Frank). Also changed "pointer to return value" with "pointer to found values" drivers/of/property.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/of/property.c b/drivers/of/property.c index d7fa75e31f22..c1dd22ed03f3 100644 --- a/drivers/of/property.c +++ b/drivers/of/property.c @@ -164,7 +164,7 @@ EXPORT_SYMBOL_GPL(of_property_read_u64_index); * * @np: device node from which the property value is to be read. * @propname: name of the property to be searched. - * @out_values: pointer to return value, modified only if return value is 0. + * @out_values: pointer to found values. * @sz_min: minimum number of array elements to read * @sz_max: maximum number of array elements to read, if zero there is no * upper limit on the number of elements in the dts entry but only @@ -212,7 +212,7 @@ EXPORT_SYMBOL_GPL(of_property_read_variable_u8_array); * * @np: device node from which the property value is to be read. * @propname: name of the property to be searched. - * @out_values: pointer to return value, modified only if return value is 0. + * @out_values: pointer to found values. * @sz_min: minimum number of array elements to read * @sz_max: maximum number of array elements to read, if zero there is no * upper limit on the number of elements in the dts entry but only @@ -260,7 +260,7 @@ EXPORT_SYMBOL_GPL(of_property_read_variable_u16_array); * * @np: device node from which the property value is to be read. * @propname: name of the property to be searched. - * @out_values: pointer to return value, modified only if return value is 0. + * @out_values: pointer to return found values. * @sz_min: minimum number of array elements to read * @sz_max: maximum number of array elements to read, if zero there is no * upper limit on the number of elements in the dts entry but only @@ -334,7 +334,7 @@ EXPORT_SYMBOL_GPL(of_property_read_u64); * * @np: device node from which the property value is to be read. * @propname: name of the property to be searched. - * @out_values: pointer to return value, modified only if return value is 0. + * @out_values: pointer to found values. * @sz_min: minimum number of array elements to read * @sz_max: maximum number of array elements to read, if zero there is no * upper limit on the number of elements in the dts entry but only base-commit: 31f4f5b495a62c9a8b15b1c3581acd5efeb9af8c -- 2.21.0 -- Matti Vaittinen, Linux device drivers ROHM Semiconductors, Finland SWDC Kiviharjunlenkki 1E 90220 OULU FINLAND ~~~ "I don't think so," said Rene Descartes. Just then he vanished ~~~ Simon says - in Latin please. ~~~ "non cogito me" dixit Rene Descarte, deinde evanescavit ~~~ Thanks to Simon Glass for the translation =]