Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2925836rwb; Mon, 7 Nov 2022 21:03:01 -0800 (PST) X-Google-Smtp-Source: AMsMyM7yYdN4AdoH3hrSjW6t3yKXw6KiWZkU9hym8RorM7BbucW3ifjJ0kJTWI42vYNWyJYj+yZC X-Received: by 2002:a17:902:f78c:b0:17a:ef1:e902 with SMTP id q12-20020a170902f78c00b0017a0ef1e902mr53594321pln.5.1667883781340; Mon, 07 Nov 2022 21:03:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667883781; cv=none; d=google.com; s=arc-20160816; b=IKOPgOYJD2sl5Jxi3baEeLHId8guSfb+OTBGUexG5ZG7FkgkeqJVkZf7NBsZugDimf 4x7UD4svCUNybgfUHynxxADcXuHqu+yeCKBU7UHhczhdoi7cdceQS7q68h1Kwr3bLm6l HwmMPVkBxOHpk6Fmvh7pfRtKIgArc4+FoBP/0shexE8ca1SEAS8TdAzqXAyX7Z2jXdIT La3cjNLPu/pUY0V4y8WKMMVcxYomG9LDL6OWAbA2kh8MBUHAYG0TNZpC5RiM5D5mNvz6 O38EieFfZmR0z98m7EbFN+4VPHoMMbgDRjVLosgm/O8QaVEHmAF5st8d4mFlhjesdluo PU2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=1LhW8LVwSoxQQpyW4009bvl9o+iGdIJ8EYui4FeN5lI=; b=W79cUKEDayekXvtOxxwlLdVxh+KuSw6/pjWg6W1FB11Zddu+Cs6BZCAdIF0mF82FDD 61XakfiLhMFgY/Co55hHiK5D9dc8IjgjXkHUnC6VMR1BsOFKD7e0Jr+vNwdfQxLiBX3c TRpNeHovBwkYJux8/ez3j9sXcPCfQBhitjk2IoeI2+7dnNHrZ4zDbMjcE4UE6pD6rcN/ DIyD7iccMIPhz62cAc2fj6wUh6CVkVUGi47ZAiiiu1tVCLBqnG7NHz08imWRHOil6vJ5 3gOIzn5LLbJ+D+9Dni8+JZqO/k4SjQkEsNMunT4ApbsGtNojysrocPZeZdrsVEQqxA4L CJQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=JrLTnqEq; 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 x5-20020a654145000000b0047060a55c40si9551774pgp.712.2022.11.07.21.02.50; Mon, 07 Nov 2022 21:03:01 -0800 (PST) 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=JrLTnqEq; 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 S232955AbiKHEl5 (ORCPT + 91 others); Mon, 7 Nov 2022 23:41:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232816AbiKHEls (ORCPT ); Mon, 7 Nov 2022 23:41:48 -0500 Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E87B5E0C5; Mon, 7 Nov 2022 20:41:46 -0800 (PST) Received: by mail-pl1-x630.google.com with SMTP id io19so13130496plb.8; Mon, 07 Nov 2022 20:41:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=1LhW8LVwSoxQQpyW4009bvl9o+iGdIJ8EYui4FeN5lI=; b=JrLTnqEqQQX/olx97uyFYEYYUbQ36qk5VkyCuZyuuWn1R7J3wu+34ybKhjRzMLHpkK SLYbJcs9eIRjjJmcIfRkwNgdkz/j98i7O1M2SL0VB8dHybCDB7FgWk32NbOPFCD3LOpf xTbXcCVQ6J1hJ9CQgnf8YLZQlKaACiv/VX+iAnPD/iL/0nnjzqyM7jorrphS2C3j5rsV W9ZWnrLfcasVe1qsmIqxMfUtyNb4e8wGiVo6tzHOE9t49CmEKZP3m4JR2CtX9tI6wkqo WOqvpRjODd2B1RADPzMGK8q0DyHrNxzgd2RTkFe8W1rXXGhYEbv/UjzGnmNJClev36Qi CDOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=1LhW8LVwSoxQQpyW4009bvl9o+iGdIJ8EYui4FeN5lI=; b=evA+SMW1RbiuujN1jMf5EK3kB3WJqnqX9w1vuFTYzJ3pUVdmTlSuF8EieSdTLNOIT0 Amg6F00wSufSkYG2iQtW8QYciwM9ps78uy/TzNN/bx63O2sUYdYC0XmXaORlxmhOk2y/ PKRPyjslC0eMi6Wr7QX7GcXZ2dZL0mLJyFRZlBP5gs/oRs3OKEK6+rAkzL5IbL7PejKi mcYFYquPE0gjWUMHVVnnc7OAHwAbIf8bZBbRIlAbrmzwN8/b9XnFp+YDt1D2++Ur8Plq GtSPSwzNuWLlnEmtAlBuZjdwDCQb1tizp5YlOU6eron9Os7DRf9rweeoyGN5TEZGokO5 7+lQ== X-Gm-Message-State: ACrzQf3+O5Z+dbIadr7Ys/aSigrAcxPj2WomMn6k4S+/m8h4jwUVk6zm dRdr/dthPtZKcxCvbe8Iok5VesWd9N8= X-Received: by 2002:a17:90a:c7c7:b0:20a:db08:8a8a with SMTP id gf7-20020a17090ac7c700b0020adb088a8amr913509pjb.141.1667882506250; Mon, 07 Nov 2022 20:41:46 -0800 (PST) Received: from google.com ([2620:15c:9d:2:fb10:b5b0:232e:4afb]) by smtp.gmail.com with ESMTPSA id y11-20020a1709029b8b00b00178b6ccc8a0sm5810357plp.51.2022.11.07.20.41.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Nov 2022 20:41:45 -0800 (PST) Date: Mon, 7 Nov 2022 20:41:42 -0800 From: Dmitry Torokhov To: Thierry Reding Cc: David Airlie , Daniel Vetter , Jonathan Hunter , dri-devel@lists.freedesktop.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RESEND PATCH] drm/tegra: switch to using devm_fwnode_gpiod_get() Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 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 devm_gpiod_get_from_of_node() is going away and GPIO consumers should use generic device/firmware node APIs to fetch GPIOs assigned to them. Switch the driver to use devm_fwnode_gpiod_get() instead. Signed-off-by: Dmitry Torokhov --- Marked as "resend" since the contents of the patch are the same (however I did update the description a bit). drivers/gpu/drm/tegra/output.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/tegra/output.c b/drivers/gpu/drm/tegra/output.c index 47d26b5d9945..a8925dcd7edd 100644 --- a/drivers/gpu/drm/tegra/output.c +++ b/drivers/gpu/drm/tegra/output.c @@ -133,11 +133,11 @@ int tegra_output_probe(struct tegra_output *output) } } - output->hpd_gpio = devm_gpiod_get_from_of_node(output->dev, - output->of_node, - "nvidia,hpd-gpio", 0, - GPIOD_IN, - "HDMI hotplug detect"); + output->hpd_gpio = devm_fwnode_gpiod_get(output->dev, + of_fwnode_handle(output->of_node), + "nvidia,hpd", + GPIOD_IN, + "HDMI hotplug detect"); if (IS_ERR(output->hpd_gpio)) { if (PTR_ERR(output->hpd_gpio) != -ENOENT) return PTR_ERR(output->hpd_gpio); -- 2.38.1.431.g37b22c650d-goog -- Dmitry