Changeset 3962
- Timestamp:
- 01/23/05 18:30:33 (4 years ago)
- Files:
-
- i2c/trunk/doc/writing-clients (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
i2c/trunk/doc/writing-clients
r3937 r3962 386 386 For now, you can ignore the `flags' parameter. It is there for future use. 387 387 388 /* Unique ID allocation */389 static int foo_id = 0;390 391 388 int foo_detect_client(struct i2c_adapter *adapter, int address, 392 389 unsigned short flags, int kind) … … 524 521 /* SENSORS ONLY END */ 525 522 526 new_client->id = foo_id++; /* Automatically unique */527 523 data->valid = 0; /* Only if you use this field */ 528 524 init_MUTEX(&data->update_lock); /* Only if you use this field */
