Skip to contentSkip to conversation

drm/tegra: Use GPIO descriptor API

PATCH New Thierry Reding 1 participant 1 message Jun 5, 2019

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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.

---
 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
index 70154c253d45..488f36f00bd8 100644
@@ -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