Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp26282782rwd; Mon, 3 Jul 2023 07:43:36 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7sWQP0K9sHMwgILNA3tMTzt0alruPTGFbaGyC2uQGJ03fl7AC89ptgtELQkfxlUye0exwD X-Received: by 2002:a05:6808:1402:b0:3a1:dfdd:bd3c with SMTP id w2-20020a056808140200b003a1dfddbd3cmr10220736oiv.39.1688395416432; Mon, 03 Jul 2023 07:43:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688395416; cv=none; d=google.com; s=arc-20160816; b=yd7g8IN5KQjMxn5rai1QUVzQUcX4SonjOCiN2svHpr/k9be/OA+EizHMVyl0PULPdP dyQerFrw5v8GVEwApGfZUrlP/ZVAlGHuMuNSAyJhg9EK5YaCvzbLUeDsFyYnKzdVbaKL tNJHV6LtlWTJKlz5p0Vr+4N+FBgUHAKevPtzTCUlJXvO8cqX4S9OwFXbBW49k5pGNd+l k9aFSfsGj5gMpn9fLS4mgoj2eHaBxCBfrB7vQ1CQVgvYKKTEqXkp1fTmvg+sye93j+1h Pb3ASgln/pO9bdM4AC/TyHwyA953mhLiOzTJmlZeFgcinM7+fvXv3etLE+gfJ1LmZkJ+ gblw== 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=gu1cWou4Pcv00MrhMC7iqdYBWZujl4iWBKyrh+O+U9A=; fh=mypHXuxD8gSLe08qvqUlK15JxsKF/fcoUw3RZMSAp6o=; b=q9KYq5U6kYFhAgNIRBOl6j/DjLaLdaAQ+6t0hGJRormljog8FGm++iqIzRXIgmQYUQ A08BbXjVvEWbTfGdVl7Fr6eK0fTaKDbB1xT0KlWOkJ/YjSwc7rQIm0Cd7aBcxGem9+lI ffSCAjVTxB0U1Dy0JKd0WLsrUbMhsWvQPMMjwMhMTElcs30KJKQk0Xhr2IOi2EpbRyp8 RT2wD8oy/8LF3z43oOPrfzg7TOh49a6SwMvZvcZgoqeYv32tQH5EYjncra/w3DyBSZf3 S2yazbwr9paFfqUz27k7YyRY55uFz2H40TEk6oBi6BY3QaPNUYtvj4JZV1XwVugxqvvH vOtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=UAw3yuAd; 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 h69-20020a638348000000b0055b82bb0bbdsi4474044pge.879.2023.07.03.07.43.22; Mon, 03 Jul 2023 07:43:36 -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=UAw3yuAd; 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 S231140AbjGCOXS (ORCPT + 99 others); Mon, 3 Jul 2023 10:23:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48178 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230258AbjGCOXM (ORCPT ); Mon, 3 Jul 2023 10:23:12 -0400 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6779EE5C; Mon, 3 Jul 2023 07:23:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1688394191; x=1719930191; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=DNmqWKEUkkpN5FpohkxiaOCL3JlrnO8cxsg2K7hyZ1U=; b=UAw3yuAdSrsx+cmvhnd2skVGDP8IHq1rDSsV1POL75Xf4Sq2ZKFF12U/ tLxuLWDan/WOGbmODDHYC1ra9c+fqkP2aK2Dh6GwXrsmp6C1NqeMNPui+ G7fQ973wUBkNftIp6TmxsIWt1GUSbV6gYanUyV5RrudewNocFnBLnamw5 s4vkOSvXN5FN6iu5Fst1jdD7BVxnW8X6PnJN68qPx+CUp72FuhfQbboPV GEDoi/86zmwQUUuCUSlFJjaHQNVCesJrJ3pxUdSRmC6gmYaKmLQXFBc0f OmFonCXY/glOJdzcgET5L4FnshuSAMfmLQj0uF8rlzUJrwUkJ20SMGOZN Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10760"; a="347681270" X-IronPort-AV: E=Sophos;i="6.01,178,1684825200"; d="scan'208";a="347681270" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Jul 2023 07:23:09 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10760"; a="783917061" X-IronPort-AV: E=Sophos;i="6.01,178,1684825200"; d="scan'208";a="783917061" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga008.fm.intel.com with ESMTP; 03 Jul 2023 07:23:06 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id C9B44177; Mon, 3 Jul 2023 17:23:09 +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 v2 2/3] gpiolib: acpi: Don't use GPIO chip fwnode in acpi_gpiochip_find() Date: Mon, 3 Jul 2023 17:23:07 +0300 Message-Id: <20230703142308.5772-3-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.40.0.1.gaa8946217a0b In-Reply-To: <20230703142308.5772-1-andriy.shevchenko@linux.intel.com> References: <20230703142308.5772-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,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 handle of the GPIO device. Signed-off-by: Andy Shevchenko Tested-by: Benjamin Tissoires --- 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..fbda452fb4d6 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 device_match_acpi_handle(&gc->gpiodev->dev, data); } /** -- 2.40.0.1.gaa8946217a0b