Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp520891iog; Wed, 29 Jun 2022 05:11:11 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vNeo5unLSqqB6pFZ6RwN51mj1D79kkzL3xfE3TqLuxstF3pM76yVmxzV+rDkeTbAiShZwN X-Received: by 2002:a17:906:7949:b0:726:40d1:60aa with SMTP id l9-20020a170906794900b0072640d160aamr3052916ejo.511.1656504670233; Wed, 29 Jun 2022 05:11:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656504670; cv=none; d=google.com; s=arc-20160816; b=ukXH1nxD2EcWapMYRF8ePMNEdqOWzGWqUMx6C11R2kSqgYtYMmIds12A+ORROx38r0 C+ZpJp5R0ttVnpXx1ntT9EUv+a2m/2TO3rgCjsUwtsDOT68sjR2pZgVnwMKVqjU5rJ3L wEm3kIijqtElnR5e3fxFvckglUtPOlb5e8b4Wjffmm/8+zzYofqMZwafkxSaDs9et7xR olcRj6TAXVwDGYYpg6f0aVhaeQawcWwiFo2FYcEpkOvL9u6+YqVe1tFeoBpJWg4YEKDA U5JXWClU9HLfQDd5FEuEh4kcojmQZeH60PXnfZcuM2QVLimKA1DcEKWQHes7Fc0fsRa4 Ychw== 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=wjd7s0C+R3RslE0+3qLFk1iUM7T7Lf8tgW93xgEWMVI=; b=lXsmuRk84ebw8CctdXHjl1dJshvzExdIbNWD35oJJhiuyhck1jCUkbrw8taXkzr6A0 wumq1zU7A8IOG8NE3p274DZqkzcGup/vS+g+ZQNdfIIukFRnpKlVtKsDTAFBftNytFOY AlmKcaGfJuz/IoFwal263CgRl/FYWj4wOv2qTGu2bueG/OVvLb25P8fsSvh0gBiy6SPP 5iVN9gD1CWN9objHoXT5oufSqIMf9xCKP7nM6UUJ6DSxlYVzphBig0CxQ/fl+BZUkmJ7 h3CTQ73yWD66ZZ6CjcvaLkyEn6QIhIWbL6afPCJZ2EjCtZhkrcCQ15Sw3CARzAG8ZaKy oiqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=kdiYYIrt; 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 g7-20020a1709065d0700b006e88579e94fsi2572745ejt.798.2022.06.29.05.10.36; Wed, 29 Jun 2022 05:11:10 -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=kdiYYIrt; 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 S233118AbiF2LuK (ORCPT + 99 others); Wed, 29 Jun 2022 07:50:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231504AbiF2LuI (ORCPT ); Wed, 29 Jun 2022 07:50:08 -0400 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2053A36B66; Wed, 29 Jun 2022 04:50:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1656503408; x=1688039408; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=U1TxebG8ojat2OTnFTUhfRC0os6Prlnrnawal3DhOKU=; b=kdiYYIrtTJKOD3GPRHEaaJT3Vzccmg001Vol7LJ3RIXHd9W2YUZN42Qh u7iZvBTlWTMr4X1H3NXJHpmoeFT9qWSLkDe2BHpWaxj1lfdEuUKiDT9nX ML+YfbeYh9atBkCc/uffjfUoVFW0datzPJzb6uQ9J6Kj/0AbeltUism/T AXHqz79QIoZeu33rrS6k4NYuFHkgbc+EFfYkN12yD6mEpD3Ff3O+6kLT4 ehj0PMJcaJ/SeP8DVueuNYQ5mE7652b8PBtvIYGuDeTv3C/v4fZpamUdP U2izJ7yhK68SHKtImnUsDSLKNcj7VqMndjgbK7ABYNC/Cas3y+NOV4eMO w==; X-IronPort-AV: E=McAfee;i="6400,9594,10392"; a="343698695" X-IronPort-AV: E=Sophos;i="5.92,231,1650956400"; d="scan'208";a="343698695" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Jun 2022 04:50:07 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,231,1650956400"; d="scan'208";a="717792732" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga004.jf.intel.com with ESMTP; 29 Jun 2022 04:50:05 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 2507A109; Wed, 29 Jun 2022 14:50:11 +0300 (EEST) From: Andy Shevchenko To: Rob Herring , Frank Rowand , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org Cc: Rob Herring , Frank Rowand , Linus Walleij , Bartosz Golaszewski , Andy Shevchenko Subject: [PATCH v3 1/2] of: unittest: Switch to use fwnode instead of of_node Date: Wed, 29 Jun 2022 14:50:09 +0300 Message-Id: <20220629115010.10538-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=-4.7 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 now accepts fwnode as a firmware node, so switch the module to use it. Signed-off-by: Andy Shevchenko --- v3: no changes drivers/of/unittest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/of/unittest.c b/drivers/of/unittest.c index 7f6bba18c515..5a842dfc27e8 100644 --- a/drivers/of/unittest.c +++ b/drivers/of/unittest.c @@ -1602,7 +1602,7 @@ static int unittest_gpio_probe(struct platform_device *pdev) platform_set_drvdata(pdev, devptr); - devptr->chip.of_node = pdev->dev.of_node; + devptr->chip.fwnode = dev_fwnode(&pdev->dev); devptr->chip.label = "of-unittest-gpio"; devptr->chip.base = -1; /* dynamic allocation */ devptr->chip.ngpio = 5; @@ -1611,7 +1611,7 @@ static int unittest_gpio_probe(struct platform_device *pdev) ret = gpiochip_add_data(&devptr->chip, NULL); unittest(!ret, - "gpiochip_add_data() for node @%pOF failed, ret = %d\n", devptr->chip.of_node, ret); + "gpiochip_add_data() for node @%pfw failed, ret = %d\n", devptr->chip.fwnode, ret); if (!ret) unittest_gpio_probe_pass_count++; -- 2.35.1