From patchwork Fri Mar 31 07:52:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 77595 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp391861vqo; Fri, 31 Mar 2023 00:59:19 -0700 (PDT) X-Google-Smtp-Source: AKy350b7OuI2EVjO2QivSM1KvRw7jAzVNGO8Pyp/qeHs/S9Ui2ORu6YABcuCMNEMa4n5QdS5ZYG5 X-Received: by 2002:a17:903:1250:b0:1a2:55ca:6669 with SMTP id u16-20020a170903125000b001a255ca6669mr20599017plh.33.1680249559540; Fri, 31 Mar 2023 00:59:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680249559; cv=none; d=google.com; s=arc-20160816; b=yx4Vi292Rh6i+hYmFe0yKlz0Vlc185aKeAfj9ncYdt41bPnfVzp11qt6sBOgwpF0S4 ShG8nA7fFJ6Lnfv+b0erMb8/yLVle/3UflnhEkOEH/d0TBMWbddY8+aN/Jv4Fnkt4iNA 67KBdCHWILm9roJtcA0OIbMidSPHS0Q0TsUeztfI6RIHcbwZ/8PXaf8Cd8ZndyrqzRzn d8Pd6cE40V9bhXjQH7YfQLZGKgyEmHHAnl1ZwcG2zmbOtScDweIsaydIBIhMyQJoPv0N CljbxBkqmAB2GoNf2DDSuHqqNOzqssvWke0wJ8ce6+lAVlJEEX9FgBT6BheT42GX150z 26/w== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=7Ypl2IraqAUOWXlyl64Q9kUg2qObElv6iAX1PlhDYW8=; b=RAJnKUucPw/cxSQwij0UdkywoJJ8JwMVSHh9qHrL4Y9jDNdzPmbddq5kJKRqepRh5C ngGFK4rbGY/I7bnm042+cIy3sjY7wzQnh/f4qGiDA/xXio1NeP5HG2jbl2dLRoq3gKzr 1g1bpRr8G2iHatwrieGO9pwAVctb9thj+iA9K3X2ATjLOBl4C78ZFyIiLrX4KbrZXTxf xfWRVkI+Hoal7nda8PwtKE+SFG/dSe9QgJ/B8HfYkuWMdQflwWG6rO4p3b/wgEUlhZcQ RRhG1YRUg/hANK3o4Xs2rz8qtaGMB0P8JMM7d9CHle4JQzeb4U1QZwYQzu3enZccU8Pz dwDg== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lf5-20020a170902fb4500b001992f451a28si1505933plb.384.2023.03.31.00.59.07; Fri, 31 Mar 2023 00:59:19 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231241AbjCaHxo (ORCPT + 99 others); Fri, 31 Mar 2023 03:53:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231367AbjCaHxM (ORCPT ); Fri, 31 Mar 2023 03:53:12 -0400 Received: from albert.telenet-ops.be (albert.telenet-ops.be [IPv6:2a02:1800:110:4::f00:1a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4342A1B350 for ; Fri, 31 Mar 2023 00:52:38 -0700 (PDT) Received: from ramsan.of.borg ([84.195.187.55]) by albert.telenet-ops.be with bizsmtp id evsc290061C8whw06vsc8a; Fri, 31 Mar 2023 09:52:36 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1pi9Y6-00FTC1-I1; Fri, 31 Mar 2023 09:52:36 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1pi9Yp-008Ra3-Sh; Fri, 31 Mar 2023 09:52:35 +0200 From: Geert Uytterhoeven To: Rob Herring , Frank Rowand Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 2/3] of: address: Fix documented return value of of_pci_range_to_resource() Date: Fri, 31 Mar 2023 09:52:29 +0200 Message-Id: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 X-Spam-Status: No, score=-0.4 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761869361858708901?= X-GMAIL-MSGID: =?utf-8?q?1761869361858708901?= of_pci_range_to_resource() returns a negative instead of a positive error code. Signed-off-by: Geert Uytterhoeven --- drivers/of/address.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/of/address.c b/drivers/of/address.c index 6312b10885e85864..bd965d104c83a1ac 100644 --- a/drivers/of/address.c +++ b/drivers/of/address.c @@ -216,7 +216,7 @@ EXPORT_SYMBOL_GPL(of_pci_address_to_resource); * @res: pointer to a valid resource that will be updated to * reflect the values contained in the range. * - * Returns EINVAL if the range cannot be converted to resource. + * Returns -EINVAL if the range cannot be converted to resource. * * Note that if the range is an IO range, the resource will be converted * using pci_address_to_pio() which can fail if it is called too early or