diff --git a/hw/xfree86/i2c/xf86i2c.c b/hw/xfree86/i2c/xf86i2c.c index e1e06e19e5..c70aaf1ac4 100644 --- a/hw/xfree86/i2c/xf86i2c.c +++ b/hw/xfree86/i2c/xf86i2c.c @@ -769,7 +769,7 @@ xf86I2CBusInit(I2CBusPtr b) } I2CBusPtr -xf86I2CFindBus(int scrnIndex, char *name) +xf86I2CFindBus(int scrnIndex, const char *name) { I2CBusPtr p; diff --git a/hw/xfree86/i2c/xf86i2c.h b/hw/xfree86/i2c/xf86i2c.h index 7a9b12f309..edc5f02cfc 100644 --- a/hw/xfree86/i2c/xf86i2c.h +++ b/hw/xfree86/i2c/xf86i2c.h @@ -59,7 +59,7 @@ extern _X_EXPORT void xf86DestroyI2CBusRec(I2CBusPtr pI2CBus, Bool unalloc, #define I2CBusInit xf86I2CBusInit extern _X_EXPORT Bool xf86I2CBusInit(I2CBusPtr pI2CBus); -extern _X_EXPORT I2CBusPtr xf86I2CFindBus(int scrnIndex, char *name); +extern _X_EXPORT I2CBusPtr xf86I2CFindBus(int scrnIndex, const char *name); extern _X_EXPORT int xf86I2CGetScreenBuses(int scrnIndex, I2CBusPtr ** pppI2CBus);