Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp241784ybc; Tue, 12 Nov 2019 00:21:31 -0800 (PST) X-Google-Smtp-Source: APXvYqyL/sQg06gTEWSC2ZQbNn2GmlWJqYQptCYO5PGc3x0YQ4sEFZnmbUBYRY6JXhH+QcHT3Egh X-Received: by 2002:a50:f699:: with SMTP id d25mr30923370edn.72.1573546891180; Tue, 12 Nov 2019 00:21:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573546891; cv=none; d=google.com; s=arc-20160816; b=wtkYZ4jTWDaeoLBrIw2mcL45pnXd3j/TZkRmuD4gfPHy+te/ff6Y0yIZFmd3TsdNsl Kj3KLtXWpvS/vYUds9CjOZ0whVT6MjWM09xzHgVwAv6sM5QNcPqsu4CHzEjIR602f6zf qwUMEOm8aRvw589UQbdjjoaP60uvq4uhFtcirDQaZjKbLCe+brbupGptPfAjkb1nUngE mrwOqOsbEkwSRKhZTW9ScTWMEavpmXGQprjmxSCatGjVuDPXq8bWHiEUJHg+1ibDW3VU /7TXKMcwBV0bqvIUuibbnV9abpRi7lnxDCtkVoIu1LPpg2D7sMLQvMRWvhmhCkyrQ/Sw mo6w== 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=eL10nrIAWoedwqBLA4/hoY9p88x8qlk9u4/3BdzAMXQ=; b=ilQqFNyle8D9fQKBj42kp6Zh1uJAcjQ4hk+8QeB53CwFHq3OP9rfbuNDYh8is16kxt FKkb41IGPv/AtqnBmpMvRpnLkWklSStvWkXXRy4gdr/UXsesAS3NCbZS8zgItuYzzEYj 5oFMh9g/r5c4kBBvFIU7yghxs7vJ2nzrKNi9URUinv9WuHlkrGKRKlCl6gO6wZmyMZM6 FWUHFHJvtm6O7GFq/NQEmv+mFgDnHSnkR936hjHyG/J5xL9g5dgVX2Kyvt1TfxKvP95K yQYU3srDmz+z/fo/0r4Mo6WYslmAK+mw1PlZ2HAb8RuPK/hmNluzs2lZKTBjXkkXNC+n Yz2Q== 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 a10si14770232edj.424.2019.11.12.00.21.06; Tue, 12 Nov 2019 00:21:31 -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 S1727275AbfKLIRn (ORCPT + 99 others); Tue, 12 Nov 2019 03:17:43 -0500 Received: from mail-lf1-f65.google.com ([209.85.167.65]:44363 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725821AbfKLIRn (ORCPT ); Tue, 12 Nov 2019 03:17:43 -0500 Received: by mail-lf1-f65.google.com with SMTP id z188so4868687lfa.11; Tue, 12 Nov 2019 00:17:40 -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=eL10nrIAWoedwqBLA4/hoY9p88x8qlk9u4/3BdzAMXQ=; b=V0+Lbibv09k6PKhM2IBhO+mU5M6TVTELjO+BD/YrbZm5cOK8ya00ZfbMBqZ67Dx/ZD dpiAl2e31HV2HDjOy37y1qus8dET++CHAFVJGGF9N3awFAz/em0Ka+CDpjq872Ey6gUj bQ86CiD7Y1SXUM38N9RnfriAPg4ct28Xzw2RNojfUPF6sF1aBOMnnJTcnu+YM6lEeYqd 57d/jZ7mpEe1s+R0dAHkPIq8p9ELAUgSFJXv3tuvfrO9J5s3QwaEidNtuQ690vutziRw Bc0ZU0UMaR+yYpLjN5PLujB56+y6wBQavbT7/fX1ugAof507v3EndQxvORFnBQduAYpj PmNQ== X-Gm-Message-State: APjAAAUofyicWh1YlnsXukuV/HN4ipUkCqJLTeoO+iSI+EIqOXyBBxw3 6Nk1z4K6s4sf6tVfZi+s28M= X-Received: by 2002:ac2:4d10:: with SMTP id r16mr850227lfi.70.1573546659468; Tue, 12 Nov 2019 00:17:39 -0800 (PST) Received: from localhost.localdomain ([213.255.186.46]) by smtp.gmail.com with ESMTPSA id 28sm9104412lfy.38.2019.11.12.00.17.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Nov 2019 00:17:38 -0800 (PST) Date: Tue, 12 Nov 2019 10:17:26 +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] of: property: Fix documentation for out values Message-ID: <20191112081726.GA8291@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. Signed-off-by: Matti Vaittinen --- drivers/of/property.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/of/property.c b/drivers/of/property.c index d7fa75e31f22..4aae93cdc1ce 100644 --- a/drivers/of/property.c +++ b/drivers/of/property.c @@ -164,7 +164,8 @@ 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 return value, modified only if return value is + * greater than 0. * @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 +213,8 @@ 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 return value, modified only if return value is + * greater than 0. * @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 +262,8 @@ 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 value, modified only if return value is + * greater than 0. * @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 +337,8 @@ 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 return value, modified only if return value is + * greater than 0. * @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 -- 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 =]