diff options
author | Alex Deucher <alex@t41p.hsd1.va.comcast.net> | 2007-05-13 11:44:50 -0400 |
---|---|---|
committer | Alex Deucher <alex@t41p.hsd1.va.comcast.net> | 2007-05-13 11:44:50 -0400 |
commit | 0550c37ecc434b8075fb3c367d100ff27625bb64 (patch) | |
tree | 817e2be29477ac78edac8f9e64de95b8dd8d5124 /src/radeon_display.c | |
parent | 117220527de9fd3158f600645bcfcaf46847f45f (diff) |
RADEON: don't need to pass pScrn to EnableDisplay()
Diffstat (limited to 'src/radeon_display.c')
-rw-r--r-- | src/radeon_display.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/radeon_display.c b/src/radeon_display.c index 897db27c..cf1d1feb 100644 --- a/src/radeon_display.c +++ b/src/radeon_display.c @@ -1370,8 +1370,9 @@ void RADEONDisableDisplays(ScrnInfoPtr pScrn) { } /* This is to be used enable/disable displays dynamically */ -void RADEONEnableDisplay(ScrnInfoPtr pScrn, xf86OutputPtr output, BOOL bEnable) +void RADEONEnableDisplay(xf86OutputPtr output, BOOL bEnable) { + ScrnInfoPtr pScrn = output->scrn; RADEONInfoPtr info = RADEONPTR(pScrn); RADEONSavePtr save = &info->ModeReg; unsigned char * RADEONMMIO = info->MMIO; @@ -2216,13 +2217,13 @@ radeon_dpms(xf86OutputPtr output, int mode) switch(mode) { case DPMSModeOn: - RADEONEnableDisplay(pScrn, output, TRUE); + RADEONEnableDisplay(output, TRUE); /* RADEONDPMSSetOn(output);*/ break; case DPMSModeOff: case DPMSModeSuspend: case DPMSModeStandby: - RADEONEnableDisplay(pScrn, output, FALSE); + RADEONEnableDisplay(output, FALSE); /*RADEONDPMSSetOff(output);*/ break; } @@ -2314,7 +2315,7 @@ radeon_mode_set(xf86OutputPtr output, DisplayModePtr mode, RADEONRestoreDACRegisters(pScrn, &info->ModeReg); } - RADEONEnableDisplay(pScrn, output, TRUE); + RADEONEnableDisplay(output, TRUE); } static void |