From 9d8ffbc5372bea4e1d139a32ac6f7c7fb1aad869 Mon Sep 17 00:00:00 2001 From: Matthew Garrett Date: Thu, 13 Sep 2007 02:50:55 +0100 Subject: Avoid having multiple defines with the same name, as it tends to cause things not to work so well --- include/radeon_reg.h | 2 +- xorg/avivo_output.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/radeon_reg.h b/include/radeon_reg.h index e65ead2..239496c 100644 --- a/include/radeon_reg.h +++ b/include/radeon_reg.h @@ -3502,7 +3502,7 @@ # define AVIVO_LVTMA_PWRSEQ_STATE_SYNCEN (1 << 2) # define AVIVO_LVTMA_PWRSEQ_STATE_BLON (1 << 3) # define AVIVO_LVTMA_PWRSEQ_STATE_DONE (1 << 4) -# define AVIVO_LVTMA_PWRSEQ_STATE (8) +# define AVIVO_LVTMA_PWRSEQ_STATE_STATUS (8) #define AVIVO_LVDS_BACKLIGHT_CNTL 0x7af8 # define AVIVO_LVDS_BACKLIGHT_CNTL_EN (1 << 0) diff --git a/xorg/avivo_output.c b/xorg/avivo_output.c index f613395..a78faa8 100644 --- a/xorg/avivo_output.c +++ b/xorg/avivo_output.c @@ -261,7 +261,7 @@ avivo_output_lvds_dpms(xf86OutputPtr output, int mode) do { tmp = INREG(AVIVO_LVTMA_PWRSEQ_STATE); usleep(100); - } while (tmp != 0x8 << AVIVO_LVTMA_PWRSEQ_STATE); + } while (tmp != 0x8 << AVIVO_LVTMA_PWRSEQ_STATE_STATUS); OUTREG(AVIVO_LVTMA_TRANSMITTER_ENABLE, 0); OUTREG(AVIVO_LVTMA_CLOCK_ENABLE, 0); break; -- cgit v1.2.3