drm/tegra: switch to using devm_fwnode_gpiod_get()
PATCH RESEND 1/1 drm/tegra: switch to using devm_fwnode_gpiod_get()
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 <[email protected]>
---
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(-)
drivers/gpu/drm/tegra/output.c +5 -5
@@ -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);
Signature · 5 lines
2.38.1.431.g37b22c650d-goog -- Dmitry
Thierry Reding
AppliedFrom: Thierry Reding <[email protected]>
Quoted 5 lines · Dmitry Torokhov
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 usedevm_fwnode_gpiod_get()instead.
Applied, thanks!
[1/1] drm/tegra: switch to using devm_fwnode_gpiod_get()
(no commit info)
Best regards,
Signature · 1 line
Thierry Reding <[email protected]>