Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp889631iog; Wed, 29 Jun 2022 12:17:08 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vR7QG2Jt38upIrRIA5OXkyQbRNaxe0ninffojgFYxFH575xLf7CJrb5SPE6yrr6x8VThqJ X-Received: by 2002:a17:902:7085:b0:168:97dc:ddde with SMTP id z5-20020a170902708500b0016897dcdddemr10447499plk.25.1656530228642; Wed, 29 Jun 2022 12:17:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656530228; cv=none; d=google.com; s=arc-20160816; b=d8j2Vfu7G1VqncpMNGQfsx6HA7Vu3K/1FfxOk/dkraKWta+ieECBDJp47T0Kr+sQEp 7XQdw698NcfHFsAR0kFg4pPLbc/iruGWXWsxzKvfn5SoTI5JY2WFRv6xg+B7dS8MXXWm ir5vy72zCiQJg0HmaQf/D1VlH14PfKh7fVit5GPCUrJyGoo46J4iNZwySJvfj6voOwzW /jaipp21DuCMpuD8atmBIs9Bk1zMqHSDeXu41RzH+gLRAGjiUNCj4RG9SbrfvxNAlG9E i5j2g6ne4BFx9/muhLcghgXIGBTSWiw0sgGX7vgUtebA9P3ya6yqKDfDZ4KIQVNhKhsl W3kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=VGp0r8sM5mZknQfVI2yfDxCg19sys5aNVE3+EWpAW9s=; b=A8jw394wQo2ZxktfVpkOhBQExsKIE9FjxEZCImD12LFmKRQcjMlwDcgVxTCw7WbpjE U6PHrGot3BJF1ly3un46eXBWlPOkpoqKQ8y4/I97gHNS14gN/K2uU0ULz+BlzA2IJmGT 0IhVljaGSz/5mTgr/+yhzZjsKzoBPOGU53X3rIM/uIuYTZ1qoZBtsBFf9R7tyJuEw0r7 e4ESTIh5zcmOI/QOlUOMM9BV8lMhrrtzttpIl4Q/uH4eYx9T5nsKJf+LCDu2Vpa3YW4Z 0G0LBNjYIP9d1F2uN21oEkorrgNIS/wEz0STxDGMGdJdCnB6hmZ2KkEp8v4HrD5J/YEX Csfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b="Tl/EXqGc"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c9-20020a056a000ac900b005107be11e23si19884889pfl.137.2022.06.29.12.16.56; Wed, 29 Jun 2022 12:17:08 -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=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b="Tl/EXqGc"; 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 S231643AbiF2Suo (ORCPT + 99 others); Wed, 29 Jun 2022 14:50:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231433AbiF2Sum (ORCPT ); Wed, 29 Jun 2022 14:50:42 -0400 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F2391A050 for ; Wed, 29 Jun 2022 11:50:41 -0700 (PDT) Received: by mail-ej1-x633.google.com with SMTP id fi2so34352058ejb.9 for ; Wed, 29 Jun 2022 11:50:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=VGp0r8sM5mZknQfVI2yfDxCg19sys5aNVE3+EWpAW9s=; b=Tl/EXqGcU+gTZSJmaC6LTPd+O7MER1FPtuy99jHEqhAJI/gQ51pcJXiwpACzJZ7SES PVtX7w8SgecUl6H809W36x0KyBpId8SOGe53QQQmllzidRX780Cdeb22xUz+c+JqVPAX RvSKHQahI3BCy0KxOdr2vuBHV3vOztuK15zP8XJ5LsSMJArgDvy7pgMr4DDaLjeckJcU hNGq233FtQPYdjVFDJ+yMrJd4FPogy3Ovb/9HgQkQSoUe8aLTGjrspqcTADrDNsFm1DH xIeJJh9tVwExx6FB5MlJIAA21YDuuIEbD1gTBEEXl46NYq5uHl6p05LnaTjge0MUpoqA PViQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=VGp0r8sM5mZknQfVI2yfDxCg19sys5aNVE3+EWpAW9s=; b=GQu3rkar/KUVP96fd9HUdLJb8BtC92at+V6nORpGw+G/Ko/Gp73Rs4qQR4DLzPv6Y5 F0RTgplIGMJckBvQg9XXj8X6/0hf/pt0WW677vyzs4RQkdsWWpfaHyPl0QkWFjyTV5tr oc/Tt+Asc7svd3L0sFao4/1H9Twr8Mo/L7mbZvBXBtNKsNeMH+LhVlwIavYDpg/kWDXn KJSjhhQM64QEXOgPEB1zzPIywPxMXGW0s/oCDNQGTWWr5/eobTDFr65PHEUzLQBO/5PF OgPHUvjYXgL8vn7DeKCD7PFGPIyzpTH9qUlYpxoKlcqXf7+TGfgsb0J2u8LSBsVFKhEu 1gcQ== X-Gm-Message-State: AJIora/vwW7zT+5LgGKXsK9jNEBbHdSZ2o5RAbpuqlIyX8/C+9WUf7Mp 6ZXhr+TQehP8MUErxx7we+HUO05mQ+Qak6Df7dwLxQ== X-Received: by 2002:a17:907:60cc:b0:722:e564:eb11 with SMTP id hv12-20020a17090760cc00b00722e564eb11mr4643048ejc.736.1656528640056; Wed, 29 Jun 2022 11:50:40 -0700 (PDT) MIME-Version: 1.0 References: <20220629115010.10538-1-andriy.shevchenko@linux.intel.com> In-Reply-To: <20220629115010.10538-1-andriy.shevchenko@linux.intel.com> From: Bartosz Golaszewski Date: Wed, 29 Jun 2022 20:50:28 +0200 Message-ID: Subject: Re: [PATCH v3 1/2] of: unittest: Switch to use fwnode instead of of_node To: Andy Shevchenko Cc: Rob Herring , Frank Rowand , devicetree , Linux Kernel Mailing List , "open list:GPIO SUBSYSTEM" , Rob Herring , Frank Rowand , Linus Walleij Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE 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 On Wed, Jun 29, 2022 at 1:50 PM Andy Shevchenko wrote: > > 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 > Reviewed-by: Bartosz Golaszewski