diff options
author | Keith Packard <keithp@bouzouki.jf.intel.com> | 2006-12-13 13:15:14 -0800 |
---|---|---|
committer | Keith Packard <keithp@bouzouki.jf.intel.com> | 2006-12-13 13:15:14 -0800 |
commit | 3fe802453a85183a69c36a098639895f49b17df1 (patch) | |
tree | d1ebfa96e8cf067cc161799384d0a8586d18fa6c /src/i830_sdvo.c | |
parent | 0f6addc8a6aeb9bd041d0f8e8e5850e76764ba51 (diff) |
Move xf86CrtcConfig to ScrnInfo private.
Pull xf86CrtcConfig out of the driver private structure and allocate a
ScrnInfo private index for it. Also, make the arrays of outputs and crtcs
dynamic instead of fixed.
Diffstat (limited to 'src/i830_sdvo.c')
-rw-r--r-- | src/i830_sdvo.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/i830_sdvo.c b/src/i830_sdvo.c index 90a62c00..fc17efde 100644 --- a/src/i830_sdvo.c +++ b/src/i830_sdvo.c @@ -951,12 +951,12 @@ i830_sdvo_dump_device(xf86OutputPtr output) void i830_sdvo_dump(ScrnInfoPtr pScrn) { - I830Ptr pI830 = I830PTR(pScrn); + xf86CrtcConfigPtr xf86_config = XF86_CRTC_CONFIG_PTR(pScrn); int i; - for (i = 0; i < pI830->xf86_config.num_output; i++) + for (i = 0; i < xf86_config->num_output; i++) { - xf86OutputPtr output = pI830->xf86_config.output[i]; + xf86OutputPtr output = xf86_config->output[i]; I830OutputPrivatePtr intel_output = output->driver_private; if (intel_output->type == I830_OUTPUT_SDVO) @@ -995,7 +995,7 @@ static DisplayModePtr i830_sdvo_get_modes(xf86OutputPtr output) { ScrnInfoPtr pScrn = output->scrn; - I830Ptr pI830 = I830PTR(pScrn); + xf86CrtcConfigPtr xf86_config = XF86_CRTC_CONFIG_PTR(pScrn); DisplayModePtr modes; xf86OutputPtr crt; @@ -1008,7 +1008,7 @@ i830_sdvo_get_modes(xf86OutputPtr output) * but it does load-detect as connected. So, just steal the DDC bits from * analog when we fail at finding it the right way. */ - crt = pI830->xf86_config.output[0]; + crt = xf86_config->output[0]; if (crt->funcs->detect(crt) == XF86OutputStatusDisconnected) { return crt->funcs->get_modes(crt); } |