drm/tegra: Use GPIO descriptor API
PATCH 1/1 drm/tegra: Use GPIO descriptor API
From: Thierry Reding <[email protected]>
The legacy GPIO API has long been deprecated. Move the driver over to the descriptor-based API, which allows us to get rid of some boilerplate while at it.
Signed-off-by Thierry Reding <[email protected]>
--- drivers/gpu/drm/tegra/drm.h | 3 +- drivers/gpu/drm/tegra/output.c | 52 +++++++++++++--------------------- 2 files changed, 20 insertions(+), 35 deletions(-)
drivers/gpu/drm/tegra/drm.h +1 -2
@@ -127,8 +127,7 @@ struct tegra_output {const struct edid *edid;struct cec_notifier *cec;unsigned int hpd_irq; -int hpd_gpio; -enum of_gpio_flags hpd_gpio_flags; +struct gpio_desc *hpd_gpio;struct drm_encoder encoder;struct drm_connector connector;
drivers/gpu/drm/tegra/output.c +19 -33
97 lines not on this page · raw message
Signature · 6 lines
2.21.0 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel