Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp2892256rwb; Mon, 5 Sep 2022 03:17:26 -0700 (PDT) X-Google-Smtp-Source: AA6agR63Z7q8RviCTmJAEFjqPV75gSYjzQnNOSTbjPtcm96Mn8VSxYVfZq0hNd5orMcDlYa6Snt4 X-Received: by 2002:a17:907:843:b0:73a:5b0e:8352 with SMTP id ww3-20020a170907084300b0073a5b0e8352mr35692999ejb.438.1662373045897; Mon, 05 Sep 2022 03:17:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662373045; cv=none; d=google.com; s=arc-20160816; b=jptBswb2HiLvT+888sTeNY3qEqBoOZH5i56SyHXvH6Vk3KPKZ3AuCB4XJRHdBVN/bV bAsrJeY5z92xM4roa/AoVB7Z9ZrY/y0/KYF/CWaCRgg8waeZEMPuwLG1YWG0X39yZzIt CEqPHtGFCkW15+kQqbUxL6GkTbppc6dPokqpIQWkSIo5mcpCcQ5+gLKgyOcSQWkpxnu8 9Cz4BqOWpDpYTb/bpMhsilqYBCIG6ftlN5hS6r5q/7e1AG7vNcCWQ4RwXcbm04UY0TPk SOrzQkTqKt9v/y/qnPKiCOMm5Qg5m9OOQUK5ecpn8YVrpB4IGcg+TlcWIwxMcDAFH8nU MdMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=m6bwvWKIYsYkkQiw6WkHW3VenkfYyqcqiN7fetf2fKA=; b=y2I/GTV+36L6Po0yry11tcupo2F0lGeqONhKOMTKP2ILxh0KxQOvchCb/5poAH0hJ4 QfCzxnf+iuw8rbvXwGIlfN5Y0X1F5qbotzCOXXfqSOQ4QNlny9x5EXFvxtI3FvLHUgsd YghZOUmJDQQpd3FQQiVwZqqqpHtXIAWPAlvBCpNvkaV43AIQ8J2ME+a7tRMaLj5J5UdN oE7ywWPhPsoL3rrBx1UpdAtzyUUJhGPmCPShP/o/F6DfU2yDI5qZ/aOFXhPjFr9AW+YH +MjxsSI/isvKIHQYDGVxaG+4/UkCWX5WAlosaOn1CA/kJDMR+9aFqften/QUw3TrwCOI vjZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=IHLIbQ5v; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r13-20020a05640251cd00b0044803f5f0d3si6373095edd.508.2022.09.05.03.17.00; Mon, 05 Sep 2022 03:17:25 -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=@gmail.com header.s=20210112 header.b=IHLIbQ5v; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236536AbiIEJzm (ORCPT + 99 others); Mon, 5 Sep 2022 05:55:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236507AbiIEJzd (ORCPT ); Mon, 5 Sep 2022 05:55:33 -0400 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07F981A382; Mon, 5 Sep 2022 02:55:30 -0700 (PDT) Received: by mail-lf1-x12b.google.com with SMTP id u18so70073lfo.8; Mon, 05 Sep 2022 02:55:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date; bh=m6bwvWKIYsYkkQiw6WkHW3VenkfYyqcqiN7fetf2fKA=; b=IHLIbQ5vHZQVIyqqjxII8xfEjM3Q6fZoeMqDFdIiU0vsFp6oi7h0IwMdNfx1vPlnFp ZPEemHQtgtDg6DfHplUdQ9jQ9sLqz7D7QN4FLqbsDi3rJNDxpjjlWDcgUMOkA9w2Tjs9 x9VWcOV0/2DW1Hg36LsG6DteksM93YpJyP0rfadAndCJKb/yY4pF55KE51FqNTxioDRe KBJzVpsAFs2k6LKzsnJmjaNF0PAQrTJoMhIKZekTRu34MSjNFM9c+GyRzLjBHe1ybOQZ eLbeL6kyIXJDXmENmbtGhQKPn5KPfZrIYSXNEMQPhMhg5ikHY+XI6LCK0LoPM/K1/Mnt uzTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date; bh=m6bwvWKIYsYkkQiw6WkHW3VenkfYyqcqiN7fetf2fKA=; b=cJrmN5TdpSC1CJYECbMh8tYQ/51oAUhyt56FCocDx7wHZm4UuvgJaB0OGIaGB7mCr9 omAVQS9KfmTxvGUG9xOZXuzV5cBzm96NdJMXsfIdmJKwAYX2/MI85eWMPVcgQ4m4oJXy ajaXZ6WElwp2597281DyPaPgTtkd50VNnG4zie1FauXjbdYrp4GahIJLinLSYQZPxgBP 7QX9bLb0qPSKhrghi0PQ0uv4RqrWiq/K2rpJSelw9dqzY6tycgq0ItaOFzIPdcg7GNJ3 JyyXpBynEPf3cGUieOAaxcBfkpZf/wB4PyJEM2bJWLrubWTT+3rIicWoPaxF/6lMfOOV YAFg== X-Gm-Message-State: ACgBeo2LVTDJ/UTWF9xQJvwxW3YlSIfFNtuLkhb9HqtzekCc8MAeEpIC K3Ek23H6BuNej8F/hrYV60M= X-Received: by 2002:a19:6b16:0:b0:48c:e218:7c51 with SMTP id d22-20020a196b16000000b0048ce2187c51mr15164353lfa.681.1662371728951; Mon, 05 Sep 2022 02:55:28 -0700 (PDT) Received: from [172.16.194.135] ([213.255.186.46]) by smtp.gmail.com with ESMTPSA id v27-20020ac258fb000000b0048b13d0b896sm1141980lfo.141.2022.09.05.02.55.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 05 Sep 2022 02:55:28 -0700 (PDT) Message-ID: <4a536310-3f79-d248-dc48-5cdbd640e04a@gmail.com> Date: Mon, 5 Sep 2022 12:55:26 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [PATCH v1 08/11] regulator: bd71815: switch to using devm_fwnode_gpiod_get() Content-Language: en-US To: Dmitry Torokhov , Thierry Reding , Mark Brown , Lorenzo Pieralisi , Claudiu Beznea , Liam Girdwood , Wim Van Sebroeck , Greg Kroah-Hartman , Guenter Roeck , Miquel Raynal , Linus Walleij , Felipe Balbi , Alexandre Belloni , =?UTF-8?Q?Krzysztof_Wilczy=c5=84ski?= , Vignesh Raghavendra , Daniel Vetter , Thomas Petazzoni , Alexandre Torgue , Marc Zyngier , Richard Weinberger , David Airlie , Nicolas Ferre , Alyssa Rosenzweig , Bartosz Golaszewski , Jonathan Hunter , Rob Herring , Maxime Coquelin , Bjorn Helgaas , =?UTF-8?Q?Pali_Roh=c3=a1r?= Cc: linux-watchdog@vger.kernel.org, linux-usb@vger.kernel.org, linux-gpio@vger.kernel.org, linux-pci@vger.kernel.org, linux-tegra@vger.kernel.org, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org References: <20220903-gpiod_get_from_of_node-remove-v1-0-b29adfb27a6c@gmail.com> <20220903-gpiod_get_from_of_node-remove-v1-8-b29adfb27a6c@gmail.com> From: Matti Vaittinen In-Reply-To: <20220903-gpiod_get_from_of_node-remove-v1-8-b29adfb27a6c@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,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 On 9/5/22 09:31, Dmitry Torokhov wrote: > I would like to stop exporting OF-specific devm_gpiod_get_from_of_node() > so that gpiolib can be cleaned a bit, so let's switch to the generic > fwnode property API. > > Signed-off-by: Dmitry Torokhov Reviewed-by: Matti Vaittinen > > diff --git a/drivers/regulator/bd71815-regulator.c b/drivers/regulator/bd71815-regulator.c > index acaa6607898e..c2b8b8be7824 100644 > --- a/drivers/regulator/bd71815-regulator.c > +++ b/drivers/regulator/bd71815-regulator.c > @@ -571,11 +571,10 @@ static int bd7181x_probe(struct platform_device *pdev) > dev_err(&pdev->dev, "No parent regmap\n"); > return -ENODEV; > } > - ldo4_en = devm_gpiod_get_from_of_node(&pdev->dev, > - pdev->dev.parent->of_node, > - "rohm,vsel-gpios", 0, > - GPIOD_ASIS, "ldo4-en"); > > + ldo4_en = devm_fwnode_gpiod_get(&pdev->dev, > + dev_fwnode(pdev->dev.parent), > + "rohm,vsel", GPIOD_ASIS, "ldo4-en"); > if (IS_ERR(ldo4_en)) { > ret = PTR_ERR(ldo4_en); > if (ret != -ENOENT) > -- Matti Vaittinen Linux kernel developer at ROHM Semiconductors Oulu Finland ~~ When things go utterly wrong vim users can always type :help! ~~