Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp875340rwb; Thu, 6 Oct 2022 05:48:15 -0700 (PDT) X-Google-Smtp-Source: AMsMyM57dZpH5hzh0oulo8fbiQmed9hucu46Tha6L/EVzIstA/upyrFQkAVZoNd04fPGcQEGGz+m X-Received: by 2002:a17:906:5a5e:b0:78d:2ed1:5b07 with SMTP id my30-20020a1709065a5e00b0078d2ed15b07mr3969376ejc.38.1665060495373; Thu, 06 Oct 2022 05:48:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665060495; cv=none; d=google.com; s=arc-20160816; b=seAHtobOe1/dT33cF0NkPUlLhG7YHn9PBFW5Eyv1IWuudgSZOLYQYAWS7Hy+3FVtY5 UtMAsMKBt8rSLxjKnab87AkyJvKKl16zdr//VH7Jx8+F1YrPWfCOxKMTBR9u3WGr2v8r l+sRT3cmAP6Z7WpRtFZtbPYcmqz4vziX+SgiMVkcuAo5vZCOAEa+N2G0AiMAhJIgI4YR VY6rZ02Vz9wvpHPYXgQB2NswaseOdc223cn1vypsoI35jeTeUX6X6UQ9MVyWXxPsh5J8 cRZ/PiuN7wJh6ywYSHITNYiVkiqbuwEk+uYAgAN3wOVvMxIAyRd/0MTkDCbDIYnHoYIh Fmdw== 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=sZh9LqRGZ6tDa9GSWD93OMlZAvB6mz5WC3QNHBM7UhI=; b=TdgQZeRhRlI8CeY8shmkG1ICtDOFWcBjpUKdz+DPwZW5M9T6QRGvLgc7YyhC7O8PoD iAkw0E9r7y/dXdEHoLAzLnD3qU99zRIcJ0XDRCiQ8CFa1BWm0Oaj365Yy/hu4iFpBIV2 pnfjOIlooOfdagIyAPkBJBMmAk1nni6my0UF4+j4BkyKO2+pvz0gIxUT29u+D5NI4orV 9666QThkus6kuF/UGoSPZibTUjLUVL810cptDCbxwIxehkpwcGaZYQFIwHQxRJlBas8S RzjAgubJA+RjtZ1cle+ffxjIVRyUQcVUylwU4JIr8cifdBUmLzUih3hHmYn79mtqK8Yp LCaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=SESjD++5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dd11-20020a1709069b8b00b0073d15dfd9b7si17522239ejc.472.2022.10.06.05.47.49; Thu, 06 Oct 2022 05:48:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=SESjD++5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231391AbiJFMh6 (ORCPT + 99 others); Thu, 6 Oct 2022 08:37:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229942AbiJFMhy (ORCPT ); Thu, 6 Oct 2022 08:37:54 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6B7B85A8E; Thu, 6 Oct 2022 05:37:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1665059873; x=1696595873; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=cZ1DyGBREhYanUww/M4Cfa6VqXvo80wIheIgHvT9G1c=; b=SESjD++5LPwuY+OSa7y+8HM17FjfmIHhAYJYaXs76w7mRTbdFTTGiOzZ UdI11N0GhOMGa3k07rNgYWXz1gMhhxOlKQeLrXsHyX8A4PngcI9QVyUPq qoJfxuTickbf6tP7bJUguM6VqYStBUMeNKISnCYZMtbCUs+EJ/G29+qx2 FH2KXAz8QuGkdQ1oiT5iBSz147HH1Hf7tL3xo/84GsLa4sZKf8y9cfVhy 6P8lmLFRghNJcWpkDnktmqc/khjqZsSEtTNBSdp+EAYmZL6vrF6kXYVuh tS/D7kcPIWdcE3OIu0wQwj9feifd3zyeVF3D3YiacFkVLvfBlNF6EVpgk w==; X-IronPort-AV: E=McAfee;i="6500,9779,10491"; a="301031456" X-IronPort-AV: E=Sophos;i="5.95,163,1661842800"; d="scan'208";a="301031456" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Oct 2022 05:37:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10491"; a="627001100" X-IronPort-AV: E=Sophos;i="5.95,163,1661842800"; d="scan'208";a="627001100" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga007.fm.intel.com with ESMTP; 06 Oct 2022 05:37:51 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 17D4917E; Thu, 6 Oct 2022 15:38:10 +0300 (EEST) From: Andy Shevchenko To: Andy Shevchenko , linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Daniel Scally , Heikki Krogerus , Sakari Ailus , Greg Kroah-Hartman , "Rafael J. Wysocki" Subject: [PATCH v1 1/1] device property: Fix documentation for *_match_string() APIs Date: Thu, 6 Oct 2022 15:38:07 +0300 Message-Id: <20221006123807.37014-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The returned value on success is an index of the matching string, starting from 0. Reflect this in the documentation. Fixes: 3f5c8d318785 ("device property: Add fwnode_property_match_string()") Signed-off-by: Andy Shevchenko --- drivers/base/property.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/base/property.c b/drivers/base/property.c index 617007a25783..bfed224c5724 100644 --- a/drivers/base/property.c +++ b/drivers/base/property.c @@ -236,7 +236,7 @@ EXPORT_SYMBOL_GPL(device_property_read_string); * Find a given string in a string array and if it is found return the * index back. * - * Return: %0 if the property was found (success), + * Return: index, starting from %0, if the property was found (success), * %-EINVAL if given arguments are not valid, * %-ENODATA if the property does not have a value, * %-EPROTO if the property is not an array of strings, @@ -457,7 +457,7 @@ EXPORT_SYMBOL_GPL(fwnode_property_read_string); * Find a given string in a string array and if it is found return the * index back. * - * Return: %0 if the property was found (success), + * Return: index, starting from %0, if the property was found (success), * %-EINVAL if given arguments are not valid, * %-ENODATA if the property does not have a value, * %-EPROTO if the property is not an array of strings, -- 2.35.1