Changeset 3962

Show
Ignore:
Timestamp:
01/23/05 18:30:33 (4 years ago)
Author:
khali
Message:

Don't mention the i2c_client struct id member now that it is
deprecated.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • i2c/trunk/doc/writing-clients

    r3937 r3962  
    386386For now, you can ignore the `flags' parameter. It is there for future use. 
    387387 
    388   /* Unique ID allocation */ 
    389   static int foo_id = 0; 
    390  
    391388  int foo_detect_client(struct i2c_adapter *adapter, int address,  
    392389                        unsigned short flags, int kind) 
     
    524521    /* SENSORS ONLY END */ 
    525522 
    526     new_client->id = foo_id++; /* Automatically unique */ 
    527523    data->valid = 0; /* Only if you use this field */ 
    528524    init_MUTEX(&data->update_lock); /* Only if you use this field */