aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/gma500/psb_intel_display.c
diff options
context:
space:
mode:
authorPatrik Jakobsson <patrik.r.jakobsson@gmail.com>2011-12-19 16:39:53 -0500
committerDave Airlie <airlied@redhat.com>2011-12-20 05:23:05 -0500
commit75e9d019d5625032b708576e02e025c79e04ae44 (patch)
treeeba617a277eaa90166fa0c7b3176690e805453b4 /drivers/gpu/drm/gma500/psb_intel_display.c
parent9e38a66171a297f150a0332469ca3f186f2766da (diff)
gma500: Initial support for our encoder and connector structs
First step towards adding i915 alike encoder and connector abstractions. This will make life easier when adding i915 output code into our driver. It also removes the old psb_intel_output struct. Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com> Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/gma500/psb_intel_display.c')
-rw-r--r--drivers/gpu/drm/gma500/psb_intel_display.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/gma500/psb_intel_display.c b/drivers/gpu/drm/gma500/psb_intel_display.c
index 7bc0edee9c0d..b6f6cf589739 100644
--- a/drivers/gpu/drm/gma500/psb_intel_display.c
+++ b/drivers/gpu/drm/gma500/psb_intel_display.c
@@ -1429,3 +1429,10 @@ struct drm_encoder *psb_intel_best_encoder(struct drm_connector *connector)
1429 return &psb_intel_output->enc; 1429 return &psb_intel_output->enc;
1430} 1430}
1431 1431
1432void psb_intel_connector_attach_encoder(struct psb_intel_connector *connector,
1433 struct psb_intel_encoder *encoder)
1434{
1435 connector->encoder = encoder;
1436 drm_mode_connector_attach_encoder(&connector->base,
1437 &encoder->base);
1438}