Changeset 3399
- Timestamp:
- 10/11/99 15:04:46 (9 years ago)
- Files:
-
- i2c/trunk/doc/writing-clients (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
i2c/trunk/doc/writing-clients
r3392 r3399 29 29 /* name */ "Foo version 2.3 and later driver", 30 30 /* id */ I2C_DRIVERID_FOO, 31 /* flags */ 0,31 /* flags */ I2C_DF_NOTIFY, 32 32 /* attach_adapter */ &foo_attach_adapter, 33 33 /* detach_client */ &foo_detach_client, … … 44 44 driver. Before you do that, contact the i2c authors to get your own ID(s). 45 45 46 Don't worry about the flags field; it is unused at this moment. 46 Don't worry about the flags field; just put I2C_DF_NOTIFY into it. This 47 means that your driver will be notified when new adapters are found. 48 This is almost always what you want. 47 49 48 50 All other fields are for call-back functions which will be explained
