Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp302397rwn; Thu, 8 Sep 2022 01:40:19 -0700 (PDT) X-Google-Smtp-Source: AA6agR5MqK3VZbeHOrJA6BQ45j9QDOJU0kggXVq/QbgiQHsQLbE+WW6FXKKQ4IXtO0agU95HRp04 X-Received: by 2002:a63:4b62:0:b0:421:8c8b:163c with SMTP id k34-20020a634b62000000b004218c8b163cmr6691906pgl.182.1662626419248; Thu, 08 Sep 2022 01:40:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662626419; cv=none; d=google.com; s=arc-20160816; b=QQ4QQmmSs3ali1lrkPGTd6uyIfmM4lBV8wCRQuz3bEL9KzvWdRmmuIV5CpOXN1eM6g XkQwUopIjujsu6DqVcL8CszdlPpuyowrGywyNZMCPIS3z6jlz0vig4sBkhvIDbEFYLaV Nb1tkBZmBYgTut7O07t99XIEjmWjTSNKvOkR6gy4JQvuWKeAAvmpRrVIISVasBcqrbXe nGF+x4cgqUuuGguFO9yHvIdybOm9bgRn51TZWYMnckif7newBznHvc8c9K5bqtNjty1U h3o1T7mYhmaK3MbGBsonPVd74knO33TXNLbgkUAXrOVHn4rpc4zSDgbs+Yw2mtpDtxTI tO+Q== 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=jfNxp3kBTvkWQp+z++yGCicLFIdP3WSDrE1bvSJvPmY=; b=CMKt/fbZX+lOxGtUECngpqXD9yO/iY6dwLgbzDRJIQUS2XTbn8tu0in942pifENDYu S+6mKks9kUxKU3S0Z6v5YF+y2yRFLHH9I1EYDQs/xUPqqY4exnwcgnsg+gscCutgvz8L M/9k7mJOkcIlHxQMnr9L2Xu5WkaWMXO1jFv+FEPnpSIgwQqj1YobQAoZm48vIl3/Wiup 0U3Q4y+GPfnj5G5Z32SnkBP4KsVnOoOU4KdXhRjNR7DHmccSGIRi2WhSB5uuMaLH/AiA vM7IpvLXa/o2Vo2oYDiWGel26nOTAOymWrj45ptB1h8bGAEJUZ6Qq6gysPUvVM1peseB P+yQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=N7OrHuhP; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l4-20020a17090270c400b0016dbc1b5b31si15355288plt.61.2022.09.08.01.40.07; Thu, 08 Sep 2022 01:40:19 -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=@linaro.org header.s=google header.b=N7OrHuhP; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230420AbiIHIcr (ORCPT + 99 others); Thu, 8 Sep 2022 04:32:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230329AbiIHIcl (ORCPT ); Thu, 8 Sep 2022 04:32:41 -0400 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ED802DABB3 for ; Thu, 8 Sep 2022 01:32:38 -0700 (PDT) Received: by mail-ej1-x629.google.com with SMTP id u9so36379677ejy.5 for ; Thu, 08 Sep 2022 01:32:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=jfNxp3kBTvkWQp+z++yGCicLFIdP3WSDrE1bvSJvPmY=; b=N7OrHuhPmgpLtKe7tnHDZ7RwDs9JtGDJ1pEZAugqax5yV6+dKsP1g39dwektERtKK9 CqiUuFQqXSSuUbo+lbqds7kHNQyuAL/Veez+V9HFOwJssWjKLEA54Jx+xvOnWdZg1gU6 JOxfP/9/NxYiQrnLd3UxjZHv8TMQ+wgHt7KdSXV0V6cbJmW4D2Gwb7ov2pd9SlH66fj6 WijmIrNii/pRVcLStzTngeZFuroX0sCBHB94+ZwmirZBSIfw1kFdXAtYlaSw1bazNWqB 9cSY6xpglQGMGo0jkZGZJzkv20FP4T7zRyAO/IH7JbUYsvCN+q3yaVGE1LQNbtGUJdZX OmGQ== 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=jfNxp3kBTvkWQp+z++yGCicLFIdP3WSDrE1bvSJvPmY=; b=hrfhH9/6faWf6/PqQIN9lMDcgcjj33KFrYM7HECpxVXpiyXznPXfpAr60UhO5ckYXo 0go8FtVzyAnvSIGJHWzTm1/ZchrfGsI0BQRcTMpfHuAa1/RMBXJmpbfhTgTFiK824U5A jK427ndeo+G0du/mi/c6ZmqC2zjY2z5tfv3QplwLuFQreGd93L7Q7XGlxThV7QRlNABq 3eceRTX8gYhhErgE5UzP5Gj3bU5zUrtSRUXRu5MVEF0odyJ/+Qwn4TdlgvzbQInPEa4J mlXauCk0vhnoOqZsjf6/tUv8vUVFz+kgBolBmYl+q6zjjLT0XAf2kkZdznblJjTPktJ7 iqGA== X-Gm-Message-State: ACgBeo3MkakWw5gdzFcksWLdomj+BSnrfj6CHho2rdrVqrWsv3tJamDj aR2VQhPMT8Lb+12ORQf32YRkzOFwS3a4SHzzwd0Ptg== X-Received: by 2002:a17:907:1690:b0:770:80d4:ec4c with SMTP id hc16-20020a170907169000b0077080d4ec4cmr4628049ejc.690.1662625957353; Thu, 08 Sep 2022 01:32:37 -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-6-b29adfb27a6c@gmail.com> In-Reply-To: <20220903-gpiod_get_from_of_node-remove-v1-6-b29adfb27a6c@gmail.com> From: Linus Walleij Date: Thu, 8 Sep 2022 10:32:26 +0200 Message-ID: Subject: Re: [PATCH v1 06/11] PCI: aardvark: switch to using devm_gpiod_get_optional() To: Dmitry Torokhov Cc: Thierry Reding , Mark Brown , Matti Vaittinen , Lorenzo Pieralisi , Claudiu Beznea , Liam Girdwood , Wim Van Sebroeck , Greg Kroah-Hartman , Guenter Roeck , Miquel Raynal , 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?= , 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 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,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,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 Mon, Sep 5, 2022 at 8:31 AM 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 > device property API. > > I believe that the only reason the driver, instead of the standard > devm_gpiod_get_optional(), used devm_gpiod_get_from_of_node() is > because it wanted to set up a pretty consumer name for the GPIO, > and we now have a special API for that. > > Signed-off-by: Dmitry Torokhov Reviewed-by: Linus Walleij Yours, Linus Walleij