summaryrefslogtreecommitdiff
path: root/linux-core/intel_modes.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2008-05-30 11:25:41 +1000
committerDave Airlie <airlied@redhat.com>2008-05-30 11:25:41 +1000
commit98c5cf7f6fc51f1a8f5f90b3895009cd38dd8f22 (patch)
treed6c6d50e2e244d953e135cdc71dbd1aa066709e2 /linux-core/intel_modes.c
parentdf8cd54286fbae5903d8ede390ec4a11cb6c4b6c (diff)
modesetting: reorganise out crtc/outputs are allocated.
Use subclassing from the drivers to allocate the objects. This saves two objects being allocated for each crtc/output and generally makes exit paths cleaner.
Diffstat (limited to 'linux-core/intel_modes.c')
-rw-r--r--linux-core/intel_modes.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/linux-core/intel_modes.c b/linux-core/intel_modes.c
index f8bf496c..8e9a506a 100644
--- a/linux-core/intel_modes.c
+++ b/linux-core/intel_modes.c
@@ -15,7 +15,7 @@
*/
bool intel_ddc_probe(struct drm_output *output)
{
- struct intel_output *intel_output = output->driver_private;
+ struct intel_output *intel_output = to_intel_output(output);
u8 out_buf[] = { 0x0, 0x0};
u8 buf[2];
int ret;
@@ -49,7 +49,7 @@ bool intel_ddc_probe(struct drm_output *output)
*/
int intel_ddc_get_modes(struct drm_output *output)
{
- struct intel_output *intel_output = output->driver_private;
+ struct intel_output *intel_output = to_intel_output(output);
struct edid *edid;
int ret = 0;