Commit c857cc31 authored by Kevin Brace's avatar Kevin Brace

Convert tabs to white spaces for r128_output.c

Signed-off-by: Kevin Brace's avatarKevin Brace <kevinbrace@gmx.com>
parent 0a6d7d93
......@@ -280,10 +280,10 @@ static R128MonitorType R128DisplayDDCConnected(xf86OutputPtr output)
if (r128_output->pI2CBus) {
R128I2CBusPtr pR128I2CBus = &(r128_output->ddc_i2c);
/* XXX: Radeon does something here to appease old monitors. */
OUTREG(pR128I2CBus->ddc_reg, INREG(pR128I2CBus->ddc_reg) | mask1);
OUTREG(pR128I2CBus->ddc_reg, INREG(pR128I2CBus->ddc_reg) & ~mask2);
*MonInfo = xf86DoEDID_DDC2(XF86_SCRN_ARG(pScrn), r128_output->pI2CBus);
/* XXX: Radeon does something here to appease old monitors. */
OUTREG(pR128I2CBus->ddc_reg, INREG(pR128I2CBus->ddc_reg) | mask1);
OUTREG(pR128I2CBus->ddc_reg, INREG(pR128I2CBus->ddc_reg) & ~mask2);
*MonInfo = xf86DoEDID_DDC2(XF86_SCRN_ARG(pScrn), r128_output->pI2CBus);
} else {
xf86DrvMsg(pScrn->scrnIndex, X_WARNING, "DDC2/I2C is not properly initialized\n");
return MT_NONE;
......@@ -297,7 +297,7 @@ static R128MonitorType R128DisplayDDCConnected(xf86OutputPtr output)
MonType = MT_DFP;
else
MonType = MT_CRT;
}
}
}
return MonType;
......@@ -343,8 +343,8 @@ DisplayModePtr R128ProbeOutputModes(xf86OutputPtr output)
}
}
xf86SetModeCrtc(mode, INTERLACE_HALVE_V);
if (mode->status == MODE_OK)
xf86SetModeCrtc(mode, INTERLACE_HALVE_V);
if (mode->status == MODE_OK)
mode->status = R128DoValidMode(output, mode, MODECHECK_FINAL);
}
......@@ -425,7 +425,7 @@ void R128SetupGenericConnectors(ScrnInfoPtr pScrn, R128OutputType *otypes)
} else if (!pR128Ent->HasCRTC2) {
otypes[0] = OUTPUT_DVI;
otypes[1] = OUTPUT_NONE;
return;
return;
}
otypes[0] = OUTPUT_LVDS;
......@@ -474,7 +474,7 @@ Bool R128SetupConnectors(ScrnInfoPtr pScrn)
for (i = 0; i < R128_MAX_BIOS_CONNECTOR; i++) {
if (otypes[i] == OUTPUT_NONE) continue;
R128I2CBusRec i2c;
R128I2CBusRec i2c;
R128OutputPrivatePtr r128_output;
r128_output = xnfcalloc(sizeof(R128OutputPrivateRec), 1);
......@@ -496,11 +496,11 @@ Bool R128SetupConnectors(ScrnInfoPtr pScrn)
output->interlaceAllowed = TRUE;
output->doubleScanAllowed = TRUE;
output->driver_private = r128_output;
output->possible_clones = 0;
if (otypes[i] == OUTPUT_LVDS || !pR128Ent->HasCRTC2)
output->possible_crtcs = 1;
else
output->possible_crtcs = 2;
output->possible_clones = 0;
if (otypes[i] == OUTPUT_LVDS || !pR128Ent->HasCRTC2)
output->possible_crtcs = 1;
else
output->possible_crtcs = 2;
if (otypes[i] != OUTPUT_LVDS && info->DDC) {
i2c.ddc_reg = R128_GPIO_MONID;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment