From e946c097f0438afbea6f3dd37ee39d67d415708c Mon Sep 17 00:00:00 2001 From: Matt Turner <mattst88@gmail.com> Date: Tue, 11 Mar 2008 19:07:58 -0400 Subject: [PATCH] Fix a few warnings --- src/atombios_crtc.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/atombios_crtc.c') diff --git a/src/atombios_crtc.c b/src/atombios_crtc.c index d18f2cf3..6fbf7ed7 100644 --- a/src/atombios_crtc.c +++ b/src/atombios_crtc.c @@ -237,7 +237,7 @@ atombios_crtc_set_pll(xf86CrtcPtr crtc, DisplayModePtr mode) switch(minor) { case 1: case 2: - spc2_ptr = &spc_param.sPCLKInput; + spc2_ptr = (PIXEL_CLOCK_PARAMETERS_V2*)&spc_param.sPCLKInput; spc2_ptr->usPixelClock = sclock; spc2_ptr->usRefDiv = ref_div; spc2_ptr->usFbDiv = fb_div; @@ -248,8 +248,7 @@ atombios_crtc_set_pll(xf86CrtcPtr crtc, DisplayModePtr mode) ptr = &spc_param; break; case 3: - spc3_ptr = &spc_param.sPCLKInput; - + spc3_ptr = (PIXEL_CLOCK_PARAMETERS_V3*)&spc_param.sPCLKInput; spc3_ptr->usPixelClock = sclock; spc3_ptr->usRefDiv = ref_div; spc3_ptr->usFbDiv = fb_div; @@ -331,7 +330,6 @@ atombios_crtc_mode_set(xf86CrtcPtr crtc, xf86CrtcConfigPtr xf86_config = XF86_CRTC_CONFIG_PTR(pScrn); unsigned char *RADEONMMIO = info->MMIO; unsigned long fb_location = crtc->scrn->fbOffset + info->fbLocation; - Bool tilingOld = info->tilingEnabled; int need_tv_timings = 0; int i, ret; SET_CRTC_TIMING_PARAMETERS_PS_ALLOCATION crtc_timing; -- cgit v1.2.3