Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp26126983rwd; Mon, 3 Jul 2023 05:55:11 -0700 (PDT) X-Google-Smtp-Source: APBJJlEKhgCbk7+MqxMO9IBH3c3zQI2L5hvXWm0Hi/0nYohg4Oji7OOWM3981ovK2WACOKv/4Yzx X-Received: by 2002:a17:90a:1a46:b0:262:fc3d:9122 with SMTP id 6-20020a17090a1a4600b00262fc3d9122mr11475420pjl.17.1688388911575; Mon, 03 Jul 2023 05:55:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688388911; cv=none; d=google.com; s=arc-20160816; b=GN5ciMqFmf4TYRtBeO8Rlh0sIVQ9geixdAxNnx/3bhbkY/W7TA3BHFXWHMmd599QIi FWzp8kiJGEH4rcXxpSXjl4t9i85MyY5vrNbYna7hyzJuzj7M2LhPalTeWSkZCoZ4UjGU S4YCDViH+MpXI/597dCrmxWp/y1SbSVB+99wPtHqHFlE9jC+7hNctoMfv+8/ovI8OidJ pHv3JCoZ7GGFnn0yVWSETdw/5Akt56M/UDd6jupAJLXiciq+NNYWRiU28zgRs2QSSgKQ vOlvj40VokA1o0VM2t/1Z3LvPCwrOTZ3IQKgJwTk3mEQXUwl3HjkAYavbyuvo5JGoo4+ nA6A== 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 :dkim-signature; bh=eDqArFbMT7ES/xp8i7rNXFXk//EhW3F3vMtJfd4LhTk=; fh=pnZ7JKqo4a1NkH5BtCuwVXjSzsf2RF1cbw2rekbMd8g=; b=QSS57C+BaXlIBhW6juRBzWD9eXDuXpnVXoZfPtCP2Njp+ipAOUni4jnrvWhCdxDeXD q4Fcuo0lF+PXrcijtm9letEij9M1pRs8a7DAjfg759fa7tyAHGo3FR3/N4i3BKXGH+tw 6ykSKWD17F5JbYE0wKA/X1Ij/pBVY9r5zHl7QmFdtPHI+2A2xXjWa3gxi4Kb5W4ft2MW JEc2X9GM34WQmmM72AUynnO/huVkioPCx9Qq+GHoFur5ER6W0rc3Bt1AaknOuSijEyha gn+Go0HR0rxCnIi1MTmOfVUYLfgbWj/gR7vPenjNA44M9YSEkyI0bcEMYC/bkuzuc0eY euOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="NR7pOi/D"; 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 p21-20020a17090ad31500b00262ee948d18si15319278pju.132.2023.07.03.05.54.56; Mon, 03 Jul 2023 05:55:11 -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="NR7pOi/D"; 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 S231288AbjGCMTG (ORCPT + 99 others); Mon, 3 Jul 2023 08:19:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230386AbjGCMSz (ORCPT ); Mon, 3 Jul 2023 08:18:55 -0400 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01F5B198; Mon, 3 Jul 2023 05:18:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1688386734; x=1719922734; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=WIw/lYPfjECKbt13n6a0kFhIAeRW5JIxgsAB/IJQ1rk=; b=NR7pOi/Du+1ITsJMKe0RoIJO3/1xVABhTDx1bF8B3Ja9FxqBiFCfkn9w NYj3LV3OuqZwTL0sKQa1IcgYdNPH3mdljLFZ+8pAchd/K8PHdDN22TnCZ QvigVOzxxjLOXlcHwxa8AYpIn2ZrgQk2xzVpPSWJ8sD6FNbXXWOqhTHEs Nf9QZ8gMykawZ5PJ/8RXFW4dfSNaf8ONKVfgXMy1zjYb1l3a5nrEHUW7o hYvMzD2agldkLZh1Kmfn5tgwvN9zgvlGL7L5GkP1RaSlO7DQ2X4j7NKhC C3qNuxU1JttvpuIOzQiqh0b868QE2vEUIYklN4whoAJD9mnbhbs7VCZHe Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10759"; a="343200935" X-IronPort-AV: E=Sophos;i="6.01,178,1684825200"; d="scan'208";a="343200935" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Jul 2023 05:18:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10759"; a="831811640" X-IronPort-AV: E=Sophos;i="6.01,178,1684825200"; d="scan'208";a="831811640" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga002.fm.intel.com with ESMTP; 03 Jul 2023 05:18:39 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 288F9177; Mon, 3 Jul 2023 15:18:42 +0300 (EEST) From: Andy Shevchenko To: Andy Shevchenko , Dmitry Torokhov , Bartosz Golaszewski , linux-gpio@vger.kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Mika Westerberg , Linus Walleij , Bartosz Golaszewski , Benjamin Tissoires Subject: [PATCH v1 2/3] gpiolib: acpi: Don't use GPIO chip fwnode in acpi_gpiochip_find() Date: Mon, 3 Jul 2023 15:18:37 +0300 Message-Id: <20230703121838.70898-3-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.40.0.1.gaa8946217a0b In-Reply-To: <20230703121838.70898-1-andriy.shevchenko@linux.intel.com> References: <20230703121838.70898-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE 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 GPIO library should rely only on the GPIO device's fwnode. Hence, replace GPIO chip fwnode usage by respective fwnode from GPIO device. Signed-off-by: Andy Shevchenko --- drivers/gpio/gpiolib-acpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/gpiolib-acpi.c b/drivers/gpio/gpiolib-acpi.c index 97496c0f9133..cafbf9597ead 100644 --- a/drivers/gpio/gpiolib-acpi.c +++ b/drivers/gpio/gpiolib-acpi.c @@ -128,7 +128,7 @@ static bool acpi_gpio_deferred_req_irqs_done; static int acpi_gpiochip_find(struct gpio_chip *gc, void *data) { - return ACPI_HANDLE_FWNODE(gc->fwnode) == data; + return ACPI_HANDLE(&gc->gpiodev->dev) == data; } /** -- 2.40.0.1.gaa8946217a0b