Changeset 3399

Show
Ignore:
Timestamp:
10/11/99 15:04:46 (9 years ago)
Author:
frodo
Message:

I2C_DF_NOTIFY had somehow disappeared from the docs

Files:

Legend:

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

    r3392 r3399  
    2929    /* name           */  "Foo version 2.3 and later driver", 
    3030    /* id             */  I2C_DRIVERID_FOO, 
    31     /* flags          */  0
     31    /* flags          */  I2C_DF_NOTIFY
    3232    /* attach_adapter */  &foo_attach_adapter, 
    3333    /* detach_client  */  &foo_detach_client, 
     
    4444driver. Before you do that, contact the i2c authors to get your own ID(s). 
    4545 
    46 Don't worry about the flags field; it is unused at this moment. 
     46Don't worry about the flags field; just put I2C_DF_NOTIFY into it. This 
     47means that your driver will be notified when new adapters are found. 
     48This is almost always what you want. 
    4749 
    4850All other fields are for call-back functions which will be explained