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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/geode_ddc.c b/src/geode_ddc.c
index 8227207..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;