summaryrefslogtreecommitdiff
path: root/src/geode_ddc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/geode_ddc.c')
-rw-r--r--src/geode_ddc.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/geode_ddc.c b/src/geode_ddc.c
index 7b8277d..0a873c4 100644
--- a/src/geode_ddc.c
+++ b/src/geode_ddc.c
@@ -117,7 +117,7 @@ geode_ddc_getbits(I2CBusPtr b, int *scl, int *sda)
}
Bool
-GeodeI2CInit(ScrnInfoPtr pScrni, I2CBusPtr * ptr, char *name)
+GeodeI2CInit(ScrnInfoPtr pScrni, I2CBusPtr * ptr, const char *name)
{
I2CBusPtr bus;
unsigned int ddciobase;
@@ -150,7 +150,7 @@ GeodeI2CInit(ScrnInfoPtr pScrni, I2CBusPtr * ptr, char *name)
if (!bus)
return FALSE;
- bus->BusName = name;
+ bus->BusName = (char *)name;
bus->scrnIndex = pScrni->scrnIndex;
bus->I2CGetBits = geode_ddc_getbits;
@@ -173,12 +173,10 @@ GeodeGetDDC(ScrnInfoPtr pScrni)
if (!GeodeI2CInit(pScrni, &bus, "CS5536 DDC BUS"))
return NULL;
- mon = xf86DoEDID_DDC2(DDC_CALL(pScrni), bus);
+ mon = xf86DoEDID_DDC2(pScrni, bus);
-#if (XORG_VERSION_CURRENT >= XORG_VERSION_NUMERIC(1,4,99,0,0))
if (mon)
xf86DDCApplyQuirks(pScrni->scrnIndex, mon);
-#endif
xf86DestroyI2CBusRec(bus, FALSE, FALSE);