Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp3126730rwb; Mon, 5 Sep 2022 06:55:26 -0700 (PDT) X-Google-Smtp-Source: AA6agR7scQjRi/s8QYFR4xyOeF3xWkI4TYGWo2MChaRagOx1rsiR/bQ7MztANAG+foRhIOC7PtVi X-Received: by 2002:a05:6402:28cb:b0:43b:c6d7:ef92 with SMTP id ef11-20020a05640228cb00b0043bc6d7ef92mr43856959edb.333.1662386126568; Mon, 05 Sep 2022 06:55:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662386126; cv=none; d=google.com; s=arc-20160816; b=Pwsa0zo91v/BIuN/yWl0yPWk2eUOfMLlPa30xwiWaPyZKmsQkoF6kkK8gnJWns+tTA t4HTF1gtlDmIbWYifM4FkYJa00X/aCRzNUPwHnHc7RV5V7xHJ2HMx9PaVtH7hXwjyglQ 7qT8V3xFL6IrCaEvKnfzD1O6w62CrLaNBNJaXJY4qFhUH40jcIBrJNUqkHElNkV4RiT1 v1np6E48n7Gdj34DUpSvD4Iv03zvmX75/cMort/hpXZoXHVO1Yx2Fi0q15e/D8PmkKba cQDxlnrcnGnX6Kgh/YCNu5ES3TYoxp5eingGYuHb4UUpSr3dj1jXLfbVWyXrFNkd3PNN cVkw== 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=xqnaWRmSxWCHIXi5Qlq2gni2AdAVZeps2ahh12VkulY=; b=si/6dpF1zQ3qX3nt7zogspUQPrrTaaI9ZFi4K+5ZN6B9ZINVUpAEI1Uz7G3RqSQPlK r9ev60zH4m8SBFewGtP9eh2po+Up+mltgHF8HeFUHe+HSQcPamZS1ksG//hOeDJQhqFL LJAbDtVCXPt29eymOpIFUyhP6SagPInxsjFfTzv/Jspqc3os9NZBG9ze6wNKgWACxeMD 1YaFcPyXn7mci72ltm4c8VZgNS8LKSdkcNci6B6+lKjwhOlVo2TASie+J7liOmbLDMw0 5sSu3JvRu4NvGuIoJyF+6QpyS3pwkwj32/n/J9cjR+F+DC6xqq6Oua5n70d6G7HXb84p rXzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=nOletpYD; 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 eg18-20020a056402289200b0043e85391923si5449175edb.55.2022.09.05.06.55.01; Mon, 05 Sep 2022 06:55:26 -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=nOletpYD; 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 S237678AbiIENXu (ORCPT + 99 others); Mon, 5 Sep 2022 09:23:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237774AbiIENXn (ORCPT ); Mon, 5 Sep 2022 09:23:43 -0400 Received: from mail-qk1-x72f.google.com (mail-qk1-x72f.google.com [IPv6:2607:f8b0:4864:20::72f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E0C043E6C; Mon, 5 Sep 2022 06:23:42 -0700 (PDT) Received: by mail-qk1-x72f.google.com with SMTP id a10so6256336qkl.13; Mon, 05 Sep 2022 06:23:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=xqnaWRmSxWCHIXi5Qlq2gni2AdAVZeps2ahh12VkulY=; b=nOletpYDW/GRPvkaWSlAC0rzt34URfVHbiUKwVMsxFl09VUwy8XOqhWqRsptamq/Dg II+253/l3T6DgJP066py1bWTdICT2vRCXvzy2Ur+pO4VC493+7Sqn84yvDmlJFGAVdYl 5PZSVDMi1QDxBMQa2pV/FSXYTAwvX/lFVcFPmgHoO3U8MnbkwA9h7jonAO1nFwBsGmoW q5f2ZglIOVt/xEgJLA6EBKdc3gOuFnoMDDVILIKTeoTg7qTOPypEYwVwaO1cq1N6YfbI me+dt6lOnpM5B3FzI09ooPbgjOvgXIow30OcLwUv/NaL/eE7AkZh0zMQ2HIMHBfa4q7S WwgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=xqnaWRmSxWCHIXi5Qlq2gni2AdAVZeps2ahh12VkulY=; b=jqQdg8BxLosraqQCfd9lNYRj44R8VGOYDLtQkmJNyGTN8C81d2BO20UqvTzU0j0DYw BAvksOa1oZjPRPIRA0sMTE3lnFJn4W76aeFW0sjQjGBpVNc6kENdK8cQwt0XTjjXhOcg 8n5iw7mkFHa9+CWmh36xGFjnXZqL94zHzcOYOd8XnyZaQmk99bZkXe0Rrn6+kZjTZBvC fDKp18Cr9zomFfwHfuXOsIximcIF9ivWpfT32vyyn8JMzrIpZ4e5l/+mm8xnA989rTJV sPjGWdI1ACS4MLN9SUCQcVdVvz26obXpPILihd3g2tiVFTWHYyV9AwQDdQAduLvS7CB/ vNwg== X-Gm-Message-State: ACgBeo07YvOXT2oBdHAvPvRlA1VRBDOTiB4LAt5/lj3sVstnukwhjeaq 4yEwJtBNPotuAkXmBQlNv4STLWjSTV98ZECDKn4= X-Received: by 2002:a05:620a:288a:b0:6b8:fcfe:db02 with SMTP id j10-20020a05620a288a00b006b8fcfedb02mr33223900qkp.504.1662384221554; Mon, 05 Sep 2022 06:23:41 -0700 (PDT) MIME-Version: 1.0 References: <20220903-gpiod_get_from_of_node-remove-v1-0-b29adfb27a6c@gmail.com> <20220903-gpiod_get_from_of_node-remove-v1-9-b29adfb27a6c@gmail.com> <0fa0c09f-c801-a0c7-1f6e-b6cc8b45d961@gmail.com> In-Reply-To: <0fa0c09f-c801-a0c7-1f6e-b6cc8b45d961@gmail.com> From: Andy Shevchenko Date: Mon, 5 Sep 2022 16:23:05 +0300 Message-ID: Subject: Re: [PATCH v1 09/11] regulator: bd9576: switch to using devm_fwnode_gpiod_get() To: Matti Vaittinen Cc: 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?= , LINUXWATCHDOG , USB , "open list:GPIO SUBSYSTEM" , linux-pci , linux-tegra , "open list:MEMORY TECHNOLOGY..." , Linux Kernel Mailing List , dri-devel , linux-stm32@st-md-mailman.stormreply.com, linux-arm Mailing List Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, 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 Mon, Sep 5, 2022 at 4:19 PM Matti Vaittinen wrote: > On 9/5/22 13:40, Andy Shevchenko wrote: > > On Mon, Sep 5, 2022 at 9:33 AM Dmitry Torokhov > > wrote: ... > >> + vout_mode = device_property_read_bool(pdev->dev.parent, > >> + "rohm,vout1-en-low"); > > > > They all using parent device and you may make code neater by adding > > > > struct device *parent = pdev->dev.parent; > > This is a matter of personal preference. I prefer seeing > pdev->dev.parent - as it is more obvious (to me) what the 'pdev' is than > what 'parent' would be. > > I'd use the local variable only when it shortens at least one of the > lines so that we avoid splitting it. After that being said - I'm not > going to argue over this change either if one who is improving the > driver wants to use the "helper" variable here. And I believe the quoted one is exactly the case of what you are saying above. -- With Best Regards, Andy Shevchenko