diff options
Diffstat (limited to 'src/atimach64i2c.c')
-rw-r--r-- | src/atimach64i2c.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/atimach64i2c.c b/src/atimach64i2c.c index 2f243e5..ad7b63e 100644 --- a/src/atimach64i2c.c +++ b/src/atimach64i2c.c @@ -297,8 +297,6 @@ ATITVAddOnProbe ) { I2CDevPtr pI2CDev = xnfcalloc(1, SizeOf(I2CDevRec)); - int Index; - I2CByte tmp; static const CARD8 ATITVAddOnAddresses[] = {0x70, 0x40, 0x78, 0x72, 0x42}; @@ -309,8 +307,10 @@ ATITVAddOnProbe pI2CDev->AcknTimeout = pI2CBus->AcknTimeout; pI2CDev->ByteTimeout = pI2CBus->ByteTimeout; - for (Index = 0; Index < NumberOf(ATITVAddOnAddresses); Index++) + for (int Index = 0; Index < NumberOf(ATITVAddOnAddresses); Index++) { + I2CByte tmp; + pI2CDev->SlaveAddr = ATITVAddOnAddresses[Index]; if (xf86I2CFindDev(pI2CBus, pI2CDev->SlaveAddr)) |