diff --git a/hw/xfree86/i2c/xf86i2c.c b/hw/xfree86/i2c/xf86i2c.c index 55a6cb059..77e3c2634 100644 --- a/hw/xfree86/i2c/xf86i2c.c +++ b/hw/xfree86/i2c/xf86i2c.c @@ -818,6 +818,7 @@ xf86I2CBusInit(I2CBusPtr b) if (b->I2CPutByte == NULL || b->I2CGetByte == NULL || b->I2CAddress == NULL || + b->I2CStart == NULL || b->I2CStop == NULL) return FALSE; } else { @@ -825,6 +826,7 @@ xf86I2CBusInit(I2CBusPtr b) b->I2CGetByte = I2CGetByte; b->I2CAddress = I2CAddress; b->I2CStop = I2CStop; + b->I2CStart = I2CStart; } } diff --git a/hw/xfree86/i2c/xf86i2c.h b/hw/xfree86/i2c/xf86i2c.h index b6ef41feb..099406e8f 100644 --- a/hw/xfree86/i2c/xf86i2c.h +++ b/hw/xfree86/i2c/xf86i2c.h @@ -27,6 +27,7 @@ typedef struct _I2CBusRec { /* Look at the generic routines to see how these functions should behave. */ + Bool (*I2CStart) (I2CBusPtr b, int timeout); Bool (*I2CAddress)(I2CDevPtr d, I2CSlaveAddr); void (*I2CStop) (I2CDevPtr d); Bool (*I2CPutByte)(I2CDevPtr d, I2CByte data);