[Intel-gfx] [PATCH 15/17] drm/i915: Use drm_helper_connector_dpms for DisplayPort

Keith Packard keithp at keithp.com
Sun May 31 05:42:39 CEST 2009


Signed-off-by: Keith Packard <keithp at keithp.com>
---
 drivers/gpu/drm/i915/intel_dp.c |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c
index 56b0119..c9dd28b 100644
--- a/drivers/gpu/drm/i915/intel_dp.c
+++ b/drivers/gpu/drm/i915/intel_dp.c
@@ -1041,7 +1041,14 @@ static const struct drm_encoder_helper_funcs intel_dp_helper_funcs = {
 	.commit = intel_encoder_commit,
 };
 
+static const struct drm_connector_helper_funcs intel_dp_connector_helper_funcs = {
+	.get_modes = intel_dp_get_modes,
+	.mode_valid = intel_dp_mode_valid,
+	.best_encoder = intel_best_encoder,
+};
+
 static const struct drm_connector_funcs intel_dp_connector_funcs = {
+	.dpms = drm_helper_connector_dpms,
 	.save = intel_dp_save,
 	.restore = intel_dp_restore,
 	.detect = intel_dp_detect,
@@ -1049,12 +1056,6 @@ static const struct drm_connector_funcs intel_dp_connector_funcs = {
 	.destroy = intel_dp_destroy,
 };
 
-static const struct drm_connector_helper_funcs intel_dp_connector_helper_funcs = {
-	.get_modes = intel_dp_get_modes,
-	.mode_valid = intel_dp_mode_valid,
-	.best_encoder = intel_best_encoder,
-};
-
 static void intel_dp_enc_destroy(struct drm_encoder *encoder)
 {
 	drm_encoder_cleanup(encoder);
-- 
1.6.3.1




More information about the Intel-gfx mailing list