summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Airlie <airlied@linux.ie>2007-02-02 14:30:16 +1100
committerDave Airlie <airlied@linux.ie>2007-02-02 15:34:32 +1100
commit15c68ac19ff9971ae02cf52036ba36ddea1a6759 (patch)
tree749f4bd4261135506325201158eae7a5c3720d60
parent72ef23ef7dd159d827e8e122482a58928d532268 (diff)
rename some variables to output from connector
-rw-r--r--src/radeon_display.c42
1 files changed, 21 insertions, 21 deletions
diff --git a/src/radeon_display.c b/src/radeon_display.c
index 7f19f79..b9d2bee 100644
--- a/src/radeon_display.c
+++ b/src/radeon_display.c
@@ -1294,7 +1294,7 @@ Bool RADEONMapControllers(ScrnInfoPtr pScrn)
RADEONEntPtr pRADEONEnt = RADEONEntPriv(pScrn);
unsigned char *RADEONMMIO = info->MMIO;
Bool head_reversed = FALSE;
- xf86OutputPtr connector;
+ xf86OutputPtr output;
RADEONOutputPrivatePtr radeon_output;
info->MergeType = MT_NONE;
@@ -1374,50 +1374,50 @@ Bool RADEONMapControllers(ScrnInfoPtr pScrn)
if(pRADEONEnt->HasCRTC2) {
if(info->IsSecondary) {
- connector = RADEONGetCrtcConnector(pScrn, 2);
- radeon_output = connector->driver_private;
+ output = RADEONGetCrtcConnector(pScrn, 2);
+ radeon_output = output->driver_private;
pRADEONEnt->Controller[1]->binding = 2;
- if (connector) {
+ if (output) {
info->DisplayType = radeon_output->MonType;
- pScrn->monitor->DDC = connector->MonInfo;
+ pScrn->monitor->DDC = output->MonInfo;
}
} else {
- connector = RADEONGetCrtcConnector(pScrn, 1);
- radeon_output = connector->driver_private;
+ output = RADEONGetCrtcConnector(pScrn, 1);
+ radeon_output = output->driver_private;
pRADEONEnt->Controller[0]->binding = 1;
- if (connector) {
+ if (output) {
info->DisplayType = radeon_output->MonType;
- pScrn->monitor->DDC = connector->MonInfo;
+ pScrn->monitor->DDC = output->MonInfo;
}
}
if(!pRADEONEnt->HasSecondary) {
- connector = RADEONGetCrtcConnector(pScrn, 2);
- radeon_output = connector->driver_private;
- if (connector)
+ output = RADEONGetCrtcConnector(pScrn, 2);
+ radeon_output = output->driver_private;
+ if (output)
info->MergeType = radeon_output->MonType;
if (info->MergeType)
pRADEONEnt->Controller[1]->binding = 1;
}
} else {
- connector = RADEONGetCrtcConnector(pScrn, 1);
- radeon_output = connector->driver_private;
- if (connector) {
+ output = RADEONGetCrtcConnector(pScrn, 1);
+ radeon_output = output->driver_private;
+ if (output) {
if (radeon_output->MonType == MT_NONE)
radeon_output->MonType = MT_CRT;
info->DisplayType = radeon_output->MonType;
- pScrn->monitor->DDC = connector->MonInfo;
+ pScrn->monitor->DDC = output->MonInfo;
}
- connector = RADEONGetCrtcConnector(pScrn, 2);
- radeon_output = connector->driver_private;
- if (connector)
+ output = RADEONGetCrtcConnector(pScrn, 2);
+ radeon_output = output->driver_private;
+ if (output)
radeon_output->MonType = MT_NONE;
pRADEONEnt->Controller[1]->binding = 1;
}
if (!info->IsSecondary) {
- connector = RADEONGetCrtcConnector(pScrn, 2);
- radeon_output = connector->driver_private;
+ output = RADEONGetCrtcConnector(pScrn, 2);
+ radeon_output = output->driver_private;
xf86DrvMsg(pScrn->scrnIndex, X_INFO, "---- Primary Head: Port%d ---- \n", head_reversed?2:1);
if (radeon_output->MonType != MT_NONE)
xf86DrvMsg(pScrn->scrnIndex, X_INFO, "---- Secondary Head: Port%d ----\n", head_reversed?1:2);