* [RESEND PATCH] drm/tegra: switch to using devm_fwnode_gpiod_get()
@ 2022-11-08 4:41 Dmitry Torokhov
2022-11-11 14:44 ` Thierry Reding
0 siblings, 1 reply; 2+ messages in thread
From: Dmitry Torokhov @ 2022-11-08 4:41 UTC (permalink / raw)
To: Thierry Reding
Cc: David Airlie, Daniel Vetter, Jonathan Hunter, dri-devel,
linux-tegra, linux-kernel
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 <dmitry.torokhov@gmail.com>
---
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [RESEND PATCH] drm/tegra: switch to using devm_fwnode_gpiod_get()
2022-11-08 4:41 [RESEND PATCH] drm/tegra: switch to using devm_fwnode_gpiod_get() Dmitry Torokhov
@ 2022-11-11 14:44 ` Thierry Reding
0 siblings, 0 replies; 2+ messages in thread
From: Thierry Reding @ 2022-11-11 14:44 UTC (permalink / raw)
To: Dmitry Torokhov, Thierry Reding
Cc: linux-kernel, Daniel Vetter, Jonathan Hunter, David Airlie,
dri-devel, linux-tegra
From: Thierry Reding <treding@nvidia.com>
On Mon, 7 Nov 2022 20:41:42 -0800, Dmitry Torokhov wrote:
> 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.
>
>
Applied, thanks!
[1/1] drm/tegra: switch to using devm_fwnode_gpiod_get()
(no commit info)
Best regards,
--
Thierry Reding <treding@nvidia.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-11-11 14:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-08 4:41 [RESEND PATCH] drm/tegra: switch to using devm_fwnode_gpiod_get() Dmitry Torokhov
2022-11-11 14:44 ` Thierry Reding
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).