Changeset 3325

Show
Ignore:
Timestamp:
07/19/99 01:53:45 (14 years ago)
Author:
frodo
Message:

Second, and for now, last bugfix

It is now possible to insert algorithms, adapters, drivers and clients,
and they are reported correctly in /proc. I can't do any more tests until
the lm_sensors stuff is ready (I own no other I2C devices)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • i2c/trunk/kernel/i2c-core.c

    r3324 r3325  
    209209int i2c_add_adapter(struct i2c_adapter *adap) 
    210210{ 
    211         int i; 
     211        int i,j; 
    212212        char name[8]; 
    213213        struct proc_dir_entry *proc_entry; 
     
    231231 
    232232        /* inform drivers of new adapters */ 
    233         for (i=0;i<I2C_DRIVER_MAX;i++) 
    234                 if (drivers[i]!=NULL && drivers[i]->flags&I2C_DF_NOTIFY) 
    235                         drivers[i]->attach_adapter(adap); 
     233        for (j=0;j<I2C_DRIVER_MAX;j++) 
     234                if (drivers[j]!=NULL && drivers[j]->flags&I2C_DF_NOTIFY) 
     235                        drivers[j]->attach_adapter(adap); 
    236236 
    237237        DEB(printk("i2c: adapter %s registered.\n",adap->name)); 
     
    12131213EXPORT_SYMBOL(i2c_control); 
    12141214EXPORT_SYMBOL(i2c_transfer); 
     1215EXPORT_SYMBOL(i2c_adapter_id); 
    12151216 
    12161217EXPORT_SYMBOL(i2c_smbus_xfer);